Closed Bug 83197 Opened 24 years ago Closed 23 years ago

Problems with the BiDi input widgets

Categories

(Core :: Layout: Text and Fonts, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ilya.konstantinov+future, Assigned: mkaply)

References

()

Details

1. Go to http://www.msn.co.il/ (your typical Logical page) Problem 1: 1. Select a word or two from the text. 2. Paste it into the input box (middle-click on the input box, in my case on X11). Result: The text is pasted backwards. Note: If I write atleast one Hebrew character in that box and THEN paste, the direction is correct. Problem 2: 1. Type "SHALOM hello" into the input box (with "SHALOM" being a Hebrew word). Note: At this point, I expect the cursor to be in the end of the string. 2. Press Ctrl+U (traditionally "erase to beginning of line" on Unix widgets) Result: Nothing is erased. Problem 3: 1. Type "SHALOM hello" into the input box (with "SHALOM" being a Hebrew word). Note: At this point, I expect the cursor to be in the end of the string. 2. Press END (to certainly go to the end of line). 3. Press Ctrl+U. Result: The string "hello" remains (even though it seemed to be beyond the cursor!) and it's reversed --> "olleh" (!). Problem 4: 1. Type "SHALOM hello" into the input box (with "SHALOM" being a Hebrew word). 2. Press HOME. 3. Press Shift-END (to select to end-of-line). Result: Only SHALOM gets selected. Expected result: The whole string gets selected. Problem 5: Same as problem 4, just first press END, then SHIFT-HOME. Result: Nothing is selected. I could probably make up many more of those, but I'll stop here.
Problems 4 and 5 occur on Hebrew Windows also. Are problems 2 and 3 specific to Bidi, or do they occur elsewhere?
Checking in the input box on msn.co.il with English-only text. Problem 1: NOT reproduced. English text pasted correctly. Problem 2: NOT reproduced. Ctrl-U erases whole line, as expected. Problem 3: NOT reproduced. Ctrl-U erases whole line, even though the cursor position is different from Problem 2 (I assume that's because of the 2 possible insertion points in BiDi. Problem 4: NOT reproduced. Problem 5: NOT reproduced. Thus, we come to a conclusion this is a BiDi specific problem.
Based on Ilya and Simon's comments, I am confirming the bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Adding Gilad to the CC line.
Mass-move all BiDi Hebrew and Arabic qa to me, zach@zachlipton.com. Thank you Gilad for your service to this component, and best of luck to you in the future. Sholom.
QA Contact: momoi → zach
Blocks: 115709
Depends on: 76190
Some of these problems have already been fixed, others will fixed if the patch in bug 76190 is checked in.
All cases now work correctly.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Case 2 works correctly now since Ctrl-U works incorrectly on Mozilla: it erases the whole line, while the Unix Ctrl-U erases to the beginning of the line (leaving the text after the cursor intact).
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.