summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/xu-hyphen/xu-ukrhyph.tex
blob: ac98ee16883c62c944f2a45ff35b9310130fdf71 (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
% xu-ukrhyph.tex
% Wrapper for XeTeX to read Ukrainian hyphenation patterns
% Jonathan Kew, 2006-08-20
% Public domain

\begingroup

% Please uncomment the pattern value you need before
% creating a new format file containing Ukrainian hyphenation 
% patterns. 
% Note: `sm' offers most break points, so it is better 
% for narrow columns, `mp' offers least break points,
% and `st' and `mt' are in between. 

\ifx\Pattern\undefined
%\def\Pattern{sm}  %% by Andrij Shvaika, modern rules
%\def\Pattern{st}  %% by Andrij Shvaika, modern rules, 
                   %%   ``with removed suspicious breaks''
%\def\Pattern{mt}  %% by Maksym Polyakov old rules
\def\Pattern{mp}   %% by Maksym Polyakov old rules, breaking 
                   %%   into syllables according to phonetical principles. 
%\def\Pattern{fa}  %% derived from Russian patterns created by Dimitri Vulis
\fi

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

\expandafter\ifx\csname XeTeXrevision\endcsname\relax

  \input ukrhyph.tex

\else

  \let\PATTERNS=\patterns
  \def\patterns{%
    \XeTeXinputencoding "bytes"
    \input xu-cp866nav.tex
    \lccode`\'=`\'
    \PATTERNS
  }

  \input ukrhyp\Pattern

\fi

\endgroup

\lefthyphenmin2 % settings copied from ukrhyph.tex
\righthyphenmin2

\endinput