diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel/switch.def')
-rw-r--r-- | Master/texmf-dist/tex/generic/babel/switch.def | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/generic/babel/switch.def b/Master/texmf-dist/tex/generic/babel/switch.def index 99eb2966d0d..6de2ee9ec1f 100644 --- a/Master/texmf-dist/tex/generic/babel/switch.def +++ b/Master/texmf-dist/tex/generic/babel/switch.def @@ -38,7 +38,7 @@ %% extension .ins) which are part of the distribution. %% %% File 'babel.dtx' -%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8j The Babel package] +%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8l The Babel package] %% Babel package for LaTeX2e. %% Copyright (C) 1989 -- 2008 by Johannes Braams, %% TeXniek @@ -66,7 +66,7 @@ \endgroup} \fi \ProvidesFile{switch.def} - [2008/03/16 v3.8j % + [2008/07/06 v3.8l % Babel language switching mechanism] \ifx\AtBeginDocument\@undefined \def\adddialect{} @@ -151,7 +151,7 @@ \expandafter\ifx\csname date#1\endcsname\relax \@noopterr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{\languagename}% \originalTeX \expandafter\def\expandafter\originalTeX \expandafter{\csname noextras#1\endcsname @@ -199,7 +199,7 @@ \expandafter\ifx\csname l@#1\endcsname\relax \@nolanerr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{\languagename}% \languageshorthands{none}% \csname extras#1\endcsname \expandafter\ifx\csname #1hyphenmins\endcsname\relax @@ -210,11 +210,18 @@ \fi \fi } +\def\bbl@patterns#1{% + \language=\expandafter\ifx\csname l@#1:\f@encoding\endcsname\relax + \csname l@#1\endcsname + \else + \csname l@#1:\f@encoding\endcsname + \fi\relax +} \def\hyphenrules#1{% \expandafter\ifx\csname l@#1\endcsname\@undefined \@nolanerr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{#1}% \languageshorthands{none}% \expandafter\ifx\csname #1hyphenmins\endcsname\relax \set@hyphenmins\tw@\thr@@\relax |