-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with period in headings number (RTL languages) #213
Comments
No reply !!! |
@seloumi can you please try if the following change in gloss-arabic produces the correct result in- and outside headings?
Just replace the existing |
or even better
|
Yes this solve the problem |
Thanks for testing. Fixed. |
@jspitz But for \documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage[numerals=mashriq]{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}
\begin{document}
\tableofcontents
\section{عنوان أول}
\subsection{عنوان فرعي أول}
\subsection{عنوان فرعي ثان}
\section{عنوان ثان}
١.٢٣
\end{document} |
I think the issue can be solved either for
|
OK, done. |
Thanks a lot |
I've reverted the fixes. It turned out \set[non]latin is the way to go. See bidi-tex/bidi#5 |
Re-fixed with |
@jspitz This solve the issue but another problem appear with \documentclass{article}
\usepackage{amsmath}
\usepackage{polyglossia}
\setdefaultlanguage[numerals=maghrib]{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}
\begin{document}
\tableofcontents
\section{عنوان أول}
\subsection{عنوان فرعي أول}
\subsection{عنوان فرعي ثان}
\section{عنوان ثان}
\begin{equation}
a=\frac{dx}{dt}
\end{equation}
\end{document} |
Fixed.
Yes, this is known. |
@jspitz with version 1.45 the issue persists for eastern numerals form (numbers for subsection heading still reversed) \documentclass[12pt]{article}
\usepackage{polyglossia}
\setdefaultlanguage{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}
\begin{document}
\section{عنوان}
\subsection{عنوان فرعي أول}
\subsection{عنوان فرعي ثاني}
\end{document} |
Should be fixed at 4eb6cf5. Please test. |
Since I have recently updated to 1.46, I have problems in Hebrew text with ordinary numbers when both numbers with period and section numbering reverted. Example follows.
See also bidi-tex/bidi#11 |
Thanks, this should be fixed in 4c3eb54 |
And they shouldn't? If so, this needs to be fixed in gloss-hebrew. |
Please try after 038ba03 |
No, this does not work. |
@jspitz I thought the numbering in headings for all RTL languages should be RTL ! |
But doesn't this re-introduce issues with Arabic? |
|
No, only globally for all RLL languages or not. |
Please try 57b17b3 |
Also with |
|
This is how it works now with equation numbering and
|
Can you please try after try after 038ba03 without |
Without With
Seem to work perfect without
|
also for Kurdish, Persian, Syriac, and Urdu (amend #213)
It turned out |
Consider this example of writing arabic headings with tableofcontents
Which produce
Numbers with period in headings are reversed, this is due to a code from
bidi
package which invert nembers containing a period but this is not desirable inside headings numbers.A solution for this issue is to add
\setnonlatin
from bidi like thisMy request is adding this solution when an RTL language is defined as main language, thanks a lot.
The text was updated successfully, but these errors were encountered: