ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \mainlanguage[pe]
Date: Thu, 07 Jul 2016 16:02:40 +0200	[thread overview]
Message-ID: <577E6100.6000009@gmail.com> (raw)
In-Reply-To: <CAMHZ1daTRieN1c1Vh8ePVmP4pnyB6F2pT7V=7y=Gj=qdkYpJ=w@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 850 bytes --]

> Mohammad Hossein Bateni <mailto:bateni@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

[-- Attachment #1.2: Type: text/html, Size: 2305 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

  parent reply	other threads:[~2016-07-07 14:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-06 18:02 \mainlanguage[pe] Mohammad Hossein Bateni
2016-07-06 18:30 ` \mainlanguage[pe] Wolfgang Schuster
2016-07-07  8:53   ` \mainlanguage[pe] Mohammad Hossein Bateni
2016-07-07 12:40     ` \mainlanguage[pe] Mohammad Hossein Bateni
2016-07-07 21:28       ` \mainlanguage[pe] Hans Hagen
2016-07-08  9:40         ` \mainlanguage[pe] Meer, Hans van der
2016-07-07 14:02     ` Wolfgang Schuster [this message]
2016-07-07 14:31       ` \mainlanguage[pe] Mohammad Hossein Bateni
2016-07-07 17:32         ` \mainlanguage[pe] Wolfgang Schuster
2016-08-01 16:31           ` \mainlanguage[pe] Mohammad Hossein Bateni
2016-07-07  5:20 ` \mainlanguage[pe] Mojca Miklavec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=577E6100.6000009@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).