From: Ibn Saeed <ibnsaeed@gmail.com>
To: ntg-context@ntg.nl
Subject: Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.
Date: Mon, 18 Jan 2016 18:07:36 +0000 (UTC) [thread overview]
Message-ID: <loom.20160118T185611-858@post.gmane.org> (raw)
Hello
I am trying to typeset a book in arabic in ConTeXt. I have stumbled upon
this issue
Page Numbers change after 9
to 01 for page 10
21 for page 12
31 for page 13
41 for page 14
and so on
Here is the snapshot of the page number issue:
https://i.imgsafe.org/a5f34fb.jpg
Here is my ConTeXt Code:
\mainlanguage[arabic]
\setupdirections[bidi=global]
\definefontfeature
[arabic]
[mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
liga=yes,dlig=yes,rlig=yes,tlig=yes,
calt=yes,trep=yes,clig=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]
\starttypescript [serif] [arabic]
\definefontsynonym [Arabic-Regular] [file:ScheherazadeRegOT.ttf]
[features=arabic]
\definefontsynonym [Arabic-Bold] [file:ScheherazadeRegOT.ttf]
[features=arabic]
\stoptypescript
\starttypescript [serif] [arabic] [name]
\usetypescript[serif][fallback]
\definefontsynonym [Serif] [Arabic-Regular] [features=arabic]
\definefontsynonym [SerifBold] [Arabic-Bold] [features=arabic]
\stoptypescript
\starttypescript [Arabic]
\definetypeface [Arabic] [rm] [serif] [arabic] [default]
\stoptypescript
\setupmargindata[margintext]
[align=r2l]
\setupalign[r2l]
\setuppapersize[A4]
\setuplayout[
grid=min,
backspace=46.666mm, width=140mm,
topspace=33.000mm, height=198mm,
header=12.9mm,footer=9mm,
]
%% Double sided document
\setuppagenumbering[
alternative=doublesided,
state=none,
location={header,marginedge},
% conversion=romannumerals, left={--~}, right={~--},
]
\setupbodyfont[Arabic,18pt]
\setupinterlinespace[line=42pt]
\setupheads[number=no]
\setuphead[chapter]
[style=\bfd,before=,after=\blank,alternative=middle,grid=both]
\setuphead[section][style=\bfc,before=\blank,after=,grid=both]
\setupbackgrounds[text][text][frame=off, topframe=on]
\setupheader[style=\righttoleft, state=normal]
\setupheadertexts
[{\getmarking[chapter]}] [{\pagenumber}]
[{\pagenumber}] [{\getmarking[chapter]}]
\starttext
\chapter{شرح الآجرومية}
الحمد لله رب العالمين، وصلى الله وسلم وبارك على عبده ورسوله نبينا محمد وعلى
آله وصحبه أجمعين، أما بعد:\\
\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
___________________________________________________________________________________
next reply other threads:[~2016-01-18 18:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-18 18:07 Ibn Saeed [this message]
2016-01-18 18:14 ` Ibn Saeed
2016-01-18 18:28 ` Mohammad Hossein Bateni
2016-01-19 3:54 ` Ibn Saeed
2016-01-19 10:20 ` Wolfgang Schuster
2016-01-19 11:16 ` Mohammad Hossein Bateni
2016-01-19 11:30 ` Wolfgang Schuster
2016-01-19 17:29 ` Mohammad Hossein Bateni
2016-01-18 21:43 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20160118T185611-858@post.gmane.org \
--to=ibnsaeed@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).