[XeTeX] Arabtex fonts with XeTeX

Peter Dyballa Peter_Dyballa at Web.DE
Thu Nov 2 10:26:41 CET 2006


Am 02.11.2006 um 07:16 schrieb Anas Ghrab:

> Hi all,
>
> Is it possible to use the arabic font of ArabTeX with XeTeX ?

XeTeX can in principle use the PostScript based fonts. The problem is  
that these fonts are not Unicode encoded, so they can't be used in  
XeTeX.

In XeTeX you are not limited to the use of 100 or 200 glyphs a font  
might provide. And you can write in Arabic, as shown in this excerpt  
from a sample file of XeTeX:

\centerline{\beginR\title ما هي الشفرة الموحدة  
يونِكود؟\endR}
\everypar={\setbox0=\lastbox \beginR \box0 }
\bigskip
الأخرى بعد أن تُعطي رقما معينا لكل  
أساسًا، تتعامل الحواسيب فقط مع  
الأرقام، وتقوم بتخزين الأحرف  
والمحارف كان هناك مئات الأنظمة  
للتشفير وتخصيص هذه الأرقام للمحارف،  
ولم يوجدواحد منها. وقبل اختراع  
يونِكود، فإن الاتحاد الأوروبي لوحده،  
احتوى نظام تشفير واحد يحتوي على جميع  
المحارف الضرورية. وعلى سبيل المثال،  
جميع اللغات المستخدمة في الاتحاد.  
وحتى لو اعتبرنا لغة واحدة،  
كاللغةالعديد من الشفرات المختلفة  
ليغطي الترقيم والرموز الفنية  
والعلمية الإنجليزية، فإن جدول شفرة  
واحد لم يكف لاستيعاب جميع الأحرف  
وعلامات الشائعة الاستعمال.

\beginR and \endR start or end right-to-left writing. As font you can  
use any font, commercial or free, that has all Arabic glyphs you need.

--
Greetings

   Pete

When in doubt, use brute force.
                             -- Ken Thompson




More information about the XeTeX mailing list