Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-12 Thread Vafa Khalighi
There is one more problem with the default method: \starttext \setupalign[r2l] \definefont[arabicfont][Arial*arabic at 20pt] \setupdirections[bidi=global,method=default] 1. \stoptext from right to left perspective it prints 1. (dot after digit 1) as .1 (dot before digit 1) however

Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-11 Thread Vafa Khalighi
I tried the latest beta; it fixes the problem I mentioned but breaks something else: \starttext \setupalign[r2l] \definefont[arabicfont][Arial*arabic at 20pt] \setupdirections[bidi=global,method=default] \hbox dir TRT{\arabicfont (1984)} \stoptext If you have \hbox dir TLT, you get

Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-11 Thread Vafa Khalighi
Also the itemize environment is broken too (perhaps same issue is here too): \setupitemize[left=(, right=), margin=4em, stopper=] \starttext \setupalign[r2l] \definefont[arabicfont][Arial*arabic at 20pt] \setupdirections[bidi=global,method=default] \arabicfont \startitemize[a] \item اولی \item

Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-11 Thread Hans Hagen
On 9/11/2013 1:34 PM, Vafa Khalighi wrote: Also the itemize environment is broken too (perhaps same issue is here too): \setupitemize[left=(, right=), margin=4em, stopper=] \starttext \setupalign[r2l] \definefont[arabicfont][Arial*arabic at 20pt] \setupdirections[bidi=global,method=default]

Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-11 Thread Khaled Hosny
On Wed, Sep 11, 2013 at 02:37:35PM +0200, Hans Hagen wrote: anyway, it would be nice to see where the three methods fail: Of the three, method one seems to give correct results on all the given tests (I’m yet to test with my own documents). I’m skeptical that bidi can be implemented in a one

Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-11 Thread Hans Hagen
On 9/11/2013 5:24 PM, Khaled Hosny wrote: On Wed, Sep 11, 2013 at 02:37:35PM +0200, Hans Hagen wrote: anyway, it would be nice to see where the three methods fail: Of the three, method one seems to give correct results on all the given tests (I’m yet to test with my own documents). I’m

[NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-10 Thread Vafa Khalighi
Hi The following document shows the wrong behaviour (the second parentheses is mirrored incorrectly and it should be after the number not before the number). Assuming test is an RTL word when I write (test 1363) I expect to get exactly that but somehow I get (test (1363 One related question: is

Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-10 Thread Hans Hagen
On 9/10/2013 2:57 PM, Vafa Khalighi wrote: Hi The following document shows the wrong behaviour (the second parentheses is mirrored incorrectly and it should be after the number not before the number). Assuming test is an RTL word when I write (test 1363) I expect to get exactly that but

Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-10 Thread Vafa Khalighi
Sorry that is not fixed. If you type two of these, the second one will be broken. \starttext \setupalign[r2l] \definefont[arabicfont][Arial*arabic at 20pt] \setupdirections[bidi=global,method=default] \arabicfont این (آزمایش 1363) و یک (آزمایش 1984) خوب است و باقی ماجرا. \stoptext

Re: [NTG-context] wrong behaviour with ConTeXt unicode bidi

2013-09-10 Thread Vafa Khalighi
Thanks. That is now fixed. On Wed, Sep 11, 2013 at 1:26 AM, Hans Hagen pra...@wxs.nl wrote: On 9/10/2013 2:57 PM, Vafa Khalighi wrote: Hi The following document shows the wrong behaviour (the second parentheses is mirrored incorrectly and it should be after the number not before the