[XeTeX] Arabic in XeTeX
François Charette
firmicus at ankabut.net
Thu Jun 28 18:26:01 CEST 2007
In your pdf output the font is not Scheherazade, but Times New Roman.
Also, your output left-to-right, whereas it should be right-to-left. The
following should work fine:
\TeXXeTstate=1 % this turns e-TeX's bidi functionality on
\let\lreverypar=\everypar
\everypar={\setbox0=\lastbox \beginR \box0 } %this sets paragraphs from
right to left
\font\arabic = "Scheherazade:script=arab" at 12pt
{\arabic
فلقِنا [= شيخ من الصوفيّة وجماعة غُرَباء] في الطريق شيخاً من الحكماء يقال له
أبو الحسن العامريّ، وله كتابٌ في التصوُّف قد شَحَنَه بعِلمِنا وإشارتنا، وكان من
الجَوَّالين الذين نَقَّبوا في البلاد واطّلعوا على أسرار ﷲ في العباد؛}
\vfill \eject
\bye
Note that in the Arabic sentence above I have removed the spaces before
the Arabic punctuation. I have also replaced the letters of the third
but last word (Allah) by the Unicode ligature U+FDF2 (see attachment):
this is how the name of God should looking like in Arabic typography.
Regards,
François
John Was a écrit :
> Oops - seems I must still be doing something wrong. My input is:
>
> \font\arabic = "Scheherazade:script=arab" at 12pt
> {\arabic
> فلقِنا [= شيخ من الصوفيّة وجماعة غُرَباء] في الطريق شيخاً من الحكماء يقال
> له أبو الحسن العامريّ ، وله كتابٌ في التصوُّف قد شَحَنَه بعِلمِنا وإشارتنا ،
> وكان من الجَوَّالين الذين نَقَّبوا في البلاد واطّلعوا على أسرار الله في
> العباد ؛}\vfill \eject
> But my output is as per the attached PDF.
>
> Something amiss!
>
> Best
>
>
> John
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: miskawayh.pdf
Type: application/pdf
Size: 18389 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20070628/299ee9f7/attachment-0001.pdf
More information about the XeTeX
mailing list