-
Bug
-
Resolution: Won't Fix
-
P3
-
6, 7
-
generic
-
generic
> This happens in JText or JTextArea with ComponentOrientation set to LTR
> (or default): type (or paste) the following data:
> abc_DEF_123_xyz
> where underscores represent spaces and DEF are Hebrew letters.
> The final display is:
> abc_123FED__xyz
> As you can see, the space between F and 1 (logically) is displayed on the
> right of D, instead of on the left of F.
>
> Cursor movement behaves also very strangely, probably as a sequel of the
> bad positioning of that space: when pressing repetitively RightArrow from
> the Home position, DEF and the following space are skipped.
> When pressing repetitively LeftArrow from the End position, the cursor
> loops on DEF.
>
> A few remarks:
> a) The bug occurs only for spaces. Using another neutral character (e.g.
> asterisk) does not display the bad behavior.
> b) Even with some other neutral character, there is a discrepancy in
> cursor movement when travelling from left to right versus travelling from
> right to left.
> When travelling from left to right, there is no pause before the 1. When
> travelling from right to left, there is a pause after the 1, probably due
> to skipping from logically before 1 to logically before D. What should be
> the correct behavior is a discussion that I leave for when we have a
> course of action.
> c) The behavior for the same data when the ComponentOrientation of the
> Jtext is RTL is almost correct. At least the display is correct. Cursor
> behavior has a couple of small problems
> (or default): type (or paste) the following data:
> abc_DEF_123_xyz
> where underscores represent spaces and DEF are Hebrew letters.
> The final display is:
> abc_123FED__xyz
> As you can see, the space between F and 1 (logically) is displayed on the
> right of D, instead of on the left of F.
>
> Cursor movement behaves also very strangely, probably as a sequel of the
> bad positioning of that space: when pressing repetitively RightArrow from
> the Home position, DEF and the following space are skipped.
> When pressing repetitively LeftArrow from the End position, the cursor
> loops on DEF.
>
> A few remarks:
> a) The bug occurs only for spaces. Using another neutral character (e.g.
> asterisk) does not display the bad behavior.
> b) Even with some other neutral character, there is a discrepancy in
> cursor movement when travelling from left to right versus travelling from
> right to left.
> When travelling from left to right, there is no pause before the 1. When
> travelling from right to left, there is a pause after the 1, probably due
> to skipping from logically before 1 to logically before D. What should be
> the correct behavior is a discussion that I leave for when we have a
> course of action.
> c) The behavior for the same data when the ComponentOrientation of the
> Jtext is RTL is almost correct. At least the display is correct. Cursor
> behavior has a couple of small problems
- relates to
-
JDK-4297788 Cursor loops in JTextArea when editing English text in RTL mode and vice versa
-
- Open
-