[Bug 232014] New: When inputting Chinese in OpenOffice with Smart Pinyin input method (scim-pinyin), the inputted text will be inserted in wrong position.
https://bugzilla.novell.com/show_bug.cgi?id=232014 Summary: When inputting Chinese in OpenOffice with Smart Pinyin input method (scim-pinyin), the inputted text will be inserted in wrong position. Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: OpenOffice.org AssignedTo: eward@novell.com ReportedBy: zsu@novell.com QAContact: qa@suse.de CC: mfabian@novell.com When inputting Chinese in any components of OpenOffice (oowriter, oocalc, ooimpress) with smart pinyin input method (scim-pinyin), in some situation, the inputted text will be inserted in wrong position. However it only happens when using GNOME interface and scim gtkimmodule. How to reproduce: 1. Launch oowriter: $ LANG=zh_CN.UTF-8 OOO_FORCE_DESKTOP=gnome GTK_IM_MODULE=scim oowriter 2. Activate scim by pressing ctrl+space and change input method to Smart Pinyin. 3. Input some characters, such as "大家好". 4. Move the cursor to the middle of 家 and 好,like: 大家|好 5. Input another character, such as 很. 6. The expected result should be "大家很好", but actually it becomes "大家好很". This issue occurs not only in oowriter, but also in oocalc and ooimpress. But it doesn't occur when using XIM, no matter with xim gtkimmodule or using KDE interface. After checking the source code of scim-pinyin I found that scim-pinyin clears the preedit string before committing the result string. The issue won't occur if the result string is committed before clearing the preedit string. I can patch scim-pinyin to commit result string before clearing preedit string to workaround this issue. However it should be a bug of OpenOffice and I don't know whether there are other input methods have similar behaviour like scim-pinyin or not. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232014 ------- Comment #1 from zsu@novell.com 2007-01-04 20:11 MST ------- Created an attachment (id=111592) --> (https://bugzilla.novell.com/attachment.cgi?id=111592&action=view) Patch for scim-pinyin to workaround this issue. SLED10 has this issue as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232014 ------- Comment #2 from zsu@novell.com 2007-01-04 20:29 MST ------- I found that this issue doesn't occur in original SLE10. It occurs after updating scim and scim-pinyin to the latest ones (Pckages for SLE10-SP1). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232014 zsu@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pflin@novell.com, jjiao@novell.com ------- Comment #3 from zsu@novell.com 2007-01-08 23:39 MST ------- I found that the patch in comment #1 can't really fix the problem. The issue still remains when inputting in a table. I guess this bug relates to the fix of bug #198374. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232014 zsu@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111592|0 |1 is obsolete| | ------- Comment #4 from zsu@novell.com 2007-01-10 03:59 MST ------- Created an attachment (id=112176) --> (https://bugzilla.novell.com/attachment.cgi?id=112176&action=view) Patch to fix this issue. I finally found the reason. When updating preedit string, OpenOffice requires that the preedit caret should be at the end of preedit string. Otherwise weird behaviour will occurred. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232014 ------- Comment #5 from zsu@novell.com 2007-01-10 04:01 MST ------- Mike, could you please help submit this patch? Though I think OpenOffice should be fixed to remove this restriction. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232014 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mmeeks@novell.com ------- Comment #6 from mfabian@novell.com 2007-01-10 04:40 MST ------- Add Michael Meeks (OpenOffice expert) to CC:. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232014 ------- Comment #7 from mfabian@novell.com 2007-01-10 10:40 MST ------- scim package with the fix from comment #4 submitted to STABLE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232014
------- Comment #8 from mfabian@novell.com 2007-01-10 10:43 MST -------
Added Anja Stock
https://bugzilla.novell.com/show_bug.cgi?id=232014
------- Comment #9 from mfabian@novell.com 2007-01-12 09:05 MST -------
Zhe, the patch attached to comment #4 doesn't apply to the scim
package which is currently checked into SLES10-SP1.
The reason is that the line added by the patch
--- extras/gtk2_immodule/gtkimcontextscim.cpp.old 2007-01-10
18:09:50.000000000 +0800
+++ extras/gtk2_immodule/gtkimcontextscim.cpp 2007-01-10 18:54:29.000000000
+0800
@@ -2084,6 +2084,7 @@
g_signal_emit_by_name(_focused_ic, "preedit-start");
ic->impl->preedit_started = true;
}
+ ic->impl->preedit_caret = str.length ();
g_signal_emit_by_name(ic, "preedit-changed");
} else {
_panel_client.update_preedit_string (ic->id, str, attrs);
is already there in the package in SLES10-SP1.
Does that mean that there is nothing to fix for the scim package currently in
SLES10-SP1 as far as this bug is concerned?
NEEDINFO → Zhe Su
https://bugzilla.novell.com/show_bug.cgi?id=232014 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |zsu@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232014 ------- Comment #10 from zsu@novell.com 2007-01-13 05:29 MST ------- Sorry, I forgot to mention it. This bug is only available in scim-1.4.5. Actually the line was removed since scim-1.4.5 according to a request on scim-devel maillist to reduce flicker when updating preedit string. Obviously It does break some application. That line was introduced long time ago to workaround such kind of issue for some applications. But it will cause flicker when updating preedit string for some imengines. If scim-1.4.4 will continue to be used for SLE10-SP1, then nothing to be done for it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com