<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
<br>
</div>This has to be handled at a higher level, the engine don't know about<br>
the directionality of individual characters, so you need to put numbers<br>
inside {\textdir TRT } or write lua code that applies bidirectional<br>
algorithm at node level.<br>
<div class="im"><br>
</div></blockquote><div><br><br>No, it should be treated correctly by defualt.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<br>
<br>
</div>Personally, I think this is desirable, so that macros and styles written<br>
with LTR in mind, get mirrored in RTL, otherwise we will need to patch<br>
every single document style for Arabic, like with TeX--XeT as used in<br>
pdfTeX and XeTeX. However, you can swap the definitions at macro level<br>
if you want to.<br>
<br></blockquote><div><br>wrong. <br><br>with current condition I would say XeTeX>LuaTeX<br></div></div><br></div>