diff options
Diffstat (limited to 'Master/texmf-dist/tex/cslatex/base/hyphen.cfg')
-rw-r--r-- | Master/texmf-dist/tex/cslatex/base/hyphen.cfg | 225 |
1 files changed, 225 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/cslatex/base/hyphen.cfg b/Master/texmf-dist/tex/cslatex/base/hyphen.cfg new file mode 100644 index 00000000000..980e6538058 --- /dev/null +++ b/Master/texmf-dist/tex/cslatex/base/hyphen.cfg @@ -0,0 +1,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'. |