summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/xu-hyphen/xu-lahyph.tex
blob: b506ee94cd5a3f8f403e0683246f90ade0fc3507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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