[luatex] MWE now failing with recent TeX Live update

Ulrike Fischer luatex at nililand.de
Fri Mar 18 17:15:26 CET 2016


Am Fri, 18 Mar 2016 14:56:37 +0000 schrieb Arthur Reutenauer:

> On Fri, Mar 18, 2016 at 01:46:38PM +0000, Arthur Reutenauer wrote:
>>   I'll try to see if dumping that at the top of polyglossia.sty works.
> 
>   Sadly no.  The code from luababel.def fails when loading language.dat,
> even though it is correctly installed and can (of course) be found by
> kpsewhich.  Somehow I think I've seen that error somewhere; does anyone
> have an idea why this happens?

Well you are not saying what error you get. For me (windows 7) the
following works fine with lualatex in a current texlive 2015 and in
miktex. The hyphenations are correct.


\documentclass[]{article}

\makeatletter
\input luababel.def
\def\bbl at add#1#2{%
  \@ifundefined{\expandafter\@gobble\string#1}%
    {\def#1{#2}}%
    {\expandafter\def\expandafter#1\expandafter{#1#2}}}
\def\bbl at csarg#1#2{\expandafter#1\csname bbl@#2\endcsname}%
\long\def\bbl at afterelse#1\else#2\fi{\fi#1}
\long\def\bbl at afterfi#1\fi{\fi#1}
\def\bbl at loop#1#2#3{\bbl@@loop#1{#3}#2,\@nnil,}
\def\bbl at loopx#1#2{\expandafter\bbl at loop\expandafter#1\expandafter{#2}}
\def\bbl@@loop#1#2#3,{%
  \ifx\@nnil#3\relax\else
    \def#1{#3}#2\bbl at afterfi\bbl@@loop#1{#2}%
  \fi}
\def\bbl at for#1#2#3{\bbl at loopx#1{#2}{\ifx#1\@empty\else#3\fi}}
\def\AfterBabelLanguage#1{%
  \global\expandafter\bbl at add\csname#1.ldf-h@@k\endcsname}%
\ifx\bbl at languages\@undefined\else
  \begingroup
    \catcode`\^^I=12
    \@ifpackagewith{babel}{showlanguages}{%
      \begingroup
        \def\bbl at elt#1#2#3#4{\wlog{#2^^I#1^^I#3^^I#4}}%
        \wlog{<*languages>}%
        \bbl at languages
        \wlog{</languages>}%
      \endgroup}{}
  \endgroup
  \def\bbl at elt#1#2#3#4{%
    \ifnum#2=\z@
      \gdef\bbl at nulllanguage{#1}%
      \def\bbl at elt##1##2##3##4{}%
    \fi}%
  \bbl at languages
\fi
\makeatother

\usepackage{polyglossia}

\setmainlanguage{german}
\setotherlanguage{english}

\textwidth=0.5cm

\begin{document}
Minister Minister

\selectlanguage{english}
Minister Minister
\end{document}


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the luatex mailing list