summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/cslatex/base/hyphen.cfg
blob: 980e6538058881a8007b4708eb2386ffbf5d8843 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
%%
%% This is file `hyphen.cfg',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% cslatex.dtx  (with options: `hyphen')
%% 
%% Tento soubor je soucasti baliku CsLaTeX a je vygenerovan z
%% distribucniho souboru cslatex.dtx.
%% 
%% Copyright (c) 1994--98, 2002
%% Jaroslav Snajdr, Zdenek Wagner, Jiri Zlatuska a The LaTeX3 Project
%% 
%% Tento soubor NENI soucasti systemu LaTeX2e
%% ------------------------------------------
%% 
%% Dalsi informace naleznete na www.cstug.cz/cslatex.
%% 
\ProvidesFile{hyphen.cfg}[1997/01/30 CSLaTeX]
\expandafter\def\csname @@T1Codes\endcsname{%
  \def\@tempa##1##2{%
    \@tempcnta=##1\relax\@tempcntb=##2\relax\@tempb}%
  \def\@tempb{%
    \ifnum\@tempcnta>\@tempcntb\else
    \@tempc\@tempcnta
    \advance\@tempcnta by 1
    \expandafter\@tempb
    \fi}%
  \def\@tempc##1{%
    \count@=##1\advance\count@ by -"20
    \uccode##1=\count@
    \lccode##1=##1 }%
  \@tempa{"A0}{"BC}
  \@tempa{"E0}{"FF}
  \def\@tempc##1{%
    \count@=##1\advance\count@ by "20
    \uccode##1=##1
    \lccode##1=\count@
    \sfcode##1=999 }%
  \@tempa{"80}{"9C}
  \@tempa{"C0}{"DF}
  \uccode25=`\I \lccode25=26    % dotless i
  \uccode26=`\J \lccode26=26    % dotless j, ae in OT1
  \lccode157=`\i \uccode157=157 % dotted I
  \lccode158=158 \uccode158=208 % d-bar
  \sfcode254=1000 \lccode254=254
  \sfcode255=1000 \lccode255=255
  \sfcode158=1000 \sfcode159=1000
  \let\@tempa=\@undefined
  \let\@tempb=\@undefined
  \let\@tempc=\@undefined}
\expandafter\def\csname @@IL2Codes\endcsname{%
  \def\@tempa##1##2{%
    \lccode##1=##1 \uccode##2=##2
    \lccode##2=##1 \uccode##1=##2 }%
  \@tempa{181}{165}\@tempa{184}{152}\@tempa{185}{169}%
  \@tempa{187}{171}\@tempa{190}{174}%
  \sfcode254=0 \lccode254=0  % ,,
  \sfcode255=0 \lccode255=0  % ``
  \sfcode158=0 \lccode158=0  % <<
  \sfcode159=0 \lccode159=0 }% >>
\newtoks\@@front@@ \newtoks\@@end@@ \bgroup \count0=0
\newcommand{\DeclareLanguage}[4][\undefined]{%
  \def\c@ding{#1}\def\und@fin@d{\undefined}%
  \ifx\c@ding\und@fin@d
    \setup@hyphenation{#3}{\expandafter\@gobble\string#2}{#4}%
  \else
    \global\@@front@@=\expandafter{\the\@@front@@
      \global\expandafter\expandafter\expandafter\def\expandafter
      \expandafter\expandafter#2\expandafter\expandafter\expandafter
      {\csname\expandafter\@gobble\string#2 \f@encoding\endcsname}}%
    \def\one@arg##1,##2\end{%
      \def\c@ding{##1}
      \ifx\c@ding\und@fin@d\else
        \setup@hyphenation[##1]{#3}{\expandafter\@gobble\string#2}{#4}%
        \one@arg##2\end
      \fi
    }
    \one@arg#1,\undefined,\end
  \fi
}
\newcommand{\setup@hyphenation}[4][\undefined]{%
  \def\c@ding{#1}\def\und@fin@d{\undefined}%
  \ifx\c@ding\und@fin@d
    \def\c@ding{}
  \else
    \fontencoding{#1}\enc@update
    \csname @@\c@ding Codes\endcsname
  \fi
  \enc@update
  \InputIfFileExists{#2}%
  {\message{^^JLoading #3 hyphenation patterns and exceptions}%
    \global\expandafter\expandafter\expandafter
      \def\expandafter\expandafter
      \csname#3 \c@ding\endcsname\expandafter
      {\expandafter\language\expandafter=\the\count0
      #4\relax}%
    \if\c@ding\relax\relax
      \expandafter\global\expandafter
        \let\csname#3\expandafter\endcsname\csname#3 \endcsname
      \else\message{for #1}%
      \global\expandafter\edef\csname#3 @\c@ding\endcsname
        {\noexpand\language=\the\count0\noexpand\relax}%
    \fi
    \language=\count0}%
   {\errhelp{The configuration for hyphenation is incorrectly
             installed.^^J%
             If you don't understand this error message you need
             to seek^^Jexpert advice.}%
   \errmessage{OOPS!! Hyphenation patterns file #2 for #3 not found!}}%
\if\c@ding\relax\relax\else
 \global\@@end@@=
   \expandafter\expandafter\expandafter
         {\expandafter
         \the\expandafter\@@end@@\expandafter
         \ifnum\expandafter\language\expandafter=\the\count0\relax
             \csname#3 @\f@encoding\endcsname
         \fi}
\fi
\advance\count0 by 1\relax
}%
\csname @@T1Codes\endcsname
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareLanguage{\english}{hyphen.tex}{\lefthyphenmin=2
                                       \righthyphenmin=3
                                       \@splitrequestedfalse}%
\DeclareLanguage[IL2,T1]{\czech}{czhyphen.tex}{\lefthyphenmin=2
                                            \righthyphenmin=3
                                            \@requesthyphens}%
\DeclareLanguage[IL2,T1]{\slovak}{skhyphen.tex}{\lefthyphenmin=2
                                            \righthyphenmin=3
                                            \@requesthyphens}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\egroup
\@@front@@=\expandafter\expandafter\expandafter
  {\expandafter\the\expandafter\@@front@@\the\@@end@@}%
\expandafter\def\expandafter
  \@hyphenation\expandafter{\the\@@front@@}%
\@@front@@={}\@@end@@={}
\def\nolanguage{\lefthyphenmin=99\righthyphenmin=99\language=255
                \@splitrequestedfalse\relax}
\newif\if@splithyphens
\newif\if@splitrequested
\def\minus{-}%
\bgroup\catcode`-=\active\expandafter\egroup
\expandafter\def\noexpand-{%
\ifx\protect\relax
  \ifhmode
    \ifinner
      \expandafter\expandafter\expandafter\expandafter
      \expandafter\expandafter\expandafter-%
    \else
      \expandafter\expandafter\expandafter\expandafter
      \expandafter\expandafter\expandafter\firstd@sh
    \fi
  \else%
    \expandafter\expandafter\expandafter-%
  \fi
\else
  \expandafter\string\expandafter\string-%
\fi}%
\def\@nehyph@n{-}
\def\splithyph@n{\ifnum\expandafter\hyphenchar\the\font>-1
  \discretionary{\char`-}{\char\hyphenchar\the\font}{\char`-}\else
  \discretionary{\char`-}{\char`-}{\char`-}\fi}
\def\b@xhyph@n{\hbox{-}}
\def\tw@hyph@ns{--}
\def\thr@@hyph@ns{---}
\catcode`-=\active
\def\firstd@sh{\ifnextch@r -\then\sec@ndd@sh\else
  \ifnum\expandafter\hyphenchar\the\font=`-
    \ifnum\righthyphenmin>2
      \if l\nextchar\b@xhyph@n  %   make sure we
      \else                     % don't chop off `-li'
        \splithyph@n
      \fi
    \else
      \splithyph@n
    \fi
  \else
    \@nehyph@n
  \fi
  \fii}
\def\sec@ndd@sh#1{\ifnextch@r-\then\thirdd@sh\else\tw@hyph@ns\fii}
\def\thirdd@sh#1{\ifnextch@r-\then\m@nyd@sh\else\thr@@hyph@ns\fii}
\def\m@nyd@sh#1{\thr@@hyph@ns\firstd@sh}
\def\ifnextch@r#1\then#2\else#3\fii
  {\def\c@mp@rech@rs{\ifx#1\nextchar
                       \def\next{#2}%
                     \else
                       \def\next{#3}%
                     \fi\next}%
  \futurelet\nextchar\c@mp@rech@rs}
\catcode`-=12
\def\standardhyphens{\catcode`-=12 \@splithyphensfalse}%
\def\splithyphens{\if@splitrequested\catcode`-\active\fi
                  \@splithyphenstrue}%
\def\@requesthyphens{\if@splithyphens\catcode`-=\active\fi
                     \@splitrequestedtrue}
\let\@looseness\looseness
\def\looseness{%
  \if@splithyphens
    \standardhyphens\afterassignment\splithyphens
  \fi
  \@looseness}
\expandafter\fontencoding\expandafter U\expandafter
            \fontencoding\expandafter{\f@encoding}\enc@update
\@hyphenation
\english
\ifx\addlanguage\undefined\else
  \ifx\LdfInit\@undefined
    \def\LdfInit{%
      \chardef\atcatcode=\catcode`\@
      \catcode`\@=11\relax
      \input babel.def\relax
      \catcode`\@=\atcatcode \let\atcatcode\relax
      \LdfInit}
  \fi
\endinput\fi
\endinput
%%
%% End of file `hyphen.cfg'.