<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY
style="WORD-WRAP: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space"
bgColor=#ffffff>
<DIV><FONT face="Arial Unicode MS">Oops - seems I must still be doing something
wrong. My input is:</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">\font\arabic = "Scheherazade:script=arab"
at 12pt<BR>{\arabic<BR>فلقِنا [= شيخ من الصوفيّة وجماعة غُرَباء] في الطريق
شيخاً من الحكماء يقال له أبو الحسن العامريّ ، وله كتابٌ في التصوُّف قد شَحَنَه
بعِلمِنا وإشارتنا ، وكان من الجَوَّالين الذين نَقَّبوا في البلاد واطّلعوا على
أسرار الله في العباد ؛}\vfill \eject<BR></FONT></DIV>
<DIV><FONT face="Arial Unicode MS">But my output is as per the attached
PDF.</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">Something amiss!</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">Best</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">John</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jonathan_kew@sil.org href="mailto:jonathan_kew@sil.org">Jonathan
Kew</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=xetex@tug.org
href="mailto:xetex@tug.org">Unicode-based TeX for Mac OS X and other
platforms</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, June 28, 2007 2:50
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> JunkEmail: Re: [XeTeX] Arabic in
XeTeX</DIV>
<DIV><BR></DIV>
<DIV>
<DIV>On 28 Jun 2007, at 2:33 pm, John Was wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV><FONT face="Arial Unicode MS">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.</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV></BLOCKQUOTE><BR></DIV>
<DIV>To use an OpenType Arabic font, you need to activate the Arabic shaping
engine. In raw xetex, you'd say something like</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV> \font\x = "Scheherazade:script=arab" at 14pt .......</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>and in xelatex with fontspec, you'd use</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV> \setmainfont[Script=Arabic]{Scheherazade}</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>(or similar options with \newfontfamily, etc.)</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>HTH,</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>JK</DIV>
<DIV><BR class=khtml-block-placeholder></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>XeTeX mailing
list<BR>postmaster@tug.org<BR>http://tug.org/mailman/listinfo/xetex<BR></BLOCKQUOTE></BODY></HTML>