[Fontconfig] DTD

Jerry Casiano jerrycasiano at gmail.com
Tue May 1 13:01:19 UTC 2018

I use it to verify that my application is generating valid config files.

So yes. At least one person still uses it. ;-)

On Fri, Mar 30, 2018, 6:04 PM Lawrence D'Oliveiro <ldo at geek-central.gen.nz>

> On Fri, 30 Mar 2018 18:41:34 +0000, Jerry Casiano wrote:
> > I would consider [the lack of a DTD] a bug if I used Debian.
> Does anybody still use DTDs for anything? They may have made sense with
> SGML, but HTML, for example, does so much more with CSS instead. And as
> for XML, it seems to me a DTD is neither necessary nor sufficient to
> capture the semantics of most real-world applications.
> Fontconfig being a case in point: half of fonts.dtd is comments
> explaining what the constructs actually mean. And much of the rest is
> essentially content-free syntax like
>     <!ELEMENT dir (#PCDATA)>
>     <!ELEMENT family (#PCDATA)>
>     <!ELEMENT int (#PCDATA)>
>     <!ELEMENT double (#PCDATA)>
>     <!ELEMENT string (#PCDATA)>
>     <!ELEMENT bool (#PCDATA)>
>     <!ELEMENT const (#PCDATA)>
> And things like
>     <!ELEMENT plus (%expr;)*>
>     <!ELEMENT minus (%expr;)*>
>     <!ELEMENT times (%expr;)*>
>     <!ELEMENT divide (%expr;)*>
>     <!ELEMENT not (%expr;)>
> convey that these operators are recognized and can take multiple
> operands, but nothing more.
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/fontconfig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig/attachments/20180501/98b7eec2/attachment.html>

More information about the Fontconfig mailing list