* Arabic
@ 2011-11-15 21:13 dont.spam.no.dont
2011-11-16 13:01 ` Arabic Khaled Hosny
0 siblings, 1 reply; 3+ messages in thread
From: dont.spam.no.dont @ 2011-11-15 21:13 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Arabic
2011-11-15 21:13 Arabic dont.spam.no.dont
@ 2011-11-16 13:01 ` Khaled Hosny
2011-11-16 19:15 ` Arabic dont.spam.no.dont
0 siblings, 1 reply; 3+ messages in thread
From: Khaled Hosny @ 2011-11-16 13:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, Nov 15, 2011 at 10:13:24PM +0100, dont.spam.no.dont@gmail.com wrote:
> 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)?
Works here, I get both ligatures (though they are implemented in this
particular font as contextual forms not ligatures in the technical
sense).
If you are running recent enough version of ConTeXt (e.g. minimals) this
can be simplified to:
\mainlanguage[arabic]
\definefont[ArabicFont][name:amiri*arabic at 24pt] % or file:amiri-regular.ttf*...
\starttext
\setupalign[r2l]
\ArabicFont
لا في
\stoptext
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] 3+ messages in thread
end of thread, other threads:[~2011-11-16 19:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-15 21:13 Arabic dont.spam.no.dont
2011-11-16 13:01 ` Arabic Khaled Hosny
2011-11-16 19:15 ` Arabic dont.spam.no.dont
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).