ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Persian numbers for page numbering
@ 2013-11-29 15:49 Mingranina Gingranina
  2013-11-30 10:12 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Mingranina Gingranina @ 2013-11-29 15:49 UTC (permalink / raw)
  To: ntg-context

Dear All,
Hello,

How can I force ConTeXt to use Persian numbers for page numbering?

Thanks
Mingranina
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Persian numbers for page numbering
  2013-11-29 15:49 Persian numbers for page numbering Mingranina Gingranina
@ 2013-11-30 10:12 ` Wolfgang Schuster
  2013-12-05  7:48   ` Mingranina Gingranina
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2013-11-30 10:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 29.11.2013 um 16:49 schrieb Mingranina Gingranina <mingranina@gmail.com>:

> Dear All,
> Hello,
> 
> How can I force ConTeXt to use Persian numbers for page numbering?

\setuppagenumber[numberconversion=persiannumerals]

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Persian numbers for page numbering
  2013-11-30 10:12 ` Wolfgang Schuster
@ 2013-12-05  7:48   ` Mingranina Gingranina
  2013-12-22 13:49     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Mingranina Gingranina @ 2013-12-05  7:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

On 11/30/13, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>
> Am 29.11.2013 um 16:49 schrieb Mingranina Gingranina
> <mingranina@gmail.com>:
>
>> 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

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 17519 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Persian numbers for page numbering
  2013-12-05  7:48   ` Mingranina Gingranina
@ 2013-12-22 13:49     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2013-12-22 13:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 05.12.2013 um 08:48 schrieb Mingranina Gingranina <mingranina@gmail.com>:

> On 11/30/13, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>> 
>> Am 29.11.2013 um 16:49 schrieb Mingranina Gingranina
>> <mingranina@gmail.com>:
>> 
>>> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-22 13:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-29 15:49 Persian numbers for page numbering Mingranina Gingranina
2013-11-30 10:12 ` Wolfgang Schuster
2013-12-05  7:48   ` Mingranina Gingranina
2013-12-22 13:49     ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).