<div dir="ltr">One hacky way to fix it is the following:<div><br></div><div><span style="font-size:12.8px">\setupheadertexts</span><br style="font-size:12.8px"><span style="font-size:12.8px">        [{\getmarking[chapter]}]    [{\lefttoright\pagenumber}]</span><br style="font-size:12.8px"><span style="font-size:12.8px">        [{</span><span style="font-size:12.8px">\lefttoright</span><span style="font-size:12.8px">\pagenumber}]        [{\getmarking[chapter]}]</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Ideally \setupdirections[bidi] or something like that should be used, as I mentioned in the other thread; that'll fix a bunch of other problems, as well.</span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 18, 2016 at 1:14 PM, Ibn Saeed <span dir="ltr"><<a href="mailto:ibnsaeed@gmail.com" target="_blank">ibnsaeed@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It seems to be the issue with<br>
<br>
    \setupheader[style=\righttoleft, state=normal]<br>
<br>
The style is righttoleft to accomodate the proper direction for arabic text.<br>
But it messes up the page number direction.<br>
<div class="HOEnZb"><div class="h5"><br>
___________________________________________________________________________________<br>
If your question is of interest to others as well, please add an entry to the Wiki!<br>
<br>
maillist : <a href="mailto:ntg-context@ntg.nl">ntg-context@ntg.nl</a> / <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" rel="noreferrer" target="_blank">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br>
webpage  : <a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">http://www.pragma-ade.nl</a> / <a href="http://tex.aanhet.net" rel="noreferrer" target="_blank">http://tex.aanhet.net</a><br>
archive  : <a href="http://foundry.supelec.fr/projects/contextrev/" rel="noreferrer" target="_blank">http://foundry.supelec.fr/projects/contextrev/</a><br>
wiki     : <a href="http://contextgarden.net" rel="noreferrer" target="_blank">http://contextgarden.net</a><br>
___________________________________________________________________________________</div></div></blockquote></div><br></div>