From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92170 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 03:24:50 +0100 Message-ID: <50E4DDA9-6B10-416D-9173-79C3D7C82DE0@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="===============0668557013==" X-Trace: ger.gmane.org 1438568715 19626 80.91.229.3 (3 Aug 2015 02:25:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2015 02:25:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 03 04:25:03 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 1ZM5R0-0002FJ-MD for gctc-ntg-context-518@m.gmane.org; Mon, 03 Aug 2015 04:25:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6ED8D10230 for ; Mon, 3 Aug 2015 04:25:01 +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 zLG22JwptnrZ for ; Mon, 3 Aug 2015 04:24:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6ADC01023D for ; Mon, 3 Aug 2015 04:24:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 330AD10206 for ; Mon, 3 Aug 2015 04:24:09 +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 lTtI08C95ku3 for ; Mon, 3 Aug 2015 04:24:07 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 9AFC8101FD for ; Mon, 3 Aug 2015 04:24:04 +0200 (CEST) Original-Received: from host21.specialservers.com (host21.specialservers.com [213.175.196.29] (may be forged)) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t732O2fO021198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 3 Aug 2015 04:24:02 +0200 Original-Received: from cpc69046-oxfd25-2-0-cust964.4-3.cable.virginm.net ([81.109.87.197]:41032 helo=[10.0.1.2]) by host21.specialservers.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85) (envelope-from ) id 1ZM5Q0-0012q1-AN for ntg-context@ntg.nl; Mon, 03 Aug 2015 03:24:00 +0100 In-Reply-To: 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.5 (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: 07P02o2cf - 97e208fa63ff - 20150803 Received-SPF: neutral (filter1-utr.mf.surf.net: 213.175.196.29 is neither permitted nor denied by domain talazem@fastmail.fm) receiver=filter1-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) 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:92170 Archived-At: --===============0668557013== Content-Type: multipart/alternative; boundary="Apple-Mail=_34ED75EE-84FC-4211-90EB-D8991541AAC7" --Apple-Mail=_34ED75EE-84FC-4211-90EB-D8991541AAC7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thank you for that, Idris. I had tried those earlier, but both of them = gave me not digits but the Arabic equivalents of roman numerals =E2=80=94 = letters, used in the Arabic language, to denote enumeration (as you = know). In fact, I have now settled on using those for my front matter in = the Arabic critical edition. In fact, now that you mention them both, it = seems to me that they produce the same out put: =D8=A7 =D8=A8 =D8=AC =D8=AF= =D9=87 =D9=88 =D8=B2 =E2=80=A6 which I would expect from abjadnumerals = but not from arabicnumerals. Perhaps there is a bug? But, in any case, the solution of Wolfgang solves my immediate problem. = It would, of course, be nice not to have had to type out many lines of = numbers (the Arabic edition has more than 250 sections, i.e. entries), = and to have this automated when declaring the main language to be = Arabic, for example. But it is a small price to pay for the flexible = functionality.=20 All the best, and salam, Talal > On 3 Aug 2015, at 03:04, Idris Samawi Hamid =D8=A7=D8=AF=D8=B1=D9=8A=D8=B3= =D8=B3=D9=85=D8=A7=D9=88=D9=8A =D8=AD=D8=A7=D9=85=D8=AF = wrote: >=20 > Salaam, Talal, > See below: >=20 > On Sun, 02 Aug 2015 17:32:44 -0600, 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 > I'm on the move, but try these keys in the appropriate structure = commands: >=20 > numberconversion=3Darabicnumerals > numberconversion=3Dabjadnumerals >=20 > Failing that, a workaround is to use the m-translate module, and = define a translation for each the ten digits. But = numberconversion=3Darabicnumerals is supposed to work. >=20 > Wassalaam > Idris >=20 > PS \start-stopsection is now standard (\section is still there, = but...) >=20 >>=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 >> \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 >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> 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 >> = __________________________________________________________________________= _________ >=20 >=20 > --=20 > Idris Samawi Hamid > Professor of Philosophy > Colorado State University > Fort Collins, CO 80523 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_34ED75EE-84FC-4211-90EB-D8991541AAC7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thank you for that, Idris. I had tried those earlier, = but both of them gave me not digits but the Arabic equivalents of roman = numerals =E2=80=94 letters, used in the Arabic language, to denote = enumeration (as you know). In fact, I have now settled on using those = for my front matter in the Arabic critical edition. In fact, now that = you mention them both, it seems to me that they produce the same out = put: =D8=A7 =D8=A8 =D8=AC =D8=AF =D9=87 =D9=88 =D8=B2 =E2=80=A6 which I = would expect from abjadnumerals but not from arabicnumerals. Perhaps = there is a bug?

But, = in any case, the solution of Wolfgang solves my immediate problem. It = would, of course, be nice not to have had to type out many lines of = numbers (the Arabic edition has more than 250 sections, i.e. entries), = and to have this automated when declaring the main language to be = Arabic, for example. But it is a small price to pay for the flexible = functionality. 

All the best, and salam,
Talal

On 3 Aug 2015, at 03:04, Idris Samawi Hamid = =D8=A7=D8=AF=D8=B1=D9=8A=D8=B3 =D8=B3=D9=85=D8=A7=D9=88=D9=8A =D8=AD=D8=A7= =D9=85=D8=AF <Idris.Hamid@colostate.edu> wrote:

Salaam, Talal,
See below:

On Sun, 02 Aug 2015 17:32:44 -0600, talazem@fastmail.fm <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.

I'm on the move, but try these keys in the = appropriate structure commands:

numberconversion=3Darabicnumerals
numberconversion=3Dabjadnumerals

Failing that, a workaround is to use the = m-translate module, and define a translation for each the ten digits. = But numberconversion=3Darabicnumerals is supposed to work.

Wassalaam
Idris

PS \start-stopsection is now standard (\section = is still there, but...)


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
_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________


-- 
Idris Samawi = Hamid
Professor of Philosophy
Colorado State = University
Fort Collins, CO 80523
_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_34ED75EE-84FC-4211-90EB-D8991541AAC7-- --===============0668557013== 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= --===============0668557013==--