Tzafrir Cohen wrote:
On Wed, 12 Feb 2003, Dekel Tsur wrote:That is up to the editing layer to decide. In general, the answer should be "yes". In any case, just verified this with Windows.
OTOH: is it safe to assume that whenever your keyboard is in "Hebrew mode"
you type RTL text?
All those who complained that they have never seen any inconsistancies before are welcome to try the following experiment:
* In Windows, open notepad.
* Switch the keyboard to hebrew, but leave the context LTR (i.e. -
press alt-right shift).
* Type shift-0. Instead of ")", you will get "(".
* Type ">", "]", "}". In each time you will get a display that is
opposite from the char engraved on your keyboard.
* Press ctrl-right shift to switch notepad into RTL context.
* You will see that all of the characters you typed before, and
which before did not match the engraving on your keyboard, have
been reversed and now do.
Then everything is backwards anyways, and they will have problems displaying information created with other BiDi supported programs, as the info will arrive as 0x0028 for open and 0x0029 for close, rather than 0x0028 for left and 0x0029 for right parenthesis.What about:- programs with no bidi support?
If the editor is BiDi aware, things fall into place naturally. The general explanation is that characters are mirrored if in RTL context, and that switching the keyboard to a RTL language switches the cursor's context into RTL context. Someone once said that Windows' notepad actually enforces this by adding LRM and RLM marks into the text, but I have never seen that happen.- editing of mixed Hebrew-English text?
I don't know of any standard BiDi editor yet (though Mozilla is very good, though not perfect). I'm hoping Wine will have one soon :-). For mere display, they almost all support it. I even used it to work around Mozilla BiDi bug in my resume (see link at the bottom of the page). Go to my Hebrew HTML resume, and you will see the source is littered with RLMs (I think Mozilla translated them into –, even though HTML supports ‏). You can also try and filter them all out, and see what my resume looks like then :-)BTW: the extended layouts (yx and si1452) also include the symbols LRM and RLM chars. They are supposed to allow typing of more complex mixed text. Which toolkits/programs currently support them?
Shachar
--
Shachar Shemesh
Open Source integration consultant
http://www.consumer.org.il/sun/
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]