summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2018-01-05 18:23:08 +0900
committerAkira TAGOH <akira@tagoh.org>2018-01-05 18:23:08 +0900
commita2e0ebf3922d4ac682162e63ec7b209ef58f3c7c (patch)
treea965db7cd5e2d7e8c46c333ef05583fae84bf4a6 /src
parent6aa0bde5ecd6a545228fc6b59e7e54b8f1eea7eb (diff)
Add files to enable ITS support in gettext
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am5
-rw-r--r--src/fontconfig.its4
-rw-r--r--src/fontconfig.loc6
3 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 80780b62..d6c4931b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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
diff --git a/src/fontconfig.its b/src/fontconfig.its
new file mode 100644
index 00000000..9f359222
--- /dev/null
+++ b/src/fontconfig.its
@@ -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>
diff --git a/src/fontconfig.loc b/src/fontconfig.loc
new file mode 100644
index 00000000..5bc4f6ce
--- /dev/null
+++ b/src/fontconfig.loc
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<locatingRules>
+ <locatingRule name="Fontconfig" pattern="*.conf">
+ <documentRule localName="fontconfig" target="fontconfig.its"/>
+ </locatingRule>
+</locatingRules>