Re: [NTG-context] Changing decimals points to Persian ones via font features

2016-08-08 Thread Hans Hagen
On 8/8/2016 5:24 PM, Mohammad Hossein Bateni wrote: Thanks, Hans! I see; this does work except for the trouble of annotating with \digits macro. Would it be possible if I wrote a processor in Lua to do the work? nodes.tasks.appendaction ("processors", "before", "fix_persian_mathperiod") Can

Re: [NTG-context] Changing decimals points to Persian ones via font features

2016-08-08 Thread Mohammad Hossein Bateni
Thanks, Hans! I see; this does work except for the trouble of annotating with \digits macro. Would it be possible if I wrote a processor in Lua to do the work? nodes.tasks.appendaction ("processors", "before", "fix_persian_mathperiod") Can I find out if a node is inside math? If I look at the

Re: [NTG-context] Changing decimals points to Persian ones via font features

2016-08-08 Thread Hans Hagen
On 8/2/2016 9:54 PM, Mohammad Hossein Bateni wrote: Could the problem be because math fonts use mode=base instead of mode=node? Or is it because in math fonts, the digits and/or full-stop have different codes? math fonts are defined and then don't change i.e. they are quite static and all

Re: [NTG-context] Changing decimals points to Persian ones via font features

2016-08-08 Thread Hans Hagen
On 8/1/2016 3:46 PM, Mohammad Hossein Bateni wrote: Dear list, I want to add a customized font feature to the math font, to automatically change the decimal point (unicode 0x2E) to the Arabic/Farsi version (unicode 0x66B). This will go well with the mapping from Latin digits to Farsi digits

Re: [NTG-context] Changing decimals points to Persian ones via font features

2016-08-02 Thread Mohammad Hossein Bateni
Could the problem be because math fonts use mode=base instead of mode=node? Or is it because in math fonts, the digits and/or full-stop have different codes? —MHB On Mon, Aug 1, 2016 at 9:46 AM, Mohammad Hossein Bateni wrote: > Dear list, > > I want to add a customized font

[NTG-context] Changing decimals points to Persian ones via font features

2016-08-01 Thread Mohammad Hossein Bateni
Dear list, I want to add a customized font feature to the math font, to automatically change the decimal point (unicode 0x2E) to the Arabic/Farsi version (unicode 0x66B). This will go well with the mapping from Latin digits to Farsi digits (done in a sample with mathdigits fallback). For