• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1% xu-ukrhyph.tex
2% Wrapper for XeTeX to read Ukrainian hyphenation patterns
3% Jonathan Kew, 2006-08-20
4% Public domain
5
6\begingroup
7
8% Please uncomment the pattern value you need before
9% creating a new format file containing Ukrainian hyphenation
10% patterns.
11% Note: `sm' offers most break points, so it is better
12% for narrow columns, `mp' offers least break points,
13% and `st' and `mt' are in between.
14
15\ifx\Pattern\undefined
16%\def\Pattern{sm}  %% by Andrij Shvaika, modern rules
17%\def\Pattern{st}  %% by Andrij Shvaika, modern rules,
18                   %%   ``with removed suspicious breaks''
19%\def\Pattern{mt}  %% by Maksym Polyakov old rules
20\def\Pattern{mp}   %% by Maksym Polyakov old rules, breaking
21                   %%   into syllables according to phonetical principles.
22%\def\Pattern{fa}  %% derived from Russian patterns created by Dimitri Vulis
23\fi
24
25% For non-XeTeX use, also check the encoding options in ukrhyph.tex
26
27\expandafter\ifx\csname XeTeXrevision\endcsname\relax
28
29  \input ukrhyph.tex
30
31\else
32
33  \let\PATTERNS=\patterns
34  \def\patterns{%
35    \XeTeXinputencoding "bytes"
36    \input xu-cp866nav.tex
37    \lccode`\'=`\'
38    \PATTERNS
39  }
40
41  \input ukrhyp\Pattern
42
43\fi
44
45\endgroup
46
47\lefthyphenmin2 % settings copied from ukrhyph.tex
48\righthyphenmin2
49
50\endinput
51