On Mon, Jan 13, 2003 at 09:35:15AM +0100, Jean-Marc Lasgouttes wrote: > Dekel> I really don't want to maintain special RTL code for the XForms > Dekel> frontend. Its support for RTL can never be as good as QT, so I > Dekel> prefer to drop RTL for this frontend. > > Dekel, how does the qt frontend know that it should reverse the > string? By looking at the encoding? I'd be interested to have a > description of how qt makes it work.
Internally, QT works in Unicode, so it knows whether the text is Hebrew (or other RTL language) by checking the UCS. Currently, the LyX kernel communicates with the QT frontend using 8-bit strings, and the QT frontend code converts it to Unicode according to the locale. I guess that somewhat similar can be done with the XForms code: if the locale is Hebrew, the strings should be reversed. This solution will simplify the code of the LyX kernel.