Hi, Hussein Shafie a ?crit :
> Therefore we need to fully understand why you say ``Your editor already > almost supports Arabic text''. Here is my own experience on XXE 2.7 (Windows 98, JDK 1.4.2_01) : > We can easily understand why the caret behavior is incorrect: > > * We imagine that when you type a letter, the caret moves to the right, > instead of moving to the left. Yes. > * We imagine that when you click somewhere because you want to type text > here, the caret is moved ``to the opposite side''. Yes, but it looks more complicated. When you click on the middle of a letter, the caret goes left, which is correct but inconsistent with the above behaviour. When you click on the *very* beginning of a letter, the caret goes right : I assume that the click considers this position as being in fact the end of the previous letter. See below for a possible explanation... > * Similar odd behavior with text selection (i.e. you drag the mouse over > text). Yet more complicated : the left part of the selection (i.e. the end of the selected text) is correct. The right part (i.e. the beginning of the selection) of the selection falls in the middle of the letter. It *seems* the this position is calculated on the basis of the isolated form of the letter. > * How can Java *shape* letters correctly? We have done *nothing at all* > to help Java at this. Unlike Morphon for example, XXE does not use the > standard javax.swing.text.* classes. And we don't even support input > methods. This is a real mystery... I assume that CreateGlyphVector does the work with the help of the underlying font tables. Unfortunately, this does not make a bidi-consistent caret policy :-( > PS: Yours truly can speak, read and write Arabic (I'm Egyptian). Ahs?n n?s :-) Cheers, -- Pierrick Brihaye, informaticien Service r?gional de l'Inventaire DRAC Bretagne mailto:pierrick.brihaye at culture.gouv.fr +33 (0)2 99 29 67 78

