trichview.com

trichview.support




Re: Right-To-Left typing


Return to index


Author

Message

Marc

Posted: 12/06/2003 0:20:04


Thanks Sergey. Great explanation of how bidirectional text works.


Marc


"Sergey Tkachenko" <[email protected]> wrote:

>In "unspecified" mode, bidirected text is not supported at all.

>It is supported in "righttoleft" and "lefttoright" modes. In both modes,

>both LTR and RTL text must be displayed correctly. The settings affect only

>positioning of characters (and non-text items) which do not have strict

>RTL/RTL attribute, such as punctuation. Even then in many cases RTL/LTR

>attribute of such characters can be determined automatically. For example,

a

>space character between two English words becomes LTR, even if the default

>mode is RTL.

>

>I do not think that it would be consistent if you will switch modes

>depending on user input. This may cause existing text "jumping" (rearranged)

>while user types. And he/she may want to enter both RTL and LTR text on

the

>same line.

>I think that the best way is to allow user to set RTL and LTR property for

>text himself/herself.

>Properties can be set:

>(1) default for document,

>(2) default for the specific paragraph,

>(3) default for the specific text.

>

>(1) can be set by assigning TRichViewEdit.BiDiMode.

>If you use RichViewActions, they have:

>-  TrvActionParaLTR and TrvActionParaRTL for implementing (2)

>- TrvActionTextLTR and TrvActionTextRTL for implementing (3)

>>

>> I see. I assumed that as the default BiDiMode was rvbdUnspecified and

the

>> direction the text types in changes when switching between RTL and LTR

>language

>> then rve was auto-detecting and handling BiDiMode itself. It works when

I

>> manually change BiDiMode for Hebrew.

>>

>> Can you help me how I can detect when the character set changes from LTR

>> to RTL so I can progmatically change BiDiMode to the correct setting?

>>

>> Thanks for your help.

>>

>

>





Powered by ABC Amber Outlook Express Converter