On Mon, Jun 09, 2008 at 11:13:06AM +0200, Otared Kavian wrote:
Dear all,
I just read the thread started by Burak Emir about "Typesetting Arabic today", and tried to typeset the sample sent by Idris Samawi Hamid. One of the Arabic or Persian fonts that I have and LuaTeX can find is Nadeem (working on Mac OS X 10.5.3), but what I get after typesetting is the following attached PDF: all the characters are typeset with their isolated form. However typestting the same text with XeConTeXt or XeTeX gives a nice result.
May be the font is built with AAT tables and not OpenType, XeTeX supports AAT on mac but I don't think LuaTeX does. Khaled
So my question is, what should I add or subtract from the font features parameters to get a correct result?
The source file is as follows:
% engine=luatex \starttext
\definefontfeature [test] [analyze=yes, mode=node, language=dflt, script=arab, aalt=yes, init=yes, medi=yes, fina=yes, isol=yes, liga=yes, mset=yes]
\font\TradArabic = Nadeem*test at 18pt
\startbuffer[paragraph] الحمدلله حمد معترف بحمده، مغترف من بحار مجده، بلسان الثناۤء شاكرا، ولحسن الاۤئه ناشرا؛ الذي خلق الموت والحيوة، والخير والشر، والنفع والضر، والسكون والحركة، والأرواح والأجسام، والذكر والنسيان.
\blank
اَلْحَمْدُ لِلّٰهِ حَمْدَ مُعْتَرِفٍ بِحَمْدِهٖ، مُغْتَرِفٌ مِنْ بِحَارِ مَجْدِهٖ، بِلِسَانِ الثَّنَاۤءِ شَاكِرًا، وَلِحُسْنِ اٰلاۤئِهٖ نَاشِرًا؛ اَلَّذِيْ خَلَقَ الْمَوْتَ وَالْحَيٰوةَ، وَالْخَيْرَ وَالشَّرَّ، وَالنَّفْعَ وَالضَّرَّ، وَالسُّكُوْنَ وَالْحَرَكَةَ، وَالْأَرْوَاحَ وَالْأَجْسَامَ، وَالذِّكْرَ وَالنِّسْيَانَ.
\stopbuffer
\start \TradArabic \pardir TRT \textdir TRT \getbuffer[paragraph] \stop
\stoptext
___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- Khaled Hosny Arabic localizer and member of Arabeyes.org team