Add files to enable ITS support in gettext

This commit is contained in:
Akira TAGOH 2018-01-05 18:23:08 +09:00
parent 6aa0bde5ec
commit a2e0ebf392
3 changed files with 15 additions and 0 deletions

View File

@ -218,4 +218,9 @@ fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES)
echo VERSION @LIBT_CURRENT@.@LIBT_REVISION@) >$@
@ ! $(GREP) -q FcERROR $@ || ($(RM) $@; false)
gettextitsdir = $(datadir)/gettext/its
gettextits_DATA = \
fontconfig.its \
fontconfig.loc
-include $(top_srcdir)/git.mk

4
src/fontconfig.its Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
<its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
</its:rules>

6
src/fontconfig.loc Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<locatingRules>
<locatingRule name="Fontconfig" pattern="*.conf">
<documentRule localName="fontconfig" target="fontconfig.its"/>
</locatingRule>
</locatingRules>