polyglossia icon indicating copy to clipboard operation
polyglossia copied to clipboard

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

Open seloumi opened this issue 1 year ago • 9 comments

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}

seloumi avatar May 12 '24 21:05 seloumi

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

jspitz avatar May 18 '24 11:05 jspitz

Error Undefined control sequence \InitializeGlossOptions appears

\documentclass{article}

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


\begin{document}
test 
\end{document}

seloumi avatar May 20 '24 05:05 seloumi

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

jspitz avatar May 20 '24 05:05 jspitz

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}

seloumi avatar May 20 '24 15:05 seloumi

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

jspitz avatar May 20 '24 16:05 jspitz

Same issue.

seloumi avatar May 20 '24 16:05 seloumi

Same issue.

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

jspitz avatar May 20 '24 19:05 jspitz

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.

Udi-Fogiel avatar May 20 '24 19:05 Udi-Fogiel

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

seloumi avatar May 21 '24 17:05 seloumi