reutenauer / polyglossia

An alternative to Babel for XeLaTeX and LuaLaTeX
http://www.ctan.org/pkg/polyglossia
MIT License
185 stars 52 forks source link

Change first item in alph counter for Algeria, Morocco and Tunisia. #640

Open seloumi opened 1 month ago

seloumi commented 1 month ago

In North African countries we usually use letter أ rather then ا as first element in arabic alph counter, please kindly take this into consideration.

\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}

\begin{document}

\abjadmaghribi{1} %  this should be أ not ا 

\end{document}
jspitz commented 1 month ago

Should be fixed for the next version (with respective locale option set). Please text if possible.

seloumi commented 1 month ago

Error Undefined control sequence \InitializeGlossOptions appears

\documentclass{article}

\usepackage{polyglossia}
\setdefaultlanguage[locale=algeria]{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}

\begin{document}
test 
\end{document}
jspitz commented 1 month ago

You need to download at least polyglossia.sty and arabicnumbers.sty as well. Best is to test on the whole development repository.

seloumi commented 1 month ago

For this example alph counter in second list appears ا, isn't supposed to be أ ?

\documentclass{article}

\usepackage{polyglossia}
\setdefaultlanguage[locale=algeria]{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}

\begin{document}

\begin{enumerate}
\item
\begin{enumerate}
\item
\end{enumerate}
\end{enumerate}

\end{document}
jspitz commented 1 month ago

This employs the \adjad counter (not \abjadmaghribi). I have added a new commit that addresses the other counter, too. Please test again.

seloumi commented 1 month ago

Same issue.

jspitz commented 1 month ago

Same issue.

I don't understand. Here is the output I get from your test document: grafik

Udi-Fogiel commented 1 month ago

I just realized I gave priority to the initialized key values rather than the users ones in my latest commit, it might be the problem if you are experiencing the problem with a less minimal document, for example with

\documentclass{article}

\usepackage{polyglossia}
\setdefaultlanguage[locale=algeria]{arabic}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}

\begin{document}
\selectlanguage{arabic}
\begin{enumerate}
\item
\begin{enumerate}
\item
\end{enumerate}
\end{enumerate}

\end{document}

should be fixed now.

seloumi commented 1 month ago

Sorry @jspitz it was my fault, the code work fine, thanks.