diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-la-x-classic.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-la-x-classic.tex | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-la-x-classic.tex b/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-la-x-classic.tex index 26205e8a384..2b386e5aadb 100644 --- a/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-la-x-classic.tex +++ b/Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-la-x-classic.tex @@ -5,7 +5,7 @@ % source/generic/hyph-utf8/generate-pattern-loaders.rb % See also http://tug.org/tex-hyphen % -% Copyright 2008-2019 TeX Users Group. +% Copyright 2008-2020 TeX Users Group. % You may freely use, modify and/or distribute this file. % (But consider adapting the scripts if you need modifications.) % @@ -13,7 +13,23 @@ % these lines may be moved to a separate file. % \begingroup -% ASCII patterns - no additional support is needed -\message{ASCII Classical Latin hyphenation patterns} -\input hyph-la-x-classic.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 Classical Latin hyphenation patterns, v.2.0 2019-07-03} + \input hyph-la-x-classic.tex +\else + % 8-bit engine (such as TeX or pdfTeX) + \message{EC Classical Latin hyphenation patterns, v.2.0 2019-07-03} + % (Not-so-old) pTeX-converted file is now hardcoded + \input hyph-la-x-classic.ec.tex +\fi\else + % pTeX + \message{EC Classical Latin hyphenation patterns, v.2.0 2019-07-03} + \input hyph-la-x-classic.ec.tex +\fi \endgroup |