<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Jul 20, 2011 at 5:41 AM, Hans Hagen <span dir="ltr"><<a href="mailto:pragma@wxs.nl">pragma@wxs.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 19-7-2011 7:51, Vafa Khalighi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Idris<br>
<br>
Agreed. and if you look ath my previous questions, I actually asked if it is<br>
to be implemented in the luatex engine or in the macro level but I got no<br></blockquote></div></blockquote><div><br>When I said "agreed", I only agreed with Idris that LuaTeX does not provide solutions and unicode bidirectional algorithm should be done in macro (lua) level and not in the engine but respectfully, I do not agree with his comments about Unicode Bidirectional Algorithms.<br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

</blockquote>
<br></div>
There is no need to implement it in the luatex engine as one can hook in code at all kind of moments (reading files, processing tokens, handling nodes) and no hard codes solution will satisfy each user and can only lead to weird hooks into and control over such a mechanism. The only thing luatex can do is to provide access to internals (which it does) and either library or lua code can do it's work. So, one can provide unicode bidi support to the extend needed.<br>

<br>
So the answer is: at the macro level (which includes the lua level).<div><div></div><br></div></blockquote><div><br>Thanks. What I am doing will be generic, so ConTeXt users can use it too if they like but to the best of my knowledge, most Persians use LaTeX. <br>
</div></div></div>