diff options
Diffstat (limited to 'Master/texmf-dist/tex/csplain/base/hyphen.lan')
-rw-r--r-- | Master/texmf-dist/tex/csplain/base/hyphen.lan | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/csplain/base/hyphen.lan b/Master/texmf-dist/tex/csplain/base/hyphen.lan index 1eb5b715e93..af264ab2a2e 100644 --- a/Master/texmf-dist/tex/csplain/base/hyphen.lan +++ b/Master/texmf-dist/tex/csplain/base/hyphen.lan @@ -11,7 +11,7 @@ \message{Loading #4 encoding, \string#1=#2 (#3).} #5 \endgroup \expandafter \def \csname lan:#2\endcsname {#3} - \expandafter \def \csname #3lang\endcsname {% + \expandafter \def \csname #3lang\endcsname {\langpatterntest#9% \language=#9\relax \initlanguage{#3}\frenchspacing \lefthyphenmin=#6\righthyphenmin=#7% \message{#3 hyphenation used (\string\language=\the\language). @@ -22,6 +22,12 @@ \advance\numpatterns by1 \fi } +\def\langpatterntest#1{\ifx\undefined#1\langpatterntestA#1\fi} +\def\langpatterntestA#1{% + \errmessage{Pattern \noexpand#1 ins't supported in ISO-8859-2. + Use \noexpand\input \ifx\unicodelangs\empty t1code\else ucode\fi\space first}% + \chardef#1=0 +} \def\pattlist{} \def\initlanguage#1{} \newcount\numpatterns @@ -433,8 +439,8 @@ {\lccode"200C="200C \lccode"200D="200D \robustpatterns \input hyph-kn }11 \unicodelangs \knPatt -\loadpatterns \loUnicode 214 lo {Lao \patt in Unicode} - {\robustpatterns \input hyph-lo }11 \unicodelangs \loPatt +%\loadpatterns \loUnicode 214 lo {Lao \patt in Unicode} +% {\robustpatterns \input hyph-lo }11 \unicodelangs \loPatt \loadpatterns \lvUnicode 215 lv {Latvian \patt in Unicode} {\robustpatterns \input hyph-lv }22 \unicodelangs \lvPatt |