ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.
@ 2016-01-18 18:07 Ibn Saeed
  2016-01-18 18:14 ` Ibn Saeed
  0 siblings, 1 reply; 9+ messages in thread
From: Ibn Saeed @ 2016-01-18 18:07 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

end of thread, other threads:[~2016-01-19 17:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-18 18:07 Page Numbers change after 9 to 01 - 11 -21 - 31 and so on Ibn Saeed
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

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