mixing RTL and LTR is a pain in unix-like tools (gnu, os x).
What I usually (not always) found out diring my experiments woth Persian is that the gnu tools themselves deal with it quite fine - but the terminal application shows them at pretty random places. If there is both LTR and RTL in one file, havoc usually ensues.
(persian also has this funny "invisible space", but it causes only small annoyances)
I digress, but I think this is one of the most annoying things about Unix these days. I practically live by the command line; but terminals are terrible. We're basically emulating technology that was already getting obsolete in the 70s!
Plan 9 had the courage to shed this cruft by having simple text windows which have a prompt. No curser addressing and no crazy control codes. That makes rendering it just as easy (and beautiful) as rendering text box contents. I wish the Linux desktop environments would follow suit.
What I usually (not always) found out diring my experiments woth Persian is that the gnu tools themselves deal with it quite fine - but the terminal application shows them at pretty random places. If there is both LTR and RTL in one file, havoc usually ensues.
(persian also has this funny "invisible space", but it causes only small annoyances)