[NTG-context] \mainlanguage[pe]

Mohammad Hossein Bateni bateni at gmail.com
Thu Jul 7 16:31:40 CEST 2016


Thanks, Wolfgang!

BTW why doesn't the following work?  it gives the 'missing number' error.

% \mainlanguage[en]
\romannumerals{\currentdate[day]}

On Thu, Jul 7, 2016 at 10:02 AM, Wolfgang Schuster <
schuster.wolfgang at gmail.com> wrote:

> Mohammad Hossein Bateni <bateni at gmail.com>
> 7. Juli 2016 um 10:53
> Wolfgang & Hans,
>
> In customizing the date, is there a way to use a number converter on day
> and year?  In particular, I'd like to apply persiandecimals conversion on
> them.
>
> You can only change the numbers for the day (see below, I used greek to
> demonstrate it) but it could be done better (e.g.
> \currentdate[persian->day,space,month,persian->month] with "->" as
> separator for the conversion and keyword).
>
> %% begin example
> \installlanguage[fa][state=start]
>
> \defineconversion[fa][day][α,β,γ,δ,ε,ζ,η,θ,ι,κ,λ,μ]
>
> \setupbodyfont[pagella]
>
> \starttext
>
> \currentdate[day]
>
> \language[fa]
>
> \currentdate[day]
>
> \stoptext
> %% end example
>
> (I have a similar question regarding \currentime.)
>
> Not possible at the moment.
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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
>
> ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160707/5b3fa5cc/attachment-0001.html>


More information about the ntg-context mailing list