• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1% xu-ruhyphen.tex
2% Wrapper for XeTeX to read Russian hyphenation patterns
3% Jonathan Kew, 2006-08-19
4% Public domain
5
6\begingroup
7
8% Please uncomment the pattern value you need before creating a new
9% format file containing Russian hyphenation patterns:
10
11\ifx\Pattern\undefined
12\def\Pattern{al}
13%\def\Pattern{as}
14%\def\Pattern{ct}
15%\def\Pattern{dv}
16%\def\Pattern{mg}
17%\def\Pattern{vl}
18%\def\Pattern{zn}
19\fi
20
21% For non-XeTeX use, also check the encoding options in ruhyphen.tex
22
23\expandafter\ifx\csname XeTeXrevision\endcsname\relax
24
25  \input ruhyphen.tex
26
27\else
28
29  \let\PATTERNS=\patterns
30  \def\patterns{%
31    \XeTeXinputencoding "KOI8-R"
32    \PATTERNS
33  }
34
35  \input ruhyph\Pattern
36  \input cyryo\Pattern
37
38  % additional patterns from ruhyphen.tex, converted to Unicode
39  \PATTERNS{.^^^^043d^^^^04358 8^^^^043d^^^^0435.}
40  \PATTERNS{8^^^^0431^^^^044a. 8^^^^0432^^^^044a. 8^^^^0433^^^^044a.
41            8^^^^0434^^^^044a. 8^^^^0436^^^^044a. 8^^^^0437^^^^044a.
42            8^^^^043a^^^^044a. 8^^^^043b^^^^044a. 8^^^^043c^^^^044a.
43            8^^^^043d^^^^044a. 8^^^^043f^^^^044a. 8^^^^0440^^^^044a.
44            8^^^^0441^^^^044a. 8^^^^0442^^^^044a. 8^^^^0444^^^^044a.
45            8^^^^0445^^^^044a. 8^^^^0446^^^^044a. 8^^^^0447^^^^044a.
46            8^^^^0448^^^^044a. 8^^^^0449^^^^044a.}
47
48\fi
49
50\endgroup
51
52\lefthyphenmin2 % settings copied from ruhyphen.tex
53\righthyphenmin2
54
55\endinput
56