<div dir="ltr">Hi Idris<br><br>Agreed. and if you look ath my previous questions, I actually asked if it is to be implemented in the luatex engine or in the macro level but I got no clear response. I have no problems doing uni bidi in lua and that is what I have been doing for a week but I have not finished yet. I am not going to implement whole uni bidi for my package, just mirroring characters, numbers are LTR, One single English word is LTR and that is it. Then I see what users say and then change things as need arises.<br>
<br>Thanks<br><br><div class="gmail_quote">2011/7/20 Idris Samawi Hamid ادريس سماوي حامد <span dir="ltr"><<a href="mailto:ishamid@colostate.edu">ishamid@colostate.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Salaam, Vafa, all<br>
<br>
On Tue, 19 Jul 2011 02:24:02 -0600, Vafa Khalighi <<a href="mailto:vafa018@gmail.com" target="_blank">vafa018@gmail.com</a>><br>
wrote:<div><div></div><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
True but at least I think luatex can provides something similar to what<br>
XeTeX provides by its ICU layout engine and the rest (which obviously is<br>
much complicated and needs more testing) can be done either by a<br>
preprocessor or done entirely in lua.<br>
<br>
<br>
Which thereby makes a generic solution impossible. Omega translation<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
processing struggled with this mix of 'pure text', 'macro expansion',<br>
'packages content' and it never worked out in complex situations. For me<br>
this is a pretty good reason for not adding any hard coded bidi (or foo or<br>
bar or whatever) behavior to core luatex but stick to either external<br>
libraries (preprocessing or whatever) and/or solutions written in lua that<br>
nicely interact with the macro packages concepts. (Well, that's the main<br>
reason for having lua as extension language in the first place).<br>
</blockquote></blockquote>
<br></div></div>
I am feeling deja vu here ;-)<br>
<br>
We must all remember that luatex has a different philosophy from xetex<br>
etc. luatex provides the most basic, low-level, bi-directionality as<br>
perfectly as possible.<br>
<br>
OTOH, luatex is _not_ interested in deifying any particular paradigm of<br>
rules for processing bidi text. Compare with the Open Type engine: That's<br>
done by lua extensions. Similarly, bidi in mkiv will be done by lua<br>
extensions which can easily be modified and parameterized as needed.<br>
<br>
For example, I may want to use Arabic-numerals in a Persian-typesetting<br>
context or vice versa. Hardcoding the bidi algorithm makes that<br>
inconvenient. Also, the bidi algorithm is not perfect: it mixes the needs<br>
of an editor or verbatim mode with those of real life typography. These<br>
features should be flexible and capable of being turned on and off.<br>
Consider an Arabic paragraph that's all in Arabic except the first word in<br>
English. It makes no sense to force an LR par in that case.<br>
<br>
Sometimes you want to turn bidi features off, or at least deprecate them,<br>
in verbatim. See the features of SC Unipad -- perhaps the best<br>
implementation of the bidi algorithm -- for example.<br>
<br>
Parts of the bidi algorithm can be part of a solution to the overall<br>
question of bidi typography, but it makes more sense in the luatex<br>
philosophy to decouple that algorithm from the core and build a bidi<br>
paradigm -- or even paradigms in the plural -- than to hardcode one.<br>
<br>
For those who like the xetex paradigm, it's best to use xetex. xetex and<br>
luatex involve different philosophical approaches. Using lua, anyone<br>
interested can develop their own bidi engine on top of luatex. Similarly,<br>
if someone does not like the way mkiv does open type. it's just a matter<br>
of writing another OT engine in lua instead of recompiling luatex.<br>
<br>
Best wishes<br>
Idris<br><font color="#888888">
-- <br>
Professor Idris Samawi Hamid, Editor-in-Chief<br>
International Journal of Shīʿī Studies<br>
Department of Philosophy<br>
Colorado State University<br>
Fort Collins, CO 80523<br>
<br>
</font></blockquote></div><br></div>