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


Vafa Khalighi


On Wed, Sep 11, 2013 at 1:45 AM, Vafa Khalighi <persian-...@tug.org> wrote:

> 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
>>> number).
>>>
>>> Assuming "test" is an RTL word when I write (test 1363) I expect to get
>>> exactly that but somehow I get (test (1363
>>>
>>
>> new beta ... also with fix for issue khaled mentioned
>>
>> \starttext
>>
>> \setupalign[r2l]
>>
>> \definefont[arabicfont][Arial***arabic at 20pt]
>>
>> \enabletrackers[typesetters.**directions.one]
>> \enabletrackers[typesetters.**directions.two]
>>
>> \setupdirections[bidi=global,**method=default] \arabicfont این (یک
>> آزمایش 1363) است. \par
>> \setupdirections[bidi=global,**method=one]     \arabicfont این (یک
>> آزمایش 1363) است. \par
>> \setupdirections[bidi=global,**method=two]     \arabicfont این (یک
>> آزمایش 1363) است. \par
>>
>> \stoptext
>>
>>
>>  One related question: is it possible to change font automatically when
>>> luatex sees a LTR word?
>>>
>>
>> no, but you can define start\stop commands that deal with such switches
>>
>> also, you can combine fonts (and there a yet not documented auto
>> script/language switcher .. i have no time now to explain that one)
>>
>> btw, never use \textdir and \pardir directly (i might even define them as
>> no-ops some day) but use the higher level alignment commands
>>
>> Hans
>>
>> ------------------------------**------------------------------**-----
>>                                           Hans Hagen | PRAGMA ADE
>>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>>                                              | www.pragma-pod.nl
>> ------------------------------**------------------------------**-----
>> ______________________________**______________________________**
>> _______________________
>> 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 <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/<http://foundry.supelec.fr/projects/contextrev/>
>> wiki     : http://contextgarden.net
>> ______________________________**______________________________**
>> _______________________
>
>
>
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to