<div dir="ltr">Vafa Khalighi wrote<br><br><br>>  A) Drop the TeX--XeT model entirely and switch to LuaTeX (Omega)<br>> bidi model<br>><br>><br>> Unfortunately Omega's bidi model has its own set of bugs so even if<br>> XeTeX goes this route, we need to fix quite some issues in its bidi<br>> model.<br><br>Long term I think that this would be a good development for xetex.<br>Having tex engines with two completely different models for directionality<br>causes real issues for formats and packages that need to build on the<br>base provided by the engines. It is clear that of the currently implemented<br>possibilities the omega/luatex model is more functional, having more complete<br>support for right to left text, but also supporting vertical text as well.<br><br>If you have a list of issues it would be good to raise them (on the luatex list<br>initially would presumably be best).<br><br><br>><br>><br>> B) Switch to the original TeX-XeT model by Knuth<br>><br>><br>> I would prefer this approach (considering my over 10 years of<br>> experience with both TeX--XeT and Omega bidi model) as it is more<br>> stable than Omega's bidi model. If I recall correctly, Khaled Hosny<br>> did this in 2013 and when I was testing most of the problems were<br>> fixed. The only issue was that the original TeX-XeT model adds \beginL<br>> ... \endL and that would cause some problem in math typesetting<br>> (sorry, I can not remember what exactly it was about but I remember it<br>> was reported by David Carlisle). For this problem, one can look at<br>> TeX--XeT and see how display math are done there and we could apply<br>> the same approach to TeX-XeT model.<br>><br><br>I really could not recommend this, the extra nodes added by tex-xet<br>interfere with typesetting in ways that are very hard to work around.<br>Particularly but not limited to math mode.<br>The only way shown so far to avoid those issues is not to add the nodes,<br>which essentially leads to tex--xet  rather than tex-xet.<br><br><br>Again, if you have an explicit list of issues with tex--xet that are<br>not shared with tex-xet it would be good if you could post them here.<br><br><br>David<br><br>
</div>