ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Arabic Characters shown wrong
@ 2013-01-21 14:37 "H. Özoguz"
  2013-01-21 16:39 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: "H. Özoguz" @ 2013-01-21 14:37 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 980 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2963 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Arabic Characters shown wrong
  2013-01-21 14:37 Arabic Characters shown wrong "H. Özoguz"
@ 2013-01-21 16:39 ` Hans Hagen
  2013-01-22  7:40   ` "H. Özoguz"
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2013-01-21 16:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: "H. Özoguz"

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Arabic Characters shown wrong
  2013-01-21 16:39 ` Hans Hagen
@ 2013-01-22  7:40   ` "H. Özoguz"
  2013-01-22 12:13     ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: "H. Özoguz" @ 2013-01-22  7:40 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen


> 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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Arabic Characters shown wrong
  2013-01-22  7:40   ` "H. Özoguz"
@ 2013-01-22 12:13     ` Hans Hagen
  2013-01-22 13:54       ` "H. Özoguz"
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2013-01-22 12:13 UTC (permalink / raw)
  To: "H. Özoguz"; +Cc: ntg-context

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Arabic Characters shown wrong
  2013-01-22 12:13     ` Hans Hagen
@ 2013-01-22 13:54       ` "H. Özoguz"
  2013-01-22 17:49         ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: "H. Özoguz" @ 2013-01-22 13:54 UTC (permalink / raw)
  To: Hans Hagen; +Cc: ntg-context

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Arabic Characters shown wrong
  2013-01-22 13:54       ` "H. Özoguz"
@ 2013-01-22 17:49         ` Hans Hagen
  2013-01-23  6:54           ` "H. Özoguz"
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2013-01-22 17:49 UTC (permalink / raw)
  To: "H. Özoguz"; +Cc: ntg-context

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Arabic Characters shown wrong
  2013-01-22 17:49         ` Hans Hagen
@ 2013-01-23  6:54           ` "H. Özoguz"
  0 siblings, 0 replies; 7+ messages in thread
From: "H. Özoguz" @ 2013-01-23  6:54 UTC (permalink / raw)
  To: Hans Hagen; +Cc: ntg-context


> 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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-23  6:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-21 14:37 Arabic Characters shown wrong "H. Özoguz"
2013-01-21 16:39 ` Hans Hagen
2013-01-22  7:40   ` "H. Özoguz"
2013-01-22 12:13     ` Hans Hagen
2013-01-22 13:54       ` "H. Özoguz"
2013-01-22 17:49         ` Hans Hagen
2013-01-23  6:54           ` "H. Özoguz"

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).