[XeTeX] Arabic in XeTeX

John Was john.was at ntlworld.com
Thu Jun 28 16:55:18 CEST 2007


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




----- Original Message ----- 
  From: Jonathan Kew 
  To: Unicode-based TeX for Mac OS X and other platforms 
  Sent: Thursday, June 28, 2007 2:50 PM
  Subject: JunkEmail: Re: [XeTeX] Arabic in XeTeX


  On 28 Jun 2007, at 2:33 pm, John Was wrote:


    I'm no Arabist but was asked to set a short passage from supplied Unicode input (which I think is correct:  it shows up properly in the ugly but essentially reliable Arial Unicode), and I find that the resultant output has the letters given in their individual forms instead of changing depending on context.  So I presume I have to do more than simply select a font that contains Unicode Arabic:  can anyone advise on what the correct procedure is?  Do I have to give some sort of option (introduced by a colon) after the fontname?  I get the same result whether I use Times New Roman or Scheherazade OpenType (the Windows TTF version) - and also, interestingly, when I use Arial Unicode, though it shows up correctly in that font in BabelPad.



  To use an OpenType Arabic font, you need to activate the Arabic shaping engine. In raw xetex, you'd say something like


    \font\x = "Scheherazade:script=arab" at 14pt  .......


  and in xelatex with fontspec, you'd use


    \setmainfont[Script=Arabic]{Scheherazade}


  (or similar options with \newfontfamily, etc.)


  HTH,


  JK






------------------------------------------------------------------------------


  _______________________________________________
  XeTeX mailing list
  postmaster at tug.org
  http://tug.org/mailman/listinfo/xetex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20070628/a00286f8/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aruniexp.pdf
Type: application/pdf
Size: 134964 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20070628/a00286f8/attachment-0001.pdf 


More information about the XeTeX mailing list