<!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.16608" 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">Thanks for the response Jonathan</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">I think all is in order re TeXXetState=1 and
so on. I should certainly have included the tex source, which
is:</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">{\newarabic \setbox0=\lastbox \beginR \box0
\noindent \hskip -\parindent<BR>This is from Giannakis:\par</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">١. قال أبو على~.~.~. وهو [=أنبادقلس]
وأنكساغورس يقولان إن الموجودات واحد وكثير أما كثير فمن قبل المادة وأما
واحد فمن قبل أن*** الفاعل الذي يميزها هو واحد وهو العقل.<BR>}\par<BR>\vfill
\eject</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">Interestingly, that comes out correctly in
this pasted-in version though in Babelpad it's showing up with the words in
reverse order, exactly as in the PDF. I am wondering if there is some
Word-related direction instruction buried unseen, which messes things up in
Babelpad (and in the resultant PDF produced by XeTeX) but is thrown out when I
come to paste it into an e-mail. But that seems rather
implausible.</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">Incidentally the above gobbet is
immediately followed (in an experimental file), by:</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">1.1.4 علم الالفاظ</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">1.1.4.1 مفرد اي نفس اللفظ دون
المعنا</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">1.1.4.2 ومشترك اي معرفة الالفاظ والمعاني
معا كتركيب الكلام المنظوم والمنثور</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">1.1.4.2.1 شعر اي كلام موزن مقفا لا شيء
من الكلام احسن في الاسماء منه ولا كلاما ابقا على مر الايام منه ولا شيء اسهل حفظا
منه لرتباط بعضهي ببعض،</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">1.1.4.2.2 خطب اي كلام منظوم غير موزون
ولامقفا يشافه بهي في المحال،</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">etc. etc.</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">That typesets correctly (though I want to
tinker with the position of the decimal-numbered paragraph starts - but that's a
separate issue).</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">So I'm rather stumped. I'll keep
tinkering though!</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">Best wishes</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> </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>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<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> Wednesday, February 20, 2008 4:59
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [XeTeX] Problems in Arabic
typesetting</DIV>
<DIV><FONT face="Arial Unicode MS"></FONT><FONT
face="Arial Unicode MS"></FONT><FONT face="Arial Unicode MS"></FONT><FONT
face="Arial Unicode MS"></FONT><BR></DIV><BR>
<DIV>
<DIV>On 20 Feb 2008, at 4:21 pm, John Was wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite"><FONT face="Arial Unicode MS">
<P class=MsoNormal style="MARGIN: 0pt 0pt 10pt"><FONT
face="Times New Roman"><FONT face="Arial Unicode MS">Hello</FONT></FONT></P>
<DIV style="MARGIN: 0pt 0pt 10pt"><FONT face="Times New Roman"></FONT><FONT
face="Times New Roman"></FONT><FONT face="Times New Roman"></FONT><BR
class=khtml-block-placeholder> </DIV>
<P class=MsoNormal style="MARGIN: 0pt 0pt 10pt"><FONT
face="Times New Roman"><FONT face="Arial Unicode MS">The following shows up
correctly in Microsoft Word in a file that was sent to me, and seems to
be correct in this email. But when I try to typeset it in
XeTeX by pasting it into a UFT-8 file (using Babelpad as my
editor) the words are all transposed - see the attached PDF for
the result.</FONT> <O:P></O:P></FONT></P>
<DIV><SPAN dir=rtl></SPAN><SPAN lang=AR-EG dir=rtl
style="FONT-SIZE: 14pt; FONT-FAMILY: Scheherazade; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-font-size: 20.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-EG"><SPAN
dir=rtl></SPAN>١. قال أبو على~.~.~.<SPAN style="mso-spacerun: yes">
</SPAN>وهو [=أنبادقلس] وأنكساغورس يقولان إن الموجودات واحد وكثير أما كثير
فمن قبل المادة وأما واحد فمن قبل أن<SPAN
class=MsoFootnoteReference>***</SPAN> الفاعل الذي يميزها هو واحد وهو
العقل</SPAN></DIV>
<DIV><SPAN lang=AR-EG dir=rtl
style="FONT-SIZE: 14pt; FONT-FAMILY: Scheherazade; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-font-size: 20.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-EG"></SPAN> </DIV>
<DIV><SPAN lang=AR-EG dir=rtl
style="FONT-SIZE: 14pt; FONT-FAMILY: Scheherazade; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-font-size: 20.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-EG"><FONT
face="Arial Unicode MS" size=3>I'm not an Arabist so it's not clear to me
what could be going wrong. To make quite sure that I was not
introducing any error in setting up my \arabic command I pasted this
quotation into a section of Arabic that I had previously typeset correctly,
and everything comes out properly except this new bit of
text.</FONT></SPAN></DIV>
<DIV><SPAN lang=AR-EG dir=rtl
style="FONT-SIZE: 14pt; FONT-FAMILY: Scheherazade; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-font-size: 20.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-EG"><FONT
face="Arial Unicode MS" size=3></FONT></SPAN> </DIV>
<DIV><SPAN lang=AR-EG dir=rtl
style="FONT-SIZE: 14pt; FONT-FAMILY: Scheherazade; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-font-size: 20.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-EG"><FONT
face="Arial Unicode MS" size=3> It may simply be that there is some
trick in the saving or copying/pasting that I haven't picked up. Any help
much appreciated</FONT></SPAN></DIV>
<DIV><SPAN lang=AR-EG dir=rtl
style="FONT-SIZE: 14pt; FONT-FAMILY: Scheherazade; mso-fareast-font-family: 'Arial Unicode MS'; mso-ansi-font-size: 20.0pt; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-EG"></SPAN> </DIV></FONT></BLOCKQUOTE><BR></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT><FONT
face="Arial Unicode MS"></FONT><BR class=khtml-block-placeholder></DIV>
<DIV>You didn't include your .tex source, so it's hard to be sure, but my
guess is that you're lacking a \beginR directive before the Arabic text.
That's necessary to get right-to-left line layout.</DIV>
<DIV><FONT face="Arial Unicode MS"></FONT><FONT
face="Arial Unicode MS"></FONT><BR class=khtml-block-placeholder></DIV>
<DIV>(And remember to set \TeXXeTstate=1 at the beginning of the file,
otherwise \beginR will not be allowed.)</DIV>
<DIV><FONT face="Arial Unicode MS"></FONT><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>