• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1% xu-pyhyph.tex
2% Wrapper for XeTeX to read pyhyph.tex
3% Jonathan Kew, 2006-08-17
4% Public domain
5
6\begingroup
7
8\expandafter\ifx\csname XeTeXrevision\endcsname\relax
9\else
10
11  % pyhyph.tex is Latin1 with 8-bit char used for u-umlaut
12  \lccode"27="27 % allow apostrophe in patterns
13
14  \let\BEGINGROUP=\begingroup
15  \def\begingroup{% at the initial \begingroup in pyhyph...
16    \XeTeXinputencoding "bytes" % read the rest of the file as raw bytes
17    \BEGINGROUP
18  }
19
20  \let\PATTERNS=\patterns
21  \def\patterns{% at the \patterns command...
22    \endgroup % end group containing pyhyph.tex's local definitions
23    \BEGINGROUP % and start our own (to match \endgroup in pyhyph.tex)
24    \PATTERNS % and then load the real patterns
25  }
26
27\fi
28
29\input pyhyph.tex
30
31\endgroup
32\endinput
33