<!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">Dear Jonathan</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">Ah, I think that's put me on the right track
- many thanks. The paragraphing was meant to be under the influence of an
\everypar earlier declared, but as per your advice I produced a new minimal
file with the \beginR etc. specifically inserted in order to show the problem -
and then the problem disappeared (or almost - see below)! I obviously
haven't picked up the specifics of how the bidi setting works - and should
have started with Hebrew really, which I can at least struggle through haltingly
- but I suppose I'll be reasonably au fait by the time I've ploughed through the
conference proceedings I'm setting.</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">However, although I've now got correct PDF
output, which is all I really care about, intriguingly the Arabic is still back
to front in the Babelpad screen display, as per the PDF I sent before. I'm
presuming there is something in the software or other procedure that the author
used to prepare his Word file that has caused this (I'm asking him for details),
but I can cope with the bizarreness of what I get on the editing screen as long
as the output is right.</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">I'll proceed with caution and try not to
waste people's time unless I find myself in dire straits...</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>
<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 8:04
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [XeTeX] Problems in Arabic
typesetting</DIV>
<DIV><FONT face="Arial Unicode MS"></FONT><BR></DIV>
<DIV>
<DIV>Hi John,</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>On 20 Feb 2008, at 7:47 pm, John Was wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<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></BLOCKQUOTE>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>In that fragment, at least, I don't see anything making the paragraph of
Arabic text right-to-left. You need a \beginR *after* the paragraph has been
started (e.g., by \noindent) and before the text.</DIV><BR>
<BLOCKQUOTE type="cite">
<DIV><FONT class=Apple-style-span 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></BLOCKQUOTE>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>True, but you could avoid the issue by attaching a (short but complete)
sample file rather than pasting fragments into the message.</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>JK</DIV>
<DIV><FONT face="Arial Unicode MS"></FONT><BR
class=khtml-block-placeholder></DIV><BR></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>