[SCIM] SCIM should commit the preedit string before switching off

LiuCougar liucougar at gmail.com
Mon Oct 11 11:19:55 PDT 2004

Thanks for your details description.

I updated scim-qtimm to fix this, please have a try


On Mon, 11 Oct 2004 19:28:21 +0200, Mike FABIAN <mfabian at suse.de> wrote:
> I think the following is a bug in SCIM:
> Start konsole using QT_IM_MODULE=scim.
> Switch on scim input. Choose input method "UIM-anthy".
> Type "a". The OnTheSpot preedit string in konsole shows "あ".  As this
> string is not yet committed, it is marked as a preedit string.  In
> konsole this means that the background color is dark green.
> Now switch off scim. The "あ" is not committed, you still see it
> marked as preedit by the dark green background.
> Now type " ". The green preedit background moves right one single
> width character. Now it only covers the right half of あ.
> See screen shot
> http://www.suse.de/~mfabian/misc/scim-20041011/konsole-preedit-colour-moved-right.png.
> Now type return. Now konsole looks like in screen shot
> http://www.suse.de/~mfabian/misc/scim-20041011/konsole-messed-up-by-preedit-colour.png
> This problem will not go away anymore. "reset" will not help. The mess
> becomes worse and worse. See screen shot
> http://www.suse.de/~mfabian/misc/scim-20041011/konsole-completely-messed-up-by-preedit-colour.png
> One has to start a new konsole to get rid of the problem.
> If SCIM would force a commit of the preedit string before switching
> off, this problem would not occur.
> Other input methods I have tried like uim-anthy via
> QT_IM_MODULE=uim-anthy or kinput2 do commit the preedit string before
> switching off.
> I think scim should do the same.
> The problem with the remaining preedit colour junk is probably a bug
> in konsole, not in scim.
> But nevertheless I think that forcing a commit before switching off
> scim is a good idea.
> Not doing that is confusing in most other applications as well
> although it doesn't produce such catastrophic results like in konsole.
> For example in Mozilla/Firefox (using GTK_IM_MODULE=scim)
> Switch on scim using the UIM-anthy input method. Type "a". You see "あ
> ", marked as a predit string by a red underline. Now switch off scim.
> The preedit string vanishes! Committing would be better here.  Type
> some ascii characters. Switch scim on again. The preedit string あ
> appears again. This is surprising and confusing.
> The same problem as in Mozilla/Firefox is also seen when using
> OpenOffice.
> In applications using OverTheSpot like mlterm, the preedit string is
> in an additional window, but otherwise the behavior is the same.  It
> is not commited when switching off scim and appears again when
> switching scim on again.
> --
> Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian
> 睡眠不足はいい仕事の敵だ。
> _______________________________________________
> scim mailing list
> scim at freedesktop.org
> http://freedesktop.org/mailman/listinfo/scim

"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage

More information about the scim mailing list