From 2bd559f75d76b514f789e32c5cc9643fd7c1e9a2 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Thu, 15 Nov 2018 20:55:08 +0900 Subject: [PATCH] Add doc for description element and update fonts.dtd Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/133 --- doc/fontconfig-user.sgml | 5 +++++ fonts.dtd | 21 ++++++++++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/doc/fontconfig-user.sgml b/doc/fontconfig-user.sgml index 458435f..f23ae36 100644 --- a/doc/fontconfig-user.sgml +++ b/doc/fontconfig-user.sgml @@ -339,6 +339,11 @@ the library. If 'prefix' is set to "xdg", the value in the XDG_CONFIG_HOME envi This element provides a place to consolidate additional configuration information. <config> can contain <blank> and <rescan> elements in any order. + + <literal><description domain="fontconfig-conf"></literal> +This element is supposed to hold strings which describe what a config is used for. +This string can be translated through gettext. 'domain' needs to be set the proper name to apply then. +fontconfig will tries to retrieve translations with 'domain' from gettext. <literal><blank></literal> Fonts often include "broken" glyphs which appear in the encoding but are diff --git a/fonts.dtd b/fonts.dtd index fb577ad..2d75682 100644 --- a/fonts.dtd +++ b/fonts.dtd @@ -1,12 +1,13 @@ - + description | + dir | + include | + match | + selectfont)* > + + +