Re: DTD

Lawrence D'Oliveiro <[email protected]>
Newsgroups gmane.comp.fonts.fontconfig
Organization Geek Central
Message-ID <[email protected]>
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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.