Regression in 2.4.0
Udicoudco
udifoglle at gmail.com
Thu May 16 22:26:31 UTC 2024
On Fri, May 17, 2024 at 12:05 AM Jean-Marc Lasgouttes
<lasgouttes at lyx.org> wrote:
>
> Le 16/05/2024 à 22:38, Jean-Marc Lasgouttes a écrit :
> >> Why do we have an exception for arabic-arabi?
> >> Is the output different from hebrew?
> >
> > My guess is that it was in 2017 when I wrote f1dd80f464b46f61:
> >
> > * the language arabic_arabi also sets leqno by default. This is
> > currently hardcoded for lack of a better idea.
> >
> > I tried again, and indeed I do not see that. I see though that numbers
> > are like )1(. Is this expected?
No, this is probably a bug in LyX.
the arabi package (the .ldf file) has the following
\addto\extrasarabic{%
\let\SAV@@eqnnum\@eqnnum
\let\SAV at tagform@\tagform@
\def\tagform@#1{\maketag@@@{)\ignorespaces#1\unskip\@@italiccorr(}}%
if amsmath is loaded
\renewcommand{\@eqnnum}{)\theequation(}% otherwise
}
\addto\noextrasarabic{%
\let\@eqnnum\SAV@@eqnnum
\let\tagform@\SAV at tagform@
}
probably \textLR does not use \noextrasarabic so the parenthesis are
reversed in left to right context, but they should not be.
> I just read the arabi package change log and source and, indeed, I see
> nothing suggesting that the number should be on the left.
There is maybe something related in page 76 of the documentation (the
last point),
it is suggested to pass the reqno option. Strangely if I use reqn or leqno, with
or without amsmath, or with or without ams class, e.g. amsart, I get different
and arguably unexpected results.
> I can change that later in the 2.4.x lifetime. Also, LyX believes that
> numbers should be with arabic glyphs, but I see an output as normal
> numbers. What is normally expected?
If I remove the \textLR that wraps the equation in the LaTeX source
I get correct parenthesis, the equation number is on the left side,
and the number is an arabic glyph. This is probably related to
https://www.lyx.org/trac/ticket/12731
When I tested now, for hebrew it looks great, but
now arabic_arabi looks the same in the GUI, i.e.
the equation tag is not flipped like in LyX 2.3.x.
Udi
> --
> lyx-devel mailing list
> lyx-devel at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-devel
More information about the lyx-devel
mailing list