Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Wolfgang Schuster
Ibn Saeed 19. Januar 2016 um 04:54 Mohammad Hossein Bateni writes: One hacky way to fix it is the following: \setupheadertexts[{\getmarking[chapter]}] [{\lefttoright\pagenumber}][{\lefttoright\pagenumber}]

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Mohammad Hossein Bateni
That should work for Ibn Saeed, but it's not a complete solution. For example it does not work if one wants to write "page x of y" instead, with "page" and "y" written in Arabic/Persian. Then the text of the header is partly LTR and part RTL. This is still simple and I can use my hacky solution

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Wolfgang Schuster
Mohammad Hossein Bateni 19. Januar 2016 um 12:16 That should work for Ibn Saeed, but it's not a complete solution. For example it does not work if one wants to write "page x of y" instead, with "page" and "y" written in Arabic/Persian. Then the text of the header is

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Mohammad Hossein Bateni
Thanks, Wolfgang! This does work indeed. I had actually tried it before but made a mistake which made it useless. What commands accept this kind of setup? Do the headers and footers accept such a thing? How much overhead does this cause? Is it possible to run the bidi code on a small string?

[NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Ibn Saeed
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

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Ibn Saeed
It seems to be the issue with \setupheader[style=\righttoleft, state=normal] The style is righttoleft to accomodate the proper direction for arabic text. But it messes up the page number direction. ___ If

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Mohammad Hossein Bateni
One hacky way to fix it is the following: \setupheadertexts [{\getmarking[chapter]}][{\lefttoright\pagenumber}] [{\lefttoright\pagenumber}][{\getmarking[chapter]}] Ideally \setupdirections[bidi] or something like that should be used, as I mentioned in the other

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Ibn Saeed
Mohammad Hossein Bateni gmail.com> writes: > > > One hacky way to fix it is the following: > > \setupheadertexts        [{\getmarking[chapter]}]    [{\lefttoright\pagenumber}]        [{\lefttoright\pagenumber}]        [{\getmarking[chapter]}] > > > Ideally \setupdirections[bidi] or

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Hans Hagen
On 1/18/2016 7:14 PM, Ibn Saeed wrote: It seems to be the issue with \setupheader[style=\righttoleft, state=normal] The style is righttoleft to accomodate the proper direction for arabic text. But it messes up the page number direction. you can try leftstyle instead (there's also