ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Installing an arabic font
@ 2013-05-08 15:39 "H. Özoguz"
  0 siblings, 0 replies; 12+ messages in thread
From: "H. Özoguz" @ 2013-05-08 15:39 UTC (permalink / raw)
  To: ntg-context

Sorry, Link corrected:

http://fonts.qurancomplex.gov.sa/wp-content/uploads/2012/06/UthmanTN1-Ver10.zip

___________________________________________________________________________________
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] 12+ messages in thread

* Re: Installing an arabic font
  2013-05-09 17:27 "H. Özoguz"
@ 2013-05-10  8:35 ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2013-05-10  8:35 UTC (permalink / raw)
  To: ntg-context

On 5/9/2013 7:27 PM, "H. Özoguz" wrote:
>> I uploaded a beta that might fix it, but it needs more testing. The
>> issue might have been introduced when support was added for more complex
>> ligature building, compare for instance this:
>
> Thanks Hans! Indeed, it was a fix, but there are still problems I find
> in further testing, see attachment for this code:
>
> \definefont[amiri][file:UthmanTN1Ver10.ttf*arabic at 17 pt]
> \define[1]\Arab{\setupalign[r2l]\amiri#1}
> \starttext
> \Arab{
> لرَّحْمَـٰنِ
> }
> \stoptext
>
> In context the two signs are set one upon the other ("sukun" and
> "fatha"), see the second attachment (word) for the correct setting. But
> now this has nothing todo with ligatures, deactivating them does not
> help now.

ok, another attempt uploaded (i figured out that when implementing 
nested ligatures - needed elsewhere - a pointer got messed up so maybe 
it's ok now (interesting is that it has always worked ok in the past so 
it must have gone unnoticed)

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] 12+ messages in thread

* Re: Installing an arabic font
@ 2013-05-09 17:27 "H. Özoguz"
  2013-05-10  8:35 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: "H. Özoguz" @ 2013-05-09 17:27 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

> I uploaded a beta that might fix it, but it needs more testing. The
> issue might have been introduced when support was added for more complex
> ligature building, compare for instance this:

Thanks Hans! Indeed, it was a fix, but there are still problems I find 
in further testing, see attachment for this code:

\definefont[amiri][file:UthmanTN1Ver10.ttf*arabic at 17 pt]
\define[1]\Arab{\setupalign[r2l]\amiri#1}
\starttext
\Arab{
لرَّحْمَـٰنِ
}
\stoptext

In context the two signs are set one upon the other ("sukun" and 
"fatha"), see the second attachment (word) for the correct setting. But 
now this has nothing todo with ligatures, deactivating them does not 
help now.

Huseyin



[-- Attachment #2: contextversion.pdf --]
[-- Type: application/pdf, Size: 14531 bytes --]

[-- Attachment #3: wordversion.pdf --]
[-- Type: application/pdf, Size: 5515 bytes --]

[-- Attachment #4: 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] 12+ messages in thread

* Re: Installing an arabic font
  2013-05-09  7:45 "H. Özoguz"
@ 2013-05-09 10:55 ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2013-05-09 10:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Eigner, G.C.

On 5/9/2013 9:45 AM, "H. Özoguz" wrote:
>> The font is fine with other
>> OpenType engines as well, e.g. HarfBuzz, so it is probably a ConTeXt
>> issue.
>
> Yes, the font is fine with OpenOffice, too.
> It would be really great, if this could be fixed in context, so one
> could typeset quran (and other traditional arabic) professionally. Would
> be very valuable!

I uploaded a beta that might fix it, but it needs more testing. The 
issue might have been introduced when support was added for more complex 
ligature building, compare for instance this:

\starttext

\def\sample{نَسْتَعِينُ وَلَا الضَّالِّينَ}
\def\sample{نَسْتَعِينُ}
\def\sample{\Uchar"0643\Uchar"0644\Uchar"0651\Uchar"0627\Uchar"064E}

\setvariables
   [otftracker]
   [font=file:uthmantn1ver10.ttf,
    size=24pt,
    features=arabic,
    direction=-1,
    title=Feature Check,
    sample=\sample]

\page

\setvariables
   [otftracker]
   [font=file:arabtype,
    size=24pt,
    features=arabic,
    direction=-1,
    title=Feature Check,
    sample=\sample]

\stoptext

(So Kai needs to run some of his tests.)

Hans

ps. some of the somewhat complex implementation will be redone when we 
have a pending extension to glyph nodes in the engine done.

-----------------------------------------------------------------
                                           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] 12+ messages in thread

* Re: Installing an arabic font
@ 2013-05-09  7:45 "H. Özoguz"
  2013-05-09 10:55 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: "H. Özoguz" @ 2013-05-09  7:45 UTC (permalink / raw)
  To: ntg-context

> The font is fine with other
> OpenType engines as well, e.g. HarfBuzz, so it is probably a ConTeXt
> issue.

Yes, the font is fine with OpenOffice, too.
It would be really great, if this could be fixed in context, so one 
could typeset quran (and other traditional arabic) professionally. Would 
be very valuable!

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] 12+ messages in thread

* Re: Installing an arabic font
  2013-05-08 21:03 ` Hans Hagen
@ 2013-05-09  7:08   ` Khaled Hosny
  0 siblings, 0 replies; 12+ messages in thread
From: Khaled Hosny @ 2013-05-09  7:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, May 08, 2013 at 11:03:28PM +0200, Hans Hagen wrote:
> On 5/8/2013 10:58 PM, "H. Özoguz" wrote:
> >>seems like an issue with liga ... i'm not sure if that's a context
> >>problem
> >
> >Hmm, see in the attachment the output of MS-Word, with activated
> >ligatures. So it has to do anything with ConText, or not? Or maybe this
> >font uses in some way properties of Word in handling fonts?
> 
> i don't know what word does, but it probably uses the volt
> machinery. ... maybe Khaled or Idris knows

If the font has OT layout tables Word will just use them, no tricks (as
far as glyph positioning is concerned). The font is fine with other
OpenType engines as well, e.g. HarfBuzz, so it is probably a ConTeXt
issue.

Regards,
Khaled
___________________________________________________________________________________
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] 12+ messages in thread

* Re: Installing an arabic font
  2013-05-08 20:58 "H. Özoguz"
@ 2013-05-08 21:03 ` Hans Hagen
  2013-05-09  7:08   ` Khaled Hosny
  0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2013-05-08 21:03 UTC (permalink / raw)
  To: ntg-context

On 5/8/2013 10:58 PM, "H. Özoguz" wrote:
>> seems like an issue with liga ... i'm not sure if that's a context
>> problem
>
> Hmm, see in the attachment the output of MS-Word, with activated
> ligatures. So it has to do anything with ConText, or not? Or maybe this
> font uses in some way properties of Word in handling fonts?

i don't know what word does, but it probably uses the volt machinery. 
... maybe Khaled or Idris knows

given that context can deal with more complex fonts i doubt if it's a 
context issue (hard to track down as the tracer doesn't indicate any 
mark position on that ligature)

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] 12+ messages in thread

* Re: Installing an arabic font
@ 2013-05-08 20:58 "H. Özoguz"
  2013-05-08 21:03 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: "H. Özoguz" @ 2013-05-08 20:58 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 288 bytes --]

> seems like an issue with liga ... i'm not sure if that's a context problem

Hmm, see in the attachment the output of MS-Word, with activated 
ligatures. So it has to do anything with ConText, or not? Or maybe this 
font uses in some way properties of Word in handling fonts?

Huseyin



[-- Attachment #2: Dokument1.pdf --]
[-- Type: application/pdf, Size: 7132 bytes --]

[-- Attachment #3: 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] 12+ messages in thread

* Re: Installing an arabic font
  2013-05-08 19:23 "H. Özoguz"
@ 2013-05-08 20:16 ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2013-05-08 20:16 UTC (permalink / raw)
  To: ntg-context

On 5/8/2013 9:23 PM, "H. Özoguz" wrote:
>> Rename the file to have a .ttf extension; it is and OpenType font with
>> TrueType outlines and those usually have .ttf extension (though the
>> spec says they can have .otf extension, ConTeXt does not handle this
>> right now).
>>
>> Regards,
>> Khaled
>
> Thanks Khaled, now it works, at least to some degree. I have still
> problems, which I dont have with MS Word, see this example:
>
> \definefont[amiri][file:UthmanTN1Ver10.ttf*arabic at 17 pt]
> \define[1]\Arab{\setupalign[r2l]\amiri#1}
> \starttext
> \Arab{
> نَسْتَعِينُ وَلَا الضَّالِّينَ
> }
> \stoptext
>
> The vocalisations are set wrong, see attachment. Specially with a final
> "nuun" there are problems. It is not a problem of the font, because in
> Word they are set correctly. Does this come from the extensions ConTeXt
> do not support, or is there an easy way to fix?

extensions? fonts have features and these prescribe the (in this case) 
positioning

> Or asked more generally, if fixing is not possible: Do you know any
> font, which can correct handled by context, and is capable of
> typesetting quran?

seems like an issue with liga ... i'm not sure if that's a context problem

\definefontfeature % might move
   [somearabic]
   [mode=node,language=dflt,script=arab,
    init=yes,medi=yes,fina=yes,isol=yes,
%  liga=yes,
    calt=yes,
    mark=yes,
    mkmk=yes,
    curs=yes]

\definefont[amiri][file:uthmantn1ver10.ttf*somearabic at 32pt]

\setupalign[r2l]

\starttext

     \amiri نَسْتَعِينُ وَلَا الضَّالِّينَ

\stoptext


-----------------------------------------------------------------
                                           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] 12+ messages in thread

* Re: Installing an arabic font
@ 2013-05-08 19:23 "H. Özoguz"
  2013-05-08 20:16 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: "H. Özoguz" @ 2013-05-08 19:23 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]

> Rename the file to have a .ttf extension; it is and OpenType font with
> TrueType outlines and those usually have .ttf extension (though the
> spec says they can have .otf extension, ConTeXt does not handle this
> right now).
>
> Regards,
> Khaled

Thanks Khaled, now it works, at least to some degree. I have still 
problems, which I dont have with MS Word, see this example:

\definefont[amiri][file:UthmanTN1Ver10.ttf*arabic at 17 pt]
\define[1]\Arab{\setupalign[r2l]\amiri#1}
\starttext
\Arab{
نَسْتَعِينُ وَلَا الضَّالِّينَ
}
\stoptext

The vocalisations are set wrong, see attachment. Specially with a final 
"nuun" there are problems. It is not a problem of the font, because in 
Word they are set correctly. Does this come from the extensions ConTeXt 
do not support, or is there an easy way to fix?
Or asked more generally, if fixing is not possible: Do you know any 
font, which can correct handled by context, and is capable of 
typesetting quran?

Thanks.
Huseyin

[-- Attachment #2: nuunkassra.pdf --]
[-- Type: application/pdf, Size: 16150 bytes --]

[-- Attachment #3: 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] 12+ messages in thread

* Re: Installing an arabic font
  2013-05-08 15:38 ` "H. Özoguz"
@ 2013-05-08 16:28   ` Khaled Hosny
  0 siblings, 0 replies; 12+ messages in thread
From: Khaled Hosny @ 2013-05-08 16:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, May 08, 2013 at 05:38:35PM +0200, "H. Özoguz" wrote:
> Hoping to annoy not everybody here with my arabic-font-questions.
> 
> I have found I nice free arabic ttf-font, you can download it here:
> http://fonts.qurancomplex.gov.sa/wp-content/uploads/2012/06/UthmanTN1-Ver10.zip.
> 
> 
> One of its types is: "kfgqpcuthmantahanaskhregular"
> 
> If I type in the cmd
> 
> C:\Users\Hussein>mtxrun --script font --list --all --pattern=*kf*
> 
> I get (together with some other lines/fonts):
> kfgqpcuthmantahanaskhregular kfgqpcuthmantahanaskh
> c:/windows/fonts/UthmanTN1 Ver10.otf
> 
> So everything should be ok. But now the following failes:

Rename the file to have a .ttf extension; it is and OpenType font with
TrueType outlines and those usually have .ttf extension (though the
spec says they can have .otf extension, ConTeXt does not handle this
right now).

Regards,
Khaled
___________________________________________________________________________________
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] 12+ messages in thread

* Installing an arabic font
       [not found] <518A03E1.6070705@mmnetz.de>
@ 2013-05-08 15:38 ` "H. Özoguz"
  2013-05-08 16:28   ` Khaled Hosny
  0 siblings, 1 reply; 12+ messages in thread
From: "H. Özoguz" @ 2013-05-08 15:38 UTC (permalink / raw)
  To: ntg-context


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

Hoping to annoy not everybody here with my arabic-font-questions.

I have found I nice free arabic ttf-font, you can download it here:
http://fonts.qurancomplex.gov.sa/wp-content/uploads/2012/06/UthmanTN1-Ver10.zip. 


One of its types is: "kfgqpcuthmantahanaskhregular"

If I type in the cmd

C:\Users\Hussein>mtxrun --script font --list --all --pattern=*kf*

I get (together with some other lines/fonts): 
kfgqpcuthmantahanaskhregular kfgqpcuthmantahanaskh 
c:/windows/fonts/UthmanTN1 Ver10.otf

So everything should be ok. But now the following failes:

\definefont[amiri][name:kfgqpcuthmantahanaskhregular*arabic at 17 pt]
\define[1]\Arab{\setupalign[r2l]\amiri#1}
\starttext
\Arab{
بِسْمِ ‏للهِ الرَّحْمَـٰنِ الرَّحِيمِ
}
\stoptext

It compiles, but the output is destroyed, the letters have distances 
between them. See attached pdf. (In other programms, e.g. MS Word that 
does not happen, and the font is set correctly.)

Apart from this mistake, the font is perfect set by context, even the 
"Allah" and its "Kassra" has a nice distance (see the other thread). 
Indeed, if this distace-between-letters problem could be solved, I am 
happy with arabic in context, this font would be enough, and all other 
threads of mine could be closed (as far as I am concerned :))

Thanks for your help!

Huseyin

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

[-- Attachment #2: arabicfonttest.pdf --]
[-- Type: application/pdf, Size: 16601 bytes --]

[-- Attachment #3: 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] 12+ messages in thread

end of thread, other threads:[~2013-05-10  8:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08 15:39 Installing an arabic font "H. Özoguz"
  -- strict thread matches above, loose matches on Subject: below --
2013-05-09 17:27 "H. Özoguz"
2013-05-10  8:35 ` Hans Hagen
2013-05-09  7:45 "H. Özoguz"
2013-05-09 10:55 ` Hans Hagen
2013-05-08 20:58 "H. Özoguz"
2013-05-08 21:03 ` Hans Hagen
2013-05-09  7:08   ` Khaled Hosny
2013-05-08 19:23 "H. Özoguz"
2013-05-08 20:16 ` Hans Hagen
     [not found] <518A03E1.6070705@mmnetz.de>
2013-05-08 15:38 ` "H. Özoguz"
2013-05-08 16:28   ` Khaled Hosny

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).