Closed u-fischer closed 1 year ago
Fixed. We now use a special \xselectlanguage
command in the aux file that does only warn, not error.
well that resolves the problem in the aux. But if one uses an unknown language in the document polyglossia gets also into the error frenzy and then hangs:
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{german}
\begin{document}
aaa
\selectlanguage{french}
bbb
\end{document}
I don't understand it. It does detect that the language is not declared. Then why does it nevertheless try to set it up? It should be trivial to change \__xpg_msg_if_lang_not_loaded:n
to a proper test that aborts in this case.
Sure, but that's not the issue you reported. I'll have a look.
We bail out early now.
If I compile a simple document say using english as language:
and then switch from english to e.g. brazil the remaining
\selectlanguage
in the aux-file triggers tons of error and then hangs. See below.Could this please be improved? I know that I can delete all auxiliary files first, but it slows down testing and debugging a lot if you have to do that all the time. A similar test with babel gives no error at all but only a warning about the unknown language.