summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-02-22 00:24:10 +0000
committerKarl Berry <karl@freefriends.org>2013-02-22 00:24:10 +0000
commit707a10949d49234838d264e42894e44e72ba0cca (patch)
treeb0a744631feccfdf0df53e6387e8bc53553152dd /Master/texmf-dist/tex/generic/hyph-utf8/loadhyph
parent12c8d908e852185e085905e150e8b16fcfcc5074 (diff)
hyph-utf8 and piedmontese (21feb13)
git-svn-id: svn://tug.org/texlive/trunk@29193 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/hyph-utf8/loadhyph')
-rw-r--r--Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-pms.tex36
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-pms.tex b/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-pms.tex
new file mode 100644
index 00000000000..24d3da50acb
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-pms.tex
@@ -0,0 +1,36 @@
+% filename: loadhyph-pms.tex
+% language: piedmontese
+%
+% Loader for hyphenation patterns, generated by
+% source/generic/hyph-utf8/generate-pattern-loaders.rb
+% See also http://tug.org/tex-hyphen
+%
+% Copyright 2008-2011 TeX Users Group.
+% You may freely use, modify and/or distribute this file.
+% (But consider adapting the scripts if you need modifications.)
+%
+% Once it turns out that more than a simple definition is needed,
+% these lines may be moved to a separate file.
+%
+\begingroup
+\lccode`\'=`\'
+% Test for pTeX
+\ifx\kanjiskip\undefined
+% Test for native UTF-8 (which gets only a single argument)
+% That's Tau (as in Taco or ΤΕΧ, Tau-Epsilon-Chi), a 2-byte UTF-8 character
+\def\testengine#1#2!{\def\secondarg{#2}}\testengine Τ!\relax
+\ifx\secondarg\empty
+ % Unicode-aware engine (such as XeTeX or LuaTeX) only sees a single (2-byte) argument
+ \message{UTF-8 Piedmontese hyphenation patterns}
+ \input hyph-pms.tex
+ \input hyph-quote-pms.tex
+\else
+ % 8-bit engine (such as TeX or pdfTeX)
+ \message{ASCII Piedmontese hyphenation patterns}
+ \input hyph-pms.tex
+\fi\else
+ % pTeX
+ \message{ASCII Piedmontese hyphenation patterns}
+ \input hyph-pms.tex
+\fi
+\endgroup