> Hi > > On Sun, 3 Feb 2002, Lars Knoll wrote: > > > On Sun, 3 Feb 2002, Lars Knoll wrote: > > > > > > I hate it when libraries try to second-guess the users. > > > > > > > > > > > > How would you align the translation of the sentence "QT/KDE > > > > > > doesn't support hebrew the same as Windows does."? > > > > > > > > > > > > Will there be a way for the user to override this? > > > > > > > > > >I think you can override it if you program your text box to be > > > > > automatically right aligned. not sure > > > > > > > > Unicode defines some special characters for this. one of them > > > > iscalled "right to left mark" (0x200f) and does exactly what you want > > > > if you add it at the beginning of the line. > > > > > > But the context here is the whole text (maybe wrap it with > > > <RLE>...<PDF>?). Also note that adding such a mark actually changes the > > > text, whereas the feature in question is regarding how the program > > > displays the text > > Consider a common use of a text editor as a text files viewer. I would > like to be able to view a document, and to change the base directionality, > without this causing the text editor to ask me "do you want to save your > changes" when I finish "viewing" the document: I never wanted to change > the text, only the way it is currently displayed on my screen.
Sure. But we are talking different things now. Originally the question was how to get the right embedding for a string to be displayed (as eg. in a label). > > > No quite true. If you have autodetection, the context is taken from the > > first character that has a strong directionality (in this case the RLM). > > The context is "guessed" from the first character with strong > directionality only if no external context is assumed. Yes. And a real editor should usually have an external context for the paragraphs. In HTML it's the dir="RTL/LTR" attribute, kword will porbably also use some sort of context. I was thinking about the case where the text is context free as eg. a plain text document. In this case you have to add the formatting hints ot the text, and with LRM/RLM and the embedding marks, Unicode provieds a way to do this. > > > (e.g:if this method is used, the text might eventually begin with > > > <LRM><RLM><LRM><RLM>... ;-) ) > > > > That's easy to avoid in an editor ;-) > > Yes, but I would rather that the editor won't change the text if not > necessary (e.g: sometimes you really need to fix the direction implicitly > in the text. One example for that is a mail message, since its text has no > external context. I usually set the directionality by using either a > hebrew or an english "Hi"). But in most cases I believe that such an > implicit base direction should not be saved. Right. These things should only be saved, if needed. So if the directionality you use in your editor agrees with the implicit one, no hint needs to be saved. If it doesn't, you can use the formatting hints in a plain text document to get the effect you want. Lars ================================================================= 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]
