<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi</p>
<p><br>
</p>
<p>XeTeX uses TeX--XeT algorithm and has some serious problems in typesetting right to left text. About few years ago, I wrote to <span>Peter Bre­it­en­lohner and we discussed together what needs to be fixed. Peter promised that he would fix the issues but
 unfortunately he passed away. I believe he at least fixed one of the bugs I reported to him. </span></p>
<p><span><br>
</span></p>
<p><span>Bidirectional typesetting is a very fundamental area which unfortunately has been ignored so far. I can think of two ways to improve the situation:</span></p>
<p><span><br>
</span></p>
<p><span>A) Drop the TeX--XeT model entirely and switch to LuaTeX (Omega) bidi model</span></p>
<p><span><br>
</span></p>
<p><span>Unfortunately Omega's bidi model has its own set of bugs so even if XeTeX goes this route, we need to fix quite some issues in its bidi model.</span></p>
<p><span><br>
</span></p>
<p>B) Switch to the original TeX-XeT model by Knuth</p>
<p><br>
</p>
<p>I would prefer this approach (considering my over 10 years of experience with both TeX--XeT and Omega bidi model) as it is more stable than Omega's bidi model. If I recall correctly, Khaled Hosny did this in 2013 and when I was testing most of the problems
 were fixed. The only issue was that the original TeX-XeT model adds \beginL ... \endL and that would cause some problem in math typesetting (sorry, I can not remember what exactly it was about but I remember it was reported by David Carlisle). For this problem,
 one can look at TeX--XeT and see how display math are done there and we could apply the same approach to TeX-XeT model.</p>
<p><br>
</p>
<p>Once this is done, we can also look at ParsiTeX source[1] which is also based on TeX--XeT and add few primitives which are essential for bidi such as \Rhalign (making RTL tables).</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Conclusion: I am not going to sit and watch like before! if XeTeX bidi model is not improved until TeXLive 2017, I am going to fork XeTeX, rename it to something else and make the changes I need. This is indeed last time I try to talk about it with the XeTeX
 team. I have done it numerous times and each time the bidi problems were ignored.</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>[1] <a href="http://ctan.org/pkg/parsitex" class="OWAAutoLink" id="LPlnk265921" previewremoved="true">http://ctan.org/pkg/parsitex</a></p>
<div id="LPBorder_GT_14795686225460.8356565650090635" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14795686225440.806616388360625" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14795686225450.23204406124354993" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14795686225450.7606052401196894"></div>
<div id="LPTitle_14795686225450.8170762460488854" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14795686225450.8650838690846643" href="http://ctan.org/pkg/parsitex" target="_blank" style="text-decoration: none;">CTAN: Package parsitex</a></div>
<div id="LPMetadata_14795686225460.49858037331555627" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
ctan.org</div>
<div id="LPDescription_14795686225460.4472127156855059" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Sugges­tions. Maybe you are in­ter­ested in the fol­low­ing pack­ages as well. nts: New Type­set­ting Sys­tem; vtex-free: T e X sys­tem and PDF sup­port ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div><br>
</div>
<div></div>
<br>
<p></p>
</div>
</div>
</div>
</body>
</html>