Persian numbers for page numbering
Dear All, Hello, How can I force ConTeXt to use Persian numbers for page numbering? Thanks Mingranina
On 11/30/13, Wolfgang Schuster
Am 29.11.2013 um 16:49 schrieb Mingranina Gingranina
: Dear All, Hello,
How can I force ConTeXt to use Persian numbers for page numbering?
\setuppagenumber[numberconversion=persiannumerals]
Dear Wolfgang, Hello, First of all let me thank you very much for your reply. With the above command the page number is now typeset in Persian, but it uses Persian letters not Persian digits. My code is: \definefontfeature [persian] [arabic] % [...] \usemodule[simplefonts] \setmainfont[dejavusans][features=persian] \mainlanguage[pe] \setuppagenumbering[conversion=numbers] \setuppagenumber[numberconversion=persiannumerals] \starttext \setupalign[r2l] \page[2] \definedfont[dejavusans*persian] این یک آزمایش است. \setupalign[l2r] This is a test. \stoptext The PDF output is also atteched to this message. Yours Mingranina Persian
Am 05.12.2013 um 08:48 schrieb Mingranina Gingranina
On 11/30/13, Wolfgang Schuster
wrote: Am 29.11.2013 um 16:49 schrieb Mingranina Gingranina
: Dear All, Hello,
How can I force ConTeXt to use Persian numbers for page numbering?
\setuppagenumber[numberconversion=persiannumerals]
Dear Wolfgang, Hello,
First of all let me thank you very much for your reply.
With the above command the page number is now typeset in Persian, but it uses Persian letters not Persian digits. My code is:
\defineconversion [myconversion] [۱,۲,۳,۴,۵,۶,۷,۸,۹,۱۰, ۱۱,۱۲,۱۳,۱۴,۱۵,۱۶,۱۷,۱۸,۱۹,۲۰, ۲۱,۲۲,۲۳,۲۴,۲۵,۲۶,۲۷,۲۸,۲۹,۳۰] \setuppagenumber[numberconversion=myconversion] \setupbodyfont[dejavu,ss] \starttext \dorecurse{30}{\dontleavehmode\page} \stoptext Wolfgang
participants (2)
-
Mingranina Gingranina
-
Wolfgang Schuster