diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/hyph-utf8/hyphen.cfg')
-rw-r--r-- | Master/texmf-dist/tex/luatex/hyph-utf8/hyphen.cfg | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/luatex/hyph-utf8/hyphen.cfg b/Master/texmf-dist/tex/luatex/hyph-utf8/hyphen.cfg index d665d5212c0..f5fefbb8b17 100644 --- a/Master/texmf-dist/tex/luatex/hyph-utf8/hyphen.cfg +++ b/Master/texmf-dist/tex/luatex/hyph-utf8/hyphen.cfg @@ -10,7 +10,7 @@ %% intended for use with LuaTeX, but compatible with other engines. %% The present file IS NOT part of the babel system. %% -%% The modifications are Copyright 2010 Khaled Hosny, Elie Roux, and Manuel +%% The modifications are Copyright 2012 Khaled Hosny, Elie Roux, and Manuel %% Pegourie-Gonnard, under LPPL version 1.3 or later. %% %% Here is the licence statement of the original hyphen.cfg file: @@ -70,8 +70,8 @@ \fi \ProvidesFile{hyphen.cfg} - [2010/04/26 v3.8l-luatex-1.4 % - Language switching mechanism for LuaTeX, adapted from babel v3.8l] + [2012/04/16 v3.8l-luatex-1.5 % + Language switching mechanism for LuaTeX, adapted from babel v3.8m] \ifx\AtBeginDocument\@undefined \input plain.def\relax \fi @@ -97,6 +97,16 @@ \fi \def\adddialect#1#2{% \global\chardef#1#2\relax + \ifx\directlua\@undefined\else + \ifx\directlua\relax\else + \directlua{ + if not luatexhyphen then + dofile(assert(kpse.find_file("luatex-hyphen.lua"))) + end + luatexhyphen.adddialect("\string#1", "\string#2") + }% + \fi + \fi \wlog{\string#1 = a dialect from \string\language#2}} \def\iflanguage#1{% \expandafter\ifx\csname l@#1\endcsname\relax @@ -391,6 +401,8 @@ \message{I couldn't find the file language.dat,\space I will try the file hyphen.tex} \input hyphen.tex\relax + \def\l@english{0}% + \def\languagename{english}% \else \last@language\m@ne \loop @@ -401,11 +413,16 @@ \else \edef\bbl@line{\bbl@line\space/}% \expandafter\process@line\bbl@line + \ifx\bbl@defaultlanguage\@undefined + \let\bbl@defaultlanguage\languagename + \fi \fi \iftrue \csname fi\endcsname \csname if\ifeof1 false\else true\fi\endcsname \repeat \language=0 + \let\languagename\bbl@defaultlanguage + \let\bbl@defaultlanguage\@undefined \fi \closein1 \let\process@language\@undefined |