ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: dont.spam.no.dont@gmail.com
To: ntg-context@ntg.nl
Subject: Arabic
Date: Tue, 15 Nov 2011 22:13:24 +0100	[thread overview]
Message-ID: <CAKGf2LeY-LA2xK_hA_RW7k2hJi7RDi9y5+3-p273UNJx_G1xOg@mail.gmail.com> (raw)

Dear all,

I'm having a hard time to get context typeset arabic words with ligatures,
or say, to some order>1 according to page 7 of:
http://luatex.org/talks/print-orientaltex-eurotex-2009.pdf.

I'm using:
ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.8.15  int: english/english

I've put up this minimal example where the font used is amiri from:
http://sourceforge.net/projects/amiri/files/
and more precisely amiri-regular.ttf therein.

Any hint as to what I should do to get (at least the lam-alef ligature)?

Thank you for your help,
Olivier

%%%%%%%%%% minimal %%%%%%%%%%%%

\mainlanguage[arabic]

\definefontfeature
 [arabicfeats]
 [analyze=yes,mode=node,language=dflt,script=arab,
 ccmp=yes,init=yes,medi=yes,fina=yes,isol=yes,
 liga=yes,dlig=yes,rlig=yes,tlig=yes,clig=yes,
 calt=yes,salt=yes,aalt=yes,
 trep=yes,ccmp=yes,
 mark=yes,mkmk=yes,
 kern=yes,curs=yes,
 aalt=yes,mset=yes]

\definefont[ArabicFont][amiriregular*arabicfeats at 24pt]

\def\ArabicGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT}

\define\setarabic
 {\ArabicGlobalDir%
 \ArabicFont}

\starttext
{\setarabic  لا  في   }
\stoptext
\end
___________________________________________________________________________________
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:[~2011-11-15 21:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-15 21:13 dont.spam.no.dont [this message]
2011-11-16 13:01 ` Arabic Khaled Hosny
2011-11-16 19:15   ` Arabic dont.spam.no.dont

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=CAKGf2LeY-LA2xK_hA_RW7k2hJi7RDi9y5+3-p273UNJx_G1xOg@mail.gmail.com \
    --to=dont.spam.no.dont@gmail.com \
    --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).