Wrong Clines with RTL tabular
Udicoudco
udifoglle at gmail.com
Sat Dec 24 00:03:07 UTC 2022
On Fri, Dec 23, 2022 at 9:05 AM Jürgen Spitzmüller <jspitzm at gmail.com>
wrote:
> Am Donnerstag, dem 22.12.2022 um 18:49 +0000 schrieb Udicoudco:
>
> If you set "Always babel" you can use in preamble
>
> \PassOptionsToPackage{bidi=basic,layout=tabular,provide=*}{babel}
>
> As babel is loaded after the user preamble, the babel-specific commands
> need to be set as
>
> \AddToHook{package/babel/after}{
> \babelfont[hebrew]{rm}{David CLM}
> \babelfont[english]{rm}{Latin Modern Roman}
> }
>
> See attached modified file.
>
>
> Thank you for the advice and the file, it looks much better now.
> Yes, this looks like a bug. I have pushed a fix to master. If you could
> test that, this would be great.
>
>
I've tried the fix. it does remove most of \R and \L instances, but:
1) Every forceRTL layout is still wrapped with \L{} (except ERT, as usual)
2) The cursor movement is backward inside forceRTL layout written in hebrew
(including ERT, and in english the movement direction is correct).
>
> Probably, and we have a similar report concerning \inputencoding with
> no inputenc package. But then, OTOH, some people might have used this
> setting for the case babel or inputenc are loaded in the class. These
> documents would break, so we cannot change that without accounting for
> backwards compatibility.
>
> > Another issue with using LyX and LuaTeX with RTL language
> > is identical to this ticket I mentioned previously.
> > The file RTL_tabular_lua2.lyx demonstrates that.
>
> I see, so babel with bidi reverses table columns, but only if the
> layout=table option is used? This needs some more thoughts to be
> implemented properly.
>
>
> Yes, it behaves like that only if the option layout=tabular is passed.
I think that currently without it, any RTL text inside tabulars is written
as LTR, this is why i want to use babel and not polyglossia with lualatex,
as polyglossia does not have a solution for that (or i'm not aware of one).
with xetex polyglossia inputs the file *array*-*xetex*-*bidi*.*def, *which
causing
similar effect as the layout=tabular option.
I could contact Javier Bezos and ask if this option should always be used
with RTL languages and lualatex. If so, should lyx pass it by default when
using luatex and RTL language?
Note that it is not only affecting tables, but any environment that uses
tabular.
If for example you will remove this option from the file you sent
previously, the author
text will typeset backwards.
Any comments regarding this question:
Could math equations be made as an exception to forceRTL decoration,
just as ERT?
Thank you,
Udi
> lyx-devel mailing list
> lyx-devel at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20221224/dc0efef3/attachment.html>
More information about the lyx-devel
mailing list