From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95364 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \mainlanguage[pe] Date: Thu, 07 Jul 2016 16:02:40 +0200 Message-ID: <577E6100.6000009@gmail.com> References: <577D4E30.6060608@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0068500565454488563==" X-Trace: ger.gmane.org 1467900238 27334 80.91.229.3 (7 Jul 2016 14:03:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2016 14:03:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 07 16:03:45 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bL9u4-0008Oh-1G for gctc-ntg-context-518@m.gmane.org; Thu, 07 Jul 2016 16:03:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 557471125D; Thu, 7 Jul 2016 16:02:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ddKGzurT9RBL; Thu, 7 Jul 2016 16:02:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id E3E4D11263; Thu, 7 Jul 2016 16:02:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6924511261 for ; Thu, 7 Jul 2016 16:02:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bli1yX_s_izH for ; Thu, 7 Jul 2016 16:02:51 +0200 (CEST) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9BE0E1125D for ; Thu, 7 Jul 2016 16:02:41 +0200 (CEST) Original-Received: by mail-wm0-f42.google.com with SMTP id a66so33297728wme.0 for ; Thu, 07 Jul 2016 07:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=gmTt4IuDTiPij4FtMUJVqo03ZgtLkpWjSIQEWaz3QyA=; b=jsGNrCq+Sxh3WIk+CkLv2WUb0YCejVM6J3mUnJUpzZqUl6Ae9Zprmzjhz1QuHkQJQI u45+exW+qKrnWcizQBK2qrdtkJ3ESKMF20+4mLpBjciOMbPjtEQoxjwv9/5Bm7ygTsPV KY4li748RVX0isqAMaL5P6BApeHSDORzj+OH+hQqXIZuxry+7bL9GpRfw34Lgn13nX4L 7ySVb5z4+7qKPa7jj43Wer1TjYfsXFIKaQ9RmyFMpvO4NrYEnvWkXS1BRz75pb0mnMMm t4tvuoMJuzO/x8+y/6/tLVRkWn1x/Qcp0XB2oTwihebk7g6zhesE/moltxkeT9pn1sj2 mxfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=gmTt4IuDTiPij4FtMUJVqo03ZgtLkpWjSIQEWaz3QyA=; b=YSyhG/Fq4AWqLP9bi/jhJaJRDl4i6aH1f5njFGY/Lbhnobiw8cXUAUGRC3mI9yIixX SjJpBBaEWFQg+vPmhbnJT78Oi09ONvXnKrqw04MBLOTWXKlR9i5hIuNPRgsMk/JJ6IYW wUszk/kHGgNWtF7pho5BBY3usT2BK4W3YJMIna0H41IJUlwjFk7UR7H5nfzHUSDRdObD 5LNvvvq2bF16SMVVHEXo1OEI8atKPQNZB4K3XjEmzdLZt50pw+3MRC9yWjo85ja+dra/ e0D84TDlgF0N2R7BojfEytpgS2sPR0z0JYdZS1m3x/K1QTE32Maiwgw75aXqysM26vms einA== X-Gm-Message-State: ALyK8tL/9jh7TVDT48/KlS+zAaRlNjhyZBUIeGDi7IaQqbYyi01yIMlvdzJ4u2C036riig== X-Received: by 10.28.66.204 with SMTP id k73mr26124851wmi.20.1467900161085; Thu, 07 Jul 2016 07:02:41 -0700 (PDT) Original-Received: from keima.localdomain (x2f27240.dyn.telefonica.de. [2.242.114.64]) by smtp.gmail.com with ESMTPSA id l4sm4731357wjk.18.2016.07.07.07.02.40 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 07:02:40 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95364 Archived-At: This is a multi-part message in MIME format. --===============0068500565454488563== Content-Type: multipart/alternative; boundary="------------080706040701070705060903" This is a multi-part message in MIME format. --------------080706040701070705060903 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Mohammad Hossein Bateni > 7. Juli 2016 um 10:53 > Wolfgang & Hans, > > In customizing the date, is there a way to use a number converter on=20 > day and year? In particular, I'd like to apply persiandecimals=20 > conversion on them. You can only change the numbers for the day (see below, I used greek to=20 demonstrate it) but it could be done better (e.g.=20 \currentdate[persian->day,space,month,persian->month] with "->" as=20 separator for the conversion and keyword). %% begin example \installlanguage[fa][state=3Dstart] \defineconversion[fa][day][=CE=B1,=CE=B2,=CE=B3,=CE=B4,=CE=B5,=CE=B6,=CE=B7= ,=CE=B8,=CE=B9,=CE=BA,=CE=BB,=CE=BC] \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 --------------080706040701070705060903 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
7.= =20 Juli 2016 um 10:53
Wolfgang & Hans,

In=20 customizing the date, is there a way to use a number converter on day=20 and year?=C2=A0 In particular, I'd like to apply persiandecimals conversi= on=20 on them.
You can only change the numbers for the day (see below, I used greek to=20 demonstrate it) but it could be done better (e.g.=20 \currentdate[persian->day,space,month,persian->month] with "->" as separator for the conversion and keyword).

%% begin example
\installlanguage[fa][state=3Dstart]

\defineconversion[fa][day][=CE=B1,=CE=B2,=CE=B3,=CE=B4,=CE=B5,=CE=B6,=CE=B7= ,=CE=B8,=CE=B9,=CE=BA,=CE=BB,=CE=BC]

\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
--------------080706040701070705060903-- --===============0068500565454488563== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0068500565454488563==--