<div dir="ltr">if you try the following minimal plain TeX document:<br><br>%%%%%%%%%%%%%%%%%%%%%%<br>This is a test.<br>\leftline{Vafa Khalighi}<br>\end<br>%%%%%%%%%%%%%%%%%%%%%%<br>You get the result that is one of my attachments. (acceptable).<br>
<br>But if you try the following example<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br clear="all">\TeXXeTstate=1<br>\font\body=&quot;XB Zar:script=arab&quot; at 12pt\body<br>\beginR<br>این یک آزمایش است.<br>\rightline{\body وفا خلیقی}<br>
\end<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br><br>You get a strange behaviour from XeTeX which is shown in the other attachment.<br><br>It seems that this is a bug of XeTeX or more precisely a bug of etex.<br><br>Are there any solutions in the macro level so that \rightline in both LTR and RTL remains in the right hand side?<br>
-- <br>``Life is not empty,<br>There is kindness, there is apple and there is faith<br><br>One day will come,<br>and to a mendicant I will endow a jasmine&#39;&#39;<br><br>-- Sohrab Sepehri<br>
</div>