Closed jspitz closed 5 years ago
The workaround that currently works is an easy variation on the fix that worked five years ago: \csname @nonlatintrue\endcsname
. At least it does for me, can you please test?
Yes, this works around it, indeed.
Shall we define that boolean in the Polyglossia language definition files for RTL languages then?
I am not sure about the correct place for the fix. luabidi does not suffer from it, so it should go in \ifxetex
. Also it seems that the command we should use would be rather \setnonlatin
(which sets that switch to true). Alas, this seems to be not documented at all, so I have no idea about possible effects.
\csname @nonlatintrue\endcsname
(\setnonlatin
) solve also polyglossia issue #213 without need to redefine \arabicnumber
Thank you @seloumi, that’s very helpful (@jspitz that’s from bidi-doc.pdf
in case you wonder).
I see. So we should revert my fixes to reutenauer/polyglossia#213 and use \setnonlatin
in the extras of RTL languages and \setlatin
in the nonextras.
I am currently busy with real work, though.
I see. So we should revert my fixes to reutenauer/polyglossia#213
This part is done.
Fixed in polyglossia with the referenced commit.
According to several posts on stackexchange, bidi used to correct the panthesis direction in equation via amsmath-bidi-xetex.def (see https://tex.stackexchange.com/a/144980/19291). However, this seems to be broken (see MWE below).
The workaround given at https://tex.stackexchange.com/a/186047/19291 does not seem to work either (see commented code).
Note that the direction is correct if the main language is LTR, but not if it is RTL.