Re: [NTG-context] Installing an arabic font
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 ___
Re: [NTG-context] Installing an arabic font
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 contextversion.pdf Description: Adobe PDF document wordversion.pdf Description: Adobe PDF document ___ 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 ___
Re: [NTG-context] Installing an arabic font
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 ___
Re: [NTG-context] Installing an arabic font
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 ___
Re: [NTG-context] Installing an arabic font
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 ___
Re: [NTG-context] Installing an arabic font
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 ___
Re: [NTG-context] Installing an arabic font
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 Dokument1.pdf Description: Adobe PDF document ___ 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 ___
Re: [NTG-context] Installing an arabic font
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 ___
Re: [NTG-context] Installing an arabic font
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 nuunkassra.pdf Description: Adobe PDF document ___ 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 ___
Re: [NTG-context] Installing an arabic font
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 ___
Re: [NTG-context] Installing an arabic font
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 ___
[NTG-context] Installing an arabic font
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 arabicfonttest.pdf Description: Adobe PDF document ___ 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 ___