summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-it.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-it.tex')
-rw-r--r--Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-it.tex22
1 files changed, 19 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-it.tex b/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-it.tex
index 4b0c4ee503b..e1f02201923 100644
--- a/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-it.tex
+++ b/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-it.tex
@@ -14,7 +14,23 @@
%
\begingroup
\lccode`\'=`\'
-% ASCII patterns - no additional support is needed
-\message{ASCII Italian Hyphenation Patterns}
-\input hyph-it.tex
+% 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 Italian hyphenation patterns}
+ \input hyph-it.tex
+ \input hyph-quote-it.tex
+\else
+ % 8-bit engine (such as TeX or pdfTeX)
+ \message{ASCII Italian hyphenation patterns}
+ \input hyph-it.tex
+\fi\else
+ % pTeX
+ \message{ASCII Italian hyphenation patterns}
+ \input hyph-it.tex
+\fi
\endgroup