Issue 51356 - ja IM: partial commit does not display remaining preedit part
Summary: ja IM: partial commit does not display remaining preedit part
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: current
Hardware: Sun All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: ulf.stroehler
QA Contact: issues@gsl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-29 11:11 UTC by naoyuki
Modified: 2005-07-26 11:24 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description naoyuki 2005-06-29 11:11:54 UTC
How to reproduce:
1. login with ja locale to Solaris10/JDS
2. launch Writer
3. type Ctrl-Space for IM on
4. enter 'aiueo'
5. press 'down arrow' key or 'Ctrl-n' to commit first part of pre-edit string
6. remaining part of preedit string disappears
Disappeared string becomes visible when press Return to commit whole preedit string

This is Solaris10/JDS problem. I do not see this on Linux/JDS.
SAL_USE_VCLPLUGIN also prevents this problem.
Comment 1 stephan_schaefer 2005-06-29 11:43:22 UTC
reassign
Comment 2 philipp.lohmann 2005-06-30 09:37:32 UTC
can reproduce that here  on athene
Comment 3 philipp.lohmann 2005-06-30 11:44:50 UTC
The problem comes from the underlying IME;

- insert "lalelu"
- move cursor in preedit to "ら"
- shift cursor down for partial commit.

We then get the follwing signals from gtk:
preedit change: ""
preedit change: " れる"
commit: "ら"

(i hope the respective kana above survive the transport via issuezilla)

The second preedit change should come after the commit of course. I don't think
there is anything the application can do to work around this.

please note: move cursor left or right and an according preedit changed is
emitted again and everything works again.

How should we proceed in this matter ? And why does this work in gedit ?
Comment 4 naoyuki 2005-07-01 01:44:41 UTC
The workaround which other clients are taking is 
commit_callback always check pre-edit string on IC after commit string handling,
and if it can get pre-edit from IC, then draws it after commit string drawing. 
Actually this is the problem of iiim r10 which Solaris10 uses. Linux/JDS uses
iiim r11, so that problematic callback sequence preedit->preedit->commit at
partial commit does not occur.
And above workaround has no side effect with iiim r11, so can be applied for
both Solaris and Linux.
I heard this from mozilla developer.
Hope this help!


Comment 5 philipp.lohmann 2005-07-01 09:28:02 UTC
Thank you for that tip. I hope this will not break with some other IME :-)
Comment 6 philipp.lohmann 2005-07-04 13:47:25 UTC
fixed in CWS pl06. The fix is Solaris only (via #ifdef) since this is a
workaround for a specific IME bug and the problem does not occur in the new
version of the IME which is used on Linux.

naoyuki: please have a look at the install sets for CWS pl06 at your convenience
Comment 7 philipp.lohmann 2005-07-05 10:01:27 UTC
please verify in CWS pl06

re-open issue and reassign to us@openoffice.org
Comment 8 philipp.lohmann 2005-07-05 10:01:32 UTC
reassign to us@openoffice.org
Comment 9 philipp.lohmann 2005-07-05 10:01:36 UTC
reset resolution to FIXED
Comment 10 ulf.stroehler 2005-07-11 09:28:59 UTC
verified in pl06.
Comment 11 ulf.stroehler 2005-07-26 11:24:00 UTC
Verified on MWS m121.