From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92168 Path: news.gmane.org!not-for-mail From: "talazem@fastmail.fm" Newsgroups: gmane.comp.tex.context Subject: Re: Arabic/Hindi numerals in layout structures (headers, page numbers, etc.) Date: Mon, 3 Aug 2015 02:53:03 +0100 Message-ID: <6D6C17F1-C54F-41F3-9417-CC5810A65BC4@fastmail.fm> References: <92A0BD0E-6BBF-4EE9-85BA-5B4F2EB3BBFF@fastmail.fm> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3073\)) Content-Type: multipart/mixed; boundary="===============0986987141==" X-Trace: ger.gmane.org 1438566822 23837 80.91.229.3 (3 Aug 2015 01:53:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2015 01:53:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 03 03:53:29 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZM4wR-0003P6-O1 for gctc-ntg-context-518@m.gmane.org; Mon, 03 Aug 2015 03:53:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B080810230 for ; Mon, 3 Aug 2015 03:53:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DuSkOjlftBzs for ; Mon, 3 Aug 2015 03:53:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5F1331023C for ; Mon, 3 Aug 2015 03:52:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9277B10206 for ; Mon, 3 Aug 2015 03:52:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Xs-UjuAsOr6E for ; Mon, 3 Aug 2015 03:52:28 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 9289F101FD for ; Mon, 3 Aug 2015 03:52:27 +0200 (CEST) Original-Received: from host21.specialservers.com (host21.specialservers.com [213.175.196.29] (may be forged)) by filter3-utr.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t731qGgT027678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 3 Aug 2015 03:52:26 +0200 Original-Received: from cpc69046-oxfd25-2-0-cust964.4-3.cable.virginm.net ([81.109.87.197]:35684 helo=[10.0.1.2]) by host21.specialservers.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85) (envelope-from ) id 1ZM4vF-000uPA-Fp for ntg-context@ntg.nl; Mon, 03 Aug 2015 02:52:13 +0100 In-Reply-To: <92A0BD0E-6BBF-4EE9-85BA-5B4F2EB3BBFF@fastmail.fm> X-Mailer: Apple Mail (2.3073) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host21.specialservers.com X-AntiAbuse: Original Domain - ntg.nl X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fastmail.fm X-Get-Message-Sender-Via: host21.specialservers.com: authenticated_id: talal@alazem.org X-Source: X-Source-Args: X-Source-Dir: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.175.196.29; country=GB; latitude=51.5000; longitude=-0.1300; http://maps.google.com/maps?q=51.5000,-0.1300&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08P01Qgnx - 31d778d97d43 - 20150803 Received-SPF: neutral (filter3-utr.mf.surf.net: 213.175.196.29 is neither permitted nor denied by domain talazem@fastmail.fm) receiver=filter3-utr.mf.surf.net; client-ip=213.175.196.29; envelope-from=; helo=host21.specialservers.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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" X-Spam-Report: 5.0 points; * 3.2 RCVD_ILLEGAL_IP Received: contains illegal IP address * 0.0 HTML_MESSAGE BODY: HTML included in message * 1.8 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars Xref: news.gmane.org gmane.comp.tex.context:92168 Archived-At: --===============0986987141== Content-Type: multipart/alternative; boundary="Apple-Mail=_F3F38599-318F-4FDC-9CF4-BFFF2C2E1DDD" --Apple-Mail=_F3F38599-318F-4FDC-9CF4-BFFF2C2E1DDD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Never mind. After more word combinations when searching the archives, I = came across Wolfgang=E2=80=99s answer here: gmane.comp.tex.context/85673 = , in which he = says to use the \defineconversion command. E.g.: \defineconversion [myconversion] [=DB=B1,=DB=B2,=DB=B3,=DB=B4,=DB=B5,=DB=B6,=DB=B7,=DB=B8,=DB=B9,=DB=B1=DB= =B0, =DB=B1=DB=B1,=DB=B1=DB=B2,=DB=B1=DB=B3,=DB=B1=DB=B4,=DB=B1=DB=B5,=DB=B1= =DB=B6,=DB=B1=DB=B7,=DB=B1=DB=B8,=DB=B1=DB=B9,=DB=B2=DB=B0, =DB=B2=DB=B1,=DB=B2=DB=B2,=DB=B2=DB=B3,=DB=B2=DB=B4,=DB=B2=DB=B5,=DB=B2= =DB=B6,=DB=B2=DB=B7,=DB=B2=DB=B8,=DB=B2=DB=B9,=DB=B3=DB=B0] \setuppagenumber[numberconversion=3Dmyconversion] Of course, one can add the same to setups for the other matters as well: \setuphead[chapter,title,section,subject][conversion=3Dmyconversion] \setuplinenumbering[conversion=3Dmyconversion] \setupnotations[footnote][numberconversion=3Dmyconversion] \setupnotations[linenote][numberconversion=3Dmyconversion] etc. This actually provides lots of flexibility, as you can fine-tune various = footnote streams by assigning different scripts, etc. Talal > On 3 Aug 2015, at 00:32, talazem@fastmail.fm wrote: >=20 > Dear all, >=20 > When typesetting in Arabic (or, for that matter, other non-Latin = scripts), how does one get numerals to appear =E2=80=98natively=E2=80=99 = in layout structures such as headers, page numbers, line-numbering, and = footnote numbers? In the case of Arabic, this means using the so-called = =E2=80=9Cmashriqi=E2=80=9D, or =E2=80=9CArabic-Indic=E2=80=9D/=E2=80=9CAra= bic-Hindi=E2=80=9D numerals. Is there some option when defining the font = family? (I would have thought that using =E2=80=9C\mainlanguage[arabic]=E2= =80=9D would have done it.) Of course, I am using a font that contains = the numbers of that script. >=20 > Mind you, if I manually type such numbers into the body of my text, = they appear correctly. MWE below. >=20 > Best wishes, > Talal >=20 > =3D=3D=3D=3D=3D > \setuppapersize[A6] > \mainlanguage[arabic] > = \definefontfamily[mainface][serif][ALMFixed][features=3Darabic,range=3Dara= bic,] > \setupbodyfont [mainface,10pt] >=20 > \starttext \showframe > \righttoleft >=20 > %\setupdirections[bidi=3Dglobal,method=3Dtwo] >=20 > \section{section one} > \startlinenumbering > \input ward=20 > \stoplinenumbering > \footnote{I would like the footnote number =E2=80=94 like the page = number, section number, and linenumbers =E2=80=94 to be in the so-called = Arabic-Indic script.} >=20 > \section{section two} > =D9=85=D8=B1=D8=AD=D8=A8=D8=A7=D9=8B =D8=A8=D8=A7=D9=84=D8=B9=D8=A7=D9=84= =D9=85. =D9=A1=D9=A2=D9=A3=D9=A4=D9=A5=D9=A6=D9=A7=D9=A8=D9=A9=D9=A0 = =D9=85=D8=B1=D8=AD=D8=A8=D8=A7=D9=8B =D8=A8=D8=A7=D9=84=D8=B9=D8=A7=D9=84=D9= =85. > \stoptext > =3D=3D=3D=3D=3D --Apple-Mail=_F3F38599-318F-4FDC-9CF4-BFFF2C2E1DDD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Never mind. After more word combinations when searching the = archives, I came across Wolfgang=E2=80=99s answer here: gmane.comp.tex.context/85673, in which he says to use the = \defineconversion command. E.g.:

\defineconversion
  = [myconversion]
  = [=DB=B1,=DB=B2,=DB=B3,=DB=B4,=DB=B5,=DB=B6,=DB=B7,=DB=B8,=DB=B9,=DB=B1=DB=B0= ,
  =  =DB=B1=DB=B1,=DB=B1=DB=B2,=DB=B1=DB=B3,=DB=B1=DB=B4,=DB=B1=DB=B5,=DB= =B1=DB=B6,=DB=B1=DB=B7,=DB=B1=DB=B8,=DB=B1=DB=B9,=DB=B2=DB=B0,
  =  =DB=B2=DB=B1,=DB=B2=DB=B2,=DB=B2=DB=B3,=DB=B2=DB=B4,=DB=B2=DB=B5,=DB= =B2=DB=B6,=DB=B2=DB=B7,=DB=B2=DB=B8,=DB=B2=DB=B9,=DB=B3=DB=B0]

\setuppagenumber[numberconversion=3Dmyconversion]

Of course, one can add = the same to setups for the other matters as well:
\setuphead[chapter,title,section,subject][conversion=3Dmyconver= sion]
\setuplinenumbering[conversion=3Dmyconversion]
\setupnotations[footnote][numberconversion=3Dmyconversion]
\setupnotations[linenote][numberconversion=3Dmyconversion]
etc.

This actually provides lots of flexibility, as you can = fine-tune various footnote streams by assigning different scripts, = etc.

Talal


On 3 Aug 2015, at 00:32, talazem@fastmail.fm = wrote:

Dear all,

When typesetting in = Arabic (or, for that matter, other non-Latin scripts), how does one get = numerals to appear =E2=80=98natively=E2=80=99 in layout structures such = as headers, page numbers, line-numbering, and footnote numbers? In the = case of Arabic, this means using the so-called =E2=80=9Cmashriqi=E2=80=9D,= or =E2=80=9CArabic-Indic=E2=80=9D/=E2=80=9CArabic-Hindi=E2=80=9D = numerals. Is there some option when defining the font family? (I would = have thought that using =E2=80=9C\mainlanguage[arabic]=E2=80=9D would = have done it.) Of course, I am using a font that contains the numbers of = that script.

Mind you, if I manually type = such numbers into the body of my text, they appear correctly. MWE = below.

Best wishes,
Talal

=3D=3D=3D=3D=3D
\setuppapersize[A6]
\mainlanguage[arabic]
\definefontfamily[mainface][serif][ALMFixed][features=3Darabic,= range=3Darabic,]
\setupbodyfont [mainface,10pt]

\starttext \showframe
\righttoleft

%\setupdirections[bidi=3Dglobal,method=3Dtwo]
\section{section one}
\startlinenumbering
\input ward
\stoplinenumbering
\footnote{I would like the footnote number =E2=80=94 like the = page number, section number, and linenumbers =E2=80=94 to be in the = so-called Arabic-Indic script.}

\section{section two}
=D9=85=D8=B1=D8=AD=D8=A8=D8= =A7=D9=8B =D8=A8=D8=A7=D9=84=D8=B9=D8=A7=D9=84=D9=85. = =D9=A1=D9=A2=D9=A3=D9=A4=D9=A5=D9=A6=D9=A7=D9=A8=D9=A9=D9=A0 = =D9=85=D8=B1=D8=AD=D8=A8=D8=A7=D9=8B =D8=A8=D8=A7=D9=84=D8=B9=D8=A7=D9=84=D9= =85.
\stoptext
=3D=3D=3D=3D=3D

= --Apple-Mail=_F3F38599-318F-4FDC-9CF4-BFFF2C2E1DDD-- --===============0986987141== 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= --===============0986987141==--