Closed Bug 11994 Opened 26 years ago Closed 25 years ago

[IME/rule?Txn?][IME-InsertIMEText]IME-Cannot add spaces when turn on IME

Categories

(Core :: Internationalization, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: teruko, Assigned: mozeditor)

References

Details

(Keywords: inputmethod)

When you turn on IME to type Japanese character, the caret does not move double byte for space bar. Steps of reproduce 1. Open editor by selecting menu Task|Editor 2. Set the cursor on the editor to type Japanese characters 3. Turn on the IME by Ctrl+~ and change the Zenkaku Hiragana mode 4. Hit the Space bar several times The caret moves the first single byte. After that, it does not move at all. Without IME, the caret moves fine. Tested 8-16 Win32 build. This works fine in Mac build.
Status: NEW → ASSIGNED
Target Milestone: M11
Assignee: tague → ftang
Status: ASSIGNED → NEW
Summary: IME-Cannot add spaces when turn on IME → [IME/rule?Txn?]IME-Cannot add spaces when turn on IME
Status: NEW → ASSIGNED
Priority: P3 → P2
Blocks: 16127
Target Milestone: M12 → M11
Summary: [IME/rule?Txn?]IME-Cannot add spaces when turn on IME → [IME/rule?Txn?][IME-InsertIMEText]IME-Cannot add spaces when turn on IME
I think the non IME input replace the 2nd (and later) space into NBSP and we didn't do that in the IMETextTxn.
Summary: [IME/rule?Txn?][IME-InsertIMEText]IME-Cannot add spaces when turn on IME → [dogfood] [IME/rule?Txn?][IME-InsertIMEText]IME-Cannot add spaces when turn on IME
PDT would like to know if only moving one byte forward corupts the data? Do the spaces really show up in your sentenance anyway? In html mail compose, the first space does not show up until you hit another character, space or otherwise.
I cannot reproduce the bug now because IME is crashing in Editor as well (it used to work in Win editor, now it doesn't). Can you put this bug on hold until we can investigate more about it when IME is back and working? Teruko doesn't remember the specifics of this bug in August.
IME should be working now. This bug does not happen on mac. Is win IME using regular space characters for ime input? If it is we will need to take that into account in the ime code (multiple spaces render as a single space in html).
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
fix by joe. !!! :)
Status: RESOLVED → VERIFIED
I verified this in 10-28-08 Win32 build.
Status: VERIFIED → REOPENED
I need to reopen this. This happens in 120208 and 120315 Win32 build. Steps of reproduce 1. Open Composer 2. Turn on IME 3. Hit the space bar IME inserts the double byte spaces.
Resolution: FIXED → ---
Whiteboard: [PDT-]
Target Milestone: M11 → M12
Putting on pdt- radar. bobj, please change to PDT+ if you feel differently.
Correction of my previous comment. IME does not insert double byte spaces.
Assignee: ftang → jfrancis
Status: REOPENED → NEW
The spaces are actually insert into the content module. But the 2nd space make the 1st space turn into nbsp - which implemented by HTML typing rule. This is because last time we try to not to break IME text . joe could you do a special case for a single ' ' in IME text and treat it as the normal space text ?
Target Milestone: M12 → M13
moving to m13
Status: NEW → ASSIGNED
i've spoken with Frank about this and I know what's going on. Will investigate possible fix...
Summary: [dogfood] [IME/rule?Txn?][IME-InsertIMEText]IME-Cannot add spaces when turn on IME → [IME/rule?Txn?][IME-InsertIMEText]IME-Cannot add spaces when turn on IME
Whiteboard: [PDT-]
removing dogfood and PDT-
I have a possible fix for this which I will try out when I return in early January.
I sent this patch to Frank: in nsHTMLEditRules.cpp, line 168, change it from: if ((action == nsEditor::kOpInsertText) || (action == nsEditor::kOpDeleteSelection)) to: if ((action == nsEditor::kOpInsertText) || (action == nsEditor::kOpInsertIMEText) || (action == nsEditor::kOpDeleteSelection)) Awaiting his feedback on the results...
Status: ASSIGNED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
i checked in this fix. Can someone verify for me? I can't test it.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I tested this in 2000011108 Win32 build. Single space can be added when I turn on IME. However, I found one problem. When the spaces are added to the next line, the caret does not move one space bar (need to hit space bar twice) at the beginning of the next line. Steps of reproduce 1. Open Composer by selecting menu Task|Composer 2. Turn on the IME by Ctrl+~ and change the Zenkaku Hiragana mode 3. Hit the Space bar several times until go to the next line The carret moves fine, but at the beginning of the next line, you need to hit space twice to move one carret. I need to reopen this.
this sounds like a different bug. Am I right that you can now get multiple spaces to show up (the original bug is fixed?). If so, I'll move the new bug to m14 - it doesn't sound as serious as the original problem.
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
I logged the new problem in 23851. I marked this bug as fixed.
Status: RESOLVED → VERIFIED
Verified in 2000011108 Win32 build
You need to log in before you can comment on or make changes to this bug.