summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/xecyr/tex/generic/xecyr/xu-ruenhyph.tex
blob: 363814c686777555cbfc9b1a2da16709fc2ae7da (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
% xu-ruenhyph.tex
% Wrapper for XeTeX to read combined Russian/English hyphenation patterns
% Alexey Shipunov, 2008/02/16-08-19
% Public domain

\begingroup

% Please uncomment the pattern value you need before creating a new
% format file containing Russian hyphenation patterns:

\ifx\Pattern\undefined
\def\Pattern{al}
%\def\Pattern{as}
%\def\Pattern{ct}
%\def\Pattern{dv}
%\def\Pattern{mg}
%\def\Pattern{vl}
%\def\Pattern{zn}
\fi

% For non-XeTeX use, also check the encoding options in ruhyphen.tex

\expandafter\ifx\csname XeTeXrevision\endcsname\relax

  \input hyphen
  \input enrhm2
  \input ruhyphen

\else

  \let\PATTERNS=\patterns
  \def\patterns{%
    \XeTeXinputencoding "KOI8-R"
    \PATTERNS
  }
  
  \input hyphen
  \input enrhm2
  \input ruhyph\Pattern
  \input cyryo\Pattern
  
  % additional patterns from ruhyphen.tex, converted to Unicode
  \PATTERNS{.^^^^043d^^^^04358 8^^^^043d^^^^0435.}
  \PATTERNS{8^^^^0431^^^^044a. 8^^^^0432^^^^044a. 8^^^^0433^^^^044a.
            8^^^^0434^^^^044a. 8^^^^0436^^^^044a. 8^^^^0437^^^^044a.
            8^^^^043a^^^^044a. 8^^^^043b^^^^044a. 8^^^^043c^^^^044a.
            8^^^^043d^^^^044a. 8^^^^043f^^^^044a. 8^^^^0440^^^^044a.
            8^^^^0441^^^^044a. 8^^^^0442^^^^044a. 8^^^^0444^^^^044a.
            8^^^^0445^^^^044a. 8^^^^0446^^^^044a. 8^^^^0447^^^^044a.
            8^^^^0448^^^^044a. 8^^^^0449^^^^044a.}

\fi

\endgroup

\lefthyphenmin2 % settings copied from ruhyphen.tex
\righthyphenmin2

\endinput