<div dir="ltr">Hi David<div><br></div><div>I just did a quick experiment with new XeTeX. Since in new TeX-XeT algorithm, \beginR, \beginL, \endR, and \endL can also be used in math mode, the previous approach is not needed. Here is a test file for standard LaTeX tabular environment:</div>
<div><br></div><div><div>\documentclass{article}</div><div>\begin{document}</div><div>\makeatletter</div><div>\def\@tabular{\leavevmode \hbox \bgroup $\beginR\let\@acol\@tabacol</div><div>   \let\@classz\@tabclassz</div><div>
   \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}</div><div>    </div><div> \def\endtabular{\crcr\egroup\egroup \endR$\egroup}   </div><div>\makeatother</div><div>\begin{tabular}{cccc}</div><div>First&Second&Third&Fourth\\</div>
<div>\end{tabular}</div><div>\end{document}</div></div><div><br></div><div><br></div><div>I will look at longtable and see if the same kind of thing can be done there.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jul 29, 2014 at 10:20 PM, David Carlisle <span dir="ltr"><<a href="mailto:d.p.carlisle@gmail.com" target="_blank">d.p.carlisle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On 29 July 2014 12:55, Vafa Khalighi <<a href="mailto:texpersian@gmail.com">texpersian@gmail.com</a>> wrote:<br>
><br>
><br>
>><br>
>><br>
>> If you are looking at extending xetex's RTL support is there any<br>
>> chance of addressing RTL tables (as affects for example longtable in<br>
>> the other thread)?<br>
>> as the nodes can only go in hmode there is no good place to put them<br>
>> to affect the ordering of columns in an halign.<br>
>><br>
><br>
><br>
><br>
> Hi David,<br>
><br>
> The only way to make RTL \halign in TeX-XeT is to do a construct like<br>
><br>
> \hbox{\beginR\vbox{%<br>
> \halign material<br>
> }\endR}<br>
<br>
</div>Yes, but (as you know)  that's bad if the halign is on the main vertical list<br>
your bidi-longtable patch does as well as it can do to try to add the nodes<br>
in the output routine but it's not really got enough information.<br>
<div class=""><br>
><br>
> The parsitex change file (<a href="http://ctan.org/pkg/parsitex" target="_blank">http://ctan.org/pkg/parsitex</a>) which is also based<br>
> on Knuth TeX-XeT implements a \semihalign primitive that has the reverse<br>
> order column of \halign.<br>
><br>
><br>
<br>
<br>
</div>That sounds good:-) an extension to flip the order of halign<br>
(or as you say a different primitive) would be easier to get right<br>
(and easier to share macro code with luatex)<br>
<div class="HOEnZb"><div class="h5"><br>
David<br>
<br>
<br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
</div></div></blockquote></div><br></div>