[Fontconfig] DTD

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Sun Apr 1 21:10:19 UTC 2018


On Sun, 1 Apr 2018 15:01:15 +0100, Peter Flynn wrote:

> This reflects the relatively light weight of markup needed to
> describe the application data. It's basically a set of containers, so
> all it needs is the names: the content is just strings.

Not for things like

    <!ELEMENT int (#PCDATA)>
    <!ELEMENT double (#PCDATA)>

The content for these is *not* “just strings”.

> A DTD is just a spec. Its principal use is to 
> guarantee that the files which claim to conform to it really do 
> (validation).

Given that it will accept files that are not valid Fontconfig
configurations, the validation function seems useless.

> In either case, hardly anyone nowadays actually codes a DTD or Schema
> by hand; most are machine-generated from a better and more
> comprehensive language like Relax-NG or ODD.

Could you more accurately specify the Fontconfig config syntax in one of
these?


More information about the Fontconfig mailing list