polyglossia icon indicating copy to clipboard operation
polyglossia copied to clipboard

Error when loading RTL languages after LaTeX update

Open Udi-Fogiel opened this issue 1 year ago • 1 comments

\documentclass{article}
\usepackage{polyglossia}
\setotherlanguage{kurdish}

\stop

now fails on master, after https://github.com/latex3/latex2e/pull/1187/commits/0256b600aad0e10ae14d465a493f16eaf1398edf. This is related to the location we use \RequireBidi. It is used in the key direction in polyglossia setup, and in kurdish the different variants set the direction using \SetLanguageKeys, and so \RequireBidi is issued again. It happens inside \__xpg_register_language:nn in a group where the options are set again to retrieve the correct babel name etc.,

Note that in the branch I'm currently working on, this problem does not exist, as there I don't spam RequireBidi, but I also don't warn when an RTL language is used, but bidi was not loaded (I'm still figuring out what best method would be to do that).

In any case, I think for now the best thing to do is to make \RequireBidi a no-op after one use.

Udi-Fogiel avatar Jun 04 '24 16:06 Udi-Fogiel

BTW, we should probably test ourselves if a gloss is being loaded in a group, just to be safe, but I'll leave that for after the release.

Udi-Fogiel avatar Jun 04 '24 16:06 Udi-Fogiel

So this is resolved, right? If so, mark fixedindev, please

jspitz avatar Jul 12 '24 08:07 jspitz

Yes, bug is only present in the dev, not in 2.1, so I'll simply close it....

Udi-Fogiel avatar Jul 12 '24 13:07 Udi-Fogiel