diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2006-09-05 11:14:53 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2006-09-05 11:14:53 +0000 |
commit | 56aa98ceb2eca96a26bc625d25ea2895f59bb0d3 (patch) | |
tree | 6a5f0b33d7244e5df3b936e44d07c46e30522897 /Master/texmf-dist/tex/generic/xu-hyphen/xu-lahyph.tex | |
parent | 97adfa8962377b2a41a9e56bc5e8352bb7c681f1 (diff) |
xu-hyphen wrappers for pattern files, to support both 8-bit TeX and XeTeX
git-svn-id: svn://tug.org/texlive/trunk@2082 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/xu-hyphen/xu-lahyph.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/xu-hyphen/xu-lahyph.tex | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/xu-hyphen/xu-lahyph.tex b/Master/texmf-dist/tex/generic/xu-hyphen/xu-lahyph.tex new file mode 100644 index 00000000000..b506ee94cd5 --- /dev/null +++ b/Master/texmf-dist/tex/generic/xu-hyphen/xu-lahyph.tex @@ -0,0 +1,33 @@ +% xu-lahyph.tex +% Wrapper for XeTeX to read lahyph.tex +% Jonathan Kew, 2006-08-17 +% Public domain + +\begingroup + +\expandafter\ifx\csname XeTeXrevision\endcsname\relax +\else + + \catcode`\"=12 + \def\n#1{}% ignore the T1-ligature patterns + \def\a{\errmessage{Hyphenation pattern file corrupted!}}% + \let\o=\a + \def\ae{^^^^00e6}% map \ae and \oe to Unicode + \def\oe{^^^^0153}% + \lccode`\'=`\' % allow apostrophe in patterns + \lccode"2019="2019 % also allow curly apostrophe + + \let\PATTERNS=\patterns + \def\patterns{% at the \patterns command in lahyph.tex... + \endgroup % end group containing lahyph.tex's local definitions + \begingroup % and start our own (to match \endgroup in lahyph.tex) + \PATTERNS{2^^^^20192}% add a pattern for curly apostrophe + \PATTERNS % and then load the real patterns + } + +\fi + +\input lahyph.tex + +\endgroup +\endinput |