In my arabic environment the arabic numbers are mirrored. Minimal Example:
\definefont[Sheh][name:Scheherazade*arabic at 18pt]
\definestartstop[Arab][commands=\setups{Arabic}]
\def\Arab{\doArab}
\def\Arab[#1]{
\startArab
\setupalign[r2l]\Sheh \startalignment [middle] #1 \stopalignment
\stopArab
}
\starttext
\Arab[
إِنَّ مَثَلَ عِيسَىٰ عِندَ ٱللَّـهِ كَمَثَلِ ءَادَمَ خَلَقَهُ مِن تُرَابٍ ثُمَّ قَالَ لَهُ كُن فَيَكُونُ ﴿٥٩﴾
]
The verse-number is wrong, it shows 95, but it is 59 in the code.
\stoptext
I think this is an effect of \setupalign[r2l]
, so how to fix this, that
(٥٩)
is indeed interpreted as it is (59). Of course I could always mirror the numbers myself, but that would be not very suitable.
\setupdirections[bidi=global]
?