diff options
author | Mojca Miklavec <mojca.miklavec@gmail.com> | 2011-06-11 00:32:38 +0000 |
---|---|---|
committer | Mojca Miklavec <mojca.miklavec@gmail.com> | 2011-06-11 00:32:38 +0000 |
commit | b439631e2c3a99a345993513013a2ace563bdd3b (patch) | |
tree | 876f2f14d92e8ca45d1f3b288a911870c406261f /Master/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-it.tex | |
parent | 95f2ee5a2b2d9c18b748c222ea64eacb33f2e959 (diff) |
An attempt to import the latest version of hyph-utf8 (#558)
LuaTeX:
* add support for loading multiple pattern files in LuaTeX
TeX Live:
* remove copthyph.tex from texmf: it is now part of hyph-utf8
* update language.ptx and language.def for pTeX
* update some descriptions in tlpsrc files (not finished)
* change lefthyphenmin from 2 to 1 for Afrikaans (not sure when it was set to 2)
hyph-utf8:
* load patterns for Latin and Cyrillic scripts for Serbian simultaneously
* new version of German hyphenation patterns
* support both U+0027 and U+2019 as apostrophe in Unicode engines
git-svn-id: svn://tug.org/texlive/trunk@22909 c570f23f-e606-0410-a88d-b1316a301751
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.tex | 22 |
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 |