From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95365 Path: news.gmane.org!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: Re: \mainlanguage[pe] Date: Thu, 7 Jul 2016 10:31:40 -0400 Message-ID: References: <577D4E30.6060608@gmail.com> <577E6100.6000009@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1620370328990481534==" X-Trace: ger.gmane.org 1467901941 23543 80.91.229.3 (7 Jul 2016 14:32:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2016 14:32:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 07 16:32:11 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 1bLALY-0002ep-Bq for gctc-ntg-context-518@m.gmane.org; Thu, 07 Jul 2016 16:32:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D45AB1123C; Thu, 7 Jul 2016 16:31: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 dQec7peaF3vQ; Thu, 7 Jul 2016 16:31:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 2F11511295; Thu, 7 Jul 2016 16:31:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 58EC51123C for ; Thu, 7 Jul 2016 16:31:54 +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 Zfus3g56QLw3 for ; Thu, 7 Jul 2016 16:31:53 +0200 (CEST) Original-Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) (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 68D311123A for ; Thu, 7 Jul 2016 16:31:43 +0200 (CEST) Original-Received: by mail-oi0-f45.google.com with SMTP id s66so25343983oif.1 for ; Thu, 07 Jul 2016 07:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=jmhcp19lZtqpQfnp2EOCVbyouMmANEUoyXNq+YZABPY=; b=w6YtONO8r8+mIKTFqIcQdQaTfOQdjiJdwEs2JuLf1rZfWy1Os4TQhyaBs23RA01U1m QGJ9+b0vX5XTlRutCk1l/VWKpg9+i2NGFTHYIfPwG9uOzyJykXUiBBQvNmUAnJvBaDhd tn/i76L1ozWmccGH6x+n0bBEIPNL2eYpE3aBjpnDU3dCdxnnbCpb2NfnudZdKqDQDji0 6oDp6Hz0E6d2+meXrDuA+/7c1x17otj8pY7wmsrR3B38W7j1sTr5AIoOlnTQCccNUtOZ rXaksZsP+uu21nv5wYqZH/KVShDILY64tR/xeK1qeiq9ia3a0Zk25acAksPfdERaMbah KRaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=jmhcp19lZtqpQfnp2EOCVbyouMmANEUoyXNq+YZABPY=; b=NMqRG80+oNzKp8y3sSLPtwtpjy32+WInJbGqkpor4S79SGqJW6fLSAGlxDRG32ocA4 z8D09kFymsRlwArmEJIV9kuynJ9wnZQcyn06pymmgeCcgtaX+uFT5JE9oBmM/0ohb7Fd gXaxnxk2p4gxri5CqXr11V25BFTg2zLCYmVEc6h+yV5WqljZEf2IH392twRBl2i1j+Et kc1LpTAlM5xTIgANv0447ss42v2AMRMzHlqAZg7foj2YQL0iECCjWvlBBwb3fi/dFYlR YoBd4g5aHsGRZJmqTQ8pXm2VvNXxlDlAf0Rp5pxWMi+TvjBJo/cgcFlDtWpK0T/7dEwI qxGg== X-Gm-Message-State: ALyK8tIYwTEau053+SnKZalRrcQP2+wS7V4ShGfUQnKjrPlO9pTarFhWF9t5MLcsTfBgOYbf78MhD0NLI0EQnw== X-Received: by 10.202.51.215 with SMTP id z206mr343454oiz.86.1467901901544; Thu, 07 Jul 2016 07:31:41 -0700 (PDT) Original-Received: by 10.157.15.226 with HTTP; Thu, 7 Jul 2016 07:31:40 -0700 (PDT) In-Reply-To: <577E6100.6000009@gmail.com> 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:95365 Archived-At: --===============1620370328990481534== Content-Type: multipart/alternative; boundary=001a113ce0ea68265b05370c8b3d --001a113ce0ea68265b05370c8b3d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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@gmail.com> wrote: > 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 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=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 > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --001a113ce0ea68265b05370c8b3d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks, Wolfgang!

BTW why do= esn't the following work? =C2=A0it gives the 'missing number' e= rror.

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

= On Thu, Jul 7, 2016 at 10:02 AM, Wolfgang Schuster <schuster.wol= fgang@gmail.com> wrote:
= 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 conver= sion=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.<= br>
Wolfgang

_______________________________________________________________________= ____________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________

--001a113ce0ea68265b05370c8b3d-- --===============1620370328990481534== 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= --===============1620370328990481534==--