On Sun, Feb 15, 2009 at 06:20:08PM +1100, Ilda Khaki wrote:
> This is a sample file, I am looking for.
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \pagedir TRT \bodydir TRT \textdir TRT \pardir TRT
> \font\test=zar.ttf scaled\magstep0
> 
> هل انت کیقک؟
> \end
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> But I do not know how to define the font so that Arabic alphabets are not
> isolated.

If you really want to use Plain TeX with LuaTeX, the only viable option
you have now is to process your document with context thus enjoying
ConTeXt's OpenType layout until there is an independent code that can be
used in Plain TeX format. (BTW, your example won't work with Plain
LuaTeX since it doesn't load TTF fonts directly, you must be using
context if you see un-joined Arabic text).

A minimal example, would be:

%%%%%%%%%%%%%%
\pagedir TRT \bodydir TRT \textdir TRT \pardir TRT
\definefontfeature[fea]
    [mode=node,language=dflt,script=arab,
     isol=yes,init=yes,medi=yes,fina=yes,
     liga=yes,rlig=yes,mark=yes,mkmk=yes]
\font\test=zara*fea scaled\magstep0\test
هل انت کیقک؟
\end
%%%%%%%%%%%%%%%

The \definefontfeature defines a font feature that allows turning on/off
various layout features of the selected font, assuming that the font
contain OpenType layout tables.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to