spurious spaces around forceLTR insets

Udicoudco udifoglle at gmail.com
Mon Apr 10 14:37:26 UTC 2023


On Mon, Apr 10, 2023 at 10:43 AM Jürgen Spitzmüller <jspitzm at gmail.com> wrote:
>
> Am Montag, dem 10.04.2023 um 08:38 +0200 schrieb Jürgen Spitzmüller:
> > Am Montag, dem 10.04.2023 um 08:08 +0200 schrieb Jürgen Spitzmüller:
> > > Let's address this next. I'll push the patch meanwhile.
> >
> > I have integrated a modification of the former patch on top of the
> > other. Please test.
>
> Udi,
>
> It seems that with luabidi (luatex/polyglossia), the \LRE needs to be
> wrapped itself in a group. Otherwise text that follows the \LRE{} is
> lost.
>
> Can you confirm?
> A MWE to try is https://www.lyx.org/trac/attachment/ticket/3005/LRE.lyx
>
> Attached a patch that fixes the issue for me.
>
> (Probably a bug in luabidi, but this package is virtually unmaintained)
>

I think this is actually a bug in LuaTeX.
Attached a minimal file that produces similar
behaviour.

Note that if I comment the line
    \textdir TLT

in the attached file the output is ok, but \textdir is TLT by default,
so I find it strange.

> --
> lyx-devel mailing list
> lyx-devel at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.tex
Type: text/x-tex
Size: 67 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230410/3a1738b1/attachment.tex>


More information about the lyx-devel mailing list