ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Arabic/Hindi numerals in layout structures (headers, page numbers, etc.)
@ 2015-08-02 23:32 talazem
  2015-08-03  1:53 ` talazem
  2015-08-03  2:04 ` Idris Samawi Hamid ادريس سماوي حامد
  0 siblings, 2 replies; 5+ messages in thread
From: talazem @ 2015-08-02 23:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear all,

When typesetting in Arabic (or, for that matter, other non-Latin scripts), how does one get numerals to appear ‘natively’ in layout structures such as headers, page numbers, line-numbering, and footnote numbers? In the case of Arabic, this means using the so-called “mashriqi”, or “Arabic-Indic”/“Arabic-Hindi” numerals. Is there some option when defining the font family? (I would have thought that using “\mainlanguage[arabic]” 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

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

\starttext \showframe
\righttoleft

%\setupdirections[bidi=global,method=two]

\section{section one}
\startlinenumbering
\input ward 
\stoplinenumbering
\footnote{I would like the footnote number — like the page number, section number, and linenumbers — to be in the so-called Arabic-Indic script.}

\section{section two}
مرحباً بالعالم. ١٢٣٤٥٦٧٨٩٠ مرحباً بالعالم.
\stoptext
=====
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-03 12:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-02 23:32 Arabic/Hindi numerals in layout structures (headers, page numbers, etc.) talazem
2015-08-03  1:53 ` talazem
2015-08-03  2:04 ` Idris Samawi Hamid ادريس سماوي حامد
2015-08-03  2:24   ` talazem
2015-08-03 12:02     ` Idris Samawi Hamid ادريس سماوي حامد

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).