reutenauer / polyglossia

An alternative to Babel for XeLaTeX and LuaLaTeX
http://www.ctan.org/pkg/polyglossia
MIT License
185 stars 52 forks source link

bugs in babel commands #632

Closed schlcht closed 4 months ago

schlcht commented 4 months ago

The following:

\documentclass{article}
%\usepackage[french,english]{babel}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{french}
\begin{document}
Z \foreignlanguage{french}{ceci n'est pas un \par paragraphe}

\begin{otherlanguage*}{french}
c'est tout
\end{otherlanguage*}
\end{document}

shows two problems:

  1. \foreignlanguage is no longer long, which it used to be and which it also is in babel. (A + is missing in the definition.)

  2. The otherlanguage* environment doesn't work at all. I think this is because in the definition \egroup has been replaced by \group_end:, which is \endgroup. It should probably be \c_group_end_token.

jspitz commented 4 months ago

Thanks, both fixed. I prepare a new release to get this into TL 2024.