[XeTeX] Arabic in XeTeX

John Was john.was at ntlworld.com
Thu Jun 28 16:36:42 CEST 2007


Dear Jonathan

Thanks very much indeed - I was pretty sure it would be something like that but I've still not found a list of these colon-activated options!

Best wishes


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/9d7cdd89/attachment.html 


More information about the XeTeX mailing list