Arabic Characters shown wrong
Hi there, today I have the following issue: In Arabic there is a character called "Lam-Alif", it is a composition of "Lam" and "Alif", which is displayed usually in another way, than just writing "Lam" and "Alif" after each other in the usual way. See here: ??? http://en.wikipedia.org/wiki/Arabic_alphabet For Arabic I use the font Scheherazade \definefont[Shehkl][name:Scheherazade*arabic at 15pt] \definestartstop[Arab][commands=\setups{Arabic}] \def\Arab{\doArab} \def\Arab[#1]{ \startArab \noindentation \setupalign[r2l]\Shehkl#1 \stopArab } which worked perfect, until today! Now if I write \Arab[??] it is now not shown, like it should (and like your emailer will show it probably correctly, too). For conveniance I opened another, older, document, where the arab worked, and compiled it again, with absolutely no change -> and again, the same bug. What is the problem, what changed in ConText relevant to this problem, if any? Thank you :) Huseyin
On 1/21/2013 3:37 PM, "H. Özoguz" wrote:
Hi there,
today I have the following issue:
In Arabic there is a character called "Lam-Alif", it is a composition of "Lam" and "Alif", which is displayed usually in another way, than just writing "Lam" and "Alif" after each other in the usual way.
See here: لا http://en.wikipedia.org/wiki/Arabic_alphabet
For Arabic I use the font Scheherazade
\definefont[Shehkl][name:Scheherazade*arabic at 15pt]
\definestartstop[Arab][commands=\setups{Arabic}]
\def\Arab{\doArab}
\def\Arab[#1]{
\startArab
\noindentation
\setupalign[r2l]\Shehkl#1
\stopArab
}
which worked perfect, until today!
Now if I write \Arab[لا]
it is now not shown, like it should (and like your emailer will show it probably correctly, too). For conveniance I opened another, older, document, where the arab worked, and compiled it again, with absolutely no change -> and again, the same bug. What is the problem, what changed in ConText relevant to this problem, if any?
I don't know ... if the old version has it too then nothing changed I guess. \usemodule[fnt-20] \starttext \setvariables [otftracker] [direction=-1, sample=لا, title=Test, font=file:arabtype, % font=file:husayni, % font=file:scheherazaderegot, features=arabic] \stoptext Arabtype is the only one that has the 'rlig' for that combination. So, more info is needed about what should trigger this ligature replacemnt. 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 -----------------------------------------------------------------
I don't know ... if the old version has it too then nothing changed I guess.
\usemodule[fnt-20]
\starttext
\setvariables [otftracker] [direction=-1, sample=لا, title=Test, font=file:arabtype, % font=file:husayni, % font=file:scheherazaderegot, features=arabic]
\stoptext
Arabtype is the only one that has the 'rlig' for that combination. So, more info is needed about what should trigger this ligature replacemnt.
Hans
Thanks. I am not sure, what you mean. Until now everything worked fine, context has to read only the Unicode (like "Lam-Alif" is) and to use the set arabic font. Until today that worked perfectly, with "Lam-Alif", too. Does my above code compiles correctly the ligature in your system? Huseyin
On 1/22/2013 8:40 AM, "H. Özoguz" wrote:
Thanks. I am not sure, what you mean. Until now everything worked fine, context has to read only the Unicode (like "Lam-Alif" is) and to use the set arabic font. Until today that worked perfectly, with "Lam-Alif", too. Does my above code compiles correctly the ligature in your system?
Ok, I'd understood that older version also had that issue. Idris made me some tests and it looks like for some fonts lookups get lost. I think I've tracked it down (relates to some change between lua 5.1 and 5.2) but Idris first needs to test it. (I cannot release a beta but have to make a patched beta because I'm in the middle of some changes in a bunch of Lua files.) 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 -----------------------------------------------------------------
Am 22.01.2013 13:13, schrieb Hans Hagen:
On 1/22/2013 8:40 AM, "H. Özoguz" wrote:
Thanks. I am not sure, what you mean. Until now everything worked fine, context has to read only the Unicode (like "Lam-Alif" is) and to use the set arabic font. Until today that worked perfectly, with "Lam-Alif", too. Does my above code compiles correctly the ligature in your system?
Ok, I'd understood that older version also had that issue. Idris made me some tests and it looks like for some fonts lookups get lost. I think I've tracked it down (relates to some change between lua 5.1 and 5.2) but Idris first needs to test it. (I cannot release a beta but have to make a patched beta because I'm in the middle of some changes in a bunch of Lua files.)
Hans
I am eagerly anticipating the fixed beta, so I can print again the correct "Lam-Alif" :) Thanks for your time. Huseyin
On 1/22/2013 2:54 PM, "H. Özoguz" wrote:
Am 22.01.2013 13:13, schrieb Hans Hagen:
On 1/22/2013 8:40 AM, "H. Özoguz" wrote:
Thanks. I am not sure, what you mean. Until now everything worked fine, context has to read only the Unicode (like "Lam-Alif" is) and to use the set arabic font. Until today that worked perfectly, with "Lam-Alif", too. Does my above code compiles correctly the ligature in your system?
Ok, I'd understood that older version also had that issue. Idris made me some tests and it looks like for some fonts lookups get lost. I think I've tracked it down (relates to some change between lua 5.1 and 5.2) but Idris first needs to test it. (I cannot release a beta but have to make a patched beta because I'm in the middle of some changes in a bunch of Lua files.)
Hans
I am eagerly anticipating the fixed beta, so I can print again the correct "Lam-Alif" :) Thanks for your time.
I uploaded a new beta to the website. Btw, you can best test this kind of stuff with: \usemodule[fnt-20] \starttext \setvariables [otftracker] [direction=-1, sample=لا, title=Test, % font=file:arabtype, font=file:scheherazaderegot, features=arabic] \stoptext As it shows the steps. ----------------------------------------------------------------- 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 -----------------------------------------------------------------
I uploaded a new beta to the website. Btw, you can best test this kind of stuff with:
\usemodule[fnt-20]
\starttext
\setvariables [otftracker] [direction=-1, sample=لا, title=Test, % font=file:arabtype, font=file:scheherazaderegot, features=arabic]
\stoptext
As it shows the steps.
It works! And thanks for introducing me in this debugging-code, very interesting to see the steps! Best regards Huseyin
participants (2)
-
"H. Özoguz"
-
Hans Hagen