Page 1 of 1

hebrew, arabic and bidi

Posted: Thu Sep 22, 2005 12:48 pm
by tmMK
hi,

we're trying to implement hebrew and arabic support and i have several questions, especially about BidiMode:

1) is richview able to save text direction to html? for example: <p dir=rtl> (if BiDiMode of parastyle is set to rvbdRightToLeft)

2) when user is typing in hebrew (or other RTL) language, is actual TextStyle and ParaStyle set to RTL or not? how to manage it?

i welcome any other remarks from those who have experiences with this, because this topic is really complicated...

thanks...

Posted: Thu Sep 22, 2005 7:23 pm
by Sergey Tkachenko
1) Current version does not do it. But I already added this feature in my local copy, so it will be available on the next update.
SaveHTML will save it as <div dir=RTL>, SaveHTMLEx will use CSS for that.

2) It's usually not necessary to set the text style's BiDiMode, because text is arranged automatically depending on characters bidi properties. It can be used to help to the component if it arranges the text not as expected.
Paragraph's BiDiMode is not set automatically too. May be it makes sense to apply bidimode to the paragraph on Ctrl+LShift and Ctrl+RShift....

Posted: Thu Sep 29, 2005 11:21 am
by tmMK
1) ok thanks! i'll check it...

2) but cursor is jumping and selection is doing strange things when bidi is not set properly (unspecified) and user is writing in hebrew...

Posted: Thu Sep 29, 2005 7:20 pm
by Sergey Tkachenko
If BiDiMode is set to unspecified, bidirected text is not supported (simplified methods for text rendering are used).
If you want to support Arabic and Hebrew, TRichView.BiDiMode must be set either in LeftToRight ot RightToLeft value.