ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Installing an arabic font
Date: Wed, 08 May 2013 22:16:16 +0200	[thread overview]
Message-ID: <518AB290.9030703@wxs.nl> (raw)
In-Reply-To: <518AA63E.2090600@mmnetz.de>

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
___________________________________________________________________________________

  reply	other threads:[~2013-05-08 20:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-08 19:23 "H. Özoguz"
2013-05-08 20:16 ` Hans Hagen [this message]
  -- 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 15:39 "H. Özoguz"
     [not found] <518A03E1.6070705@mmnetz.de>
2013-05-08 15:38 ` "H. Özoguz"
2013-05-08 16:28   ` Khaled Hosny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=518AB290.9030703@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).