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
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
Dear Khaled, following your advice, I installed the latest minimals (2011.11.14) instead of the Debian packaged version (2011.05.18, including unstable) and it indeed now works perfectly. شكرا جزيلا Olivier
participants (2)
-
dont.spam.no.dont@gmail.com
-
Khaled Hosny