Bug 209626 - scim doesn't show preedit text from fallback context
Summary: scim doesn't show preedit text from fallback context
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: scim-bridge
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peng Huang
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-06 14:07 UTC by Matthias Clasen
Modified: 2007-11-30 22:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-09 04:30:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matthias Clasen 2006-10-06 14:07:19 UTC
The gtk input context implementation in scim-bridge uses a GtkIMContextSimple as
a "fallback" context, but it does not show preedit text from that fallback context.

Try the following: 

1) enable scim
2) hold control-shift
3) type u123
4) releaes control-shift
5) by surpised by an accented g popping up

Notice that there is no preedit text displayed in 3)

Comment 1 Ryo Dairiki 2006-10-08 06:54:27 UTC
This is the feature of SCIM itself.
Please try "export GTK_IM_MODULE=scim; gedit" from the terminal.
You can confirm that exactly the same thing happens.
If you're annoying by this feature, please report this to SCIM project directly.

Comment 2 Matthias Clasen 2006-10-08 13:39:12 UTC
This is not a feature, it is a bug

Comment 3 Jens Petersen 2006-10-16 06:13:01 UTC
Okay, but I think Dairiki-san means it is not a regression relative to
the scim gtkimm.

Comment 4 Jens Petersen 2006-10-18 05:22:47 UTC
Reproduced for both scim and scim-bridge.

Since scim provides the rawcode engine for unicode input (currently hidden by
default though in Fedora), perhaps it would be better if it didn't pass the
Ctrl-Shift-U event to GtkIMContextSimple.

Comment 6 Hu Zheng 2007-01-31 05:46:16 UTC
I think Ctrl-Shift-U should not be the feature of scim, but the feature of
gtk(or x-window?), so the preedit window won't shown as scim don't know this at all.
Ctrl-Shift-U work even when scim is not running(or be killed).
If you want to see the preedit window, just choose scim's rawcode im engine,
then enter 123 and the preedit window will be shown, the first character is just
what you input by Ctrl-Shift-U with 123.
So this is not a bug.

Comment 7 Matthias Clasen 2007-01-31 14:42:31 UTC
Well, if scim uses some other input method as fallback (like in thie case
GtkIMContextSimple), it better made sure that any preedit text of the fallback
input method finds its way back to the application. It doesn't, and thats a bug.


Comment 8 Peng Huang 2007-05-24 00:09:55 UTC
I think the best way to fix this bug by disabling this feature, but GtkIMContext
does not provide an interface to do it. It is difficult to disable it in scim
and scim-bridge. I suggest asking gtk to add this API.


Comment 9 Matthias Clasen 2007-05-24 00:22:44 UTC
No, this is an scim bug. If it decides to fallback to GtkImContextSimple, it
needs to do it properly.

Comment 10 Matthias Clasen 2007-05-24 00:23:48 UTC
And if it cannot be bothered to do it properly, it should not do the fallback

Comment 11 Peng Huang 2007-05-24 02:02:39 UTC
Yeah. It's an bug in scim. But it is difficult fix without an API to disable it
in GTK. I found other IMs have similar problem, like uim.
I do not suggest showing preedit text from GtkIMContextSimple, it will conflict
with own preedit text.

Comment 12 Matthias Clasen 2007-05-24 02:04:42 UTC
It is very simple - if you cannot display preedit text from the fallback, then
don't fallback to something that produces preedit text...

Comment 13 Peng Huang 2007-05-24 02:18:37 UTC
Do you mean discarding Ctrl+Shift+U key event?

Comment 14 Matthias Clasen 2007-05-24 02:34:16 UTC
I mean just don't fall back to GtkImContextSimple. But filtering out C-S-u may
be good enough.

Comment 15 Peng Huang 2007-06-06 09:43:31 UTC
Fixed in scim-bridge-0.4.12-3.fc8.

Comment 16 A S Alam 2007-09-17 04:44:27 UTC
try to reproduce and test with latest version.
use gedit, use scim-bridge- > Press Ctrl+Shift+U+012-> No pre-edit buffer
ctrl-Space (deactivate Scim) - >press Ctrl+Shift+U+012->Showing Preedit buffer.
it seems bug still present with scim-bridge.
can someone please have a look and help to correct me with stop I used to produce.


Version:scim-1.4.7-3.fc8


Comment 17 Jens Petersen 2007-10-09 01:56:09 UTC
Does "Control+Shift+u123" still work in current rawhide?

(It doesn't seem to do anything for me anymore.)

Comment 18 Jens Petersen 2007-10-09 02:07:34 UTC
Hmm nevermind, probably it is a local issue on my test machine:
it works for me on another rawhide install (without scim).

Comment 19 Jens Petersen 2007-10-09 04:29:25 UTC
"C-S-u123" preedit works for me under scim-bridge on a fresh japanese install
of rawhide.  So this looks good to me now. :)


Comment 20 Jens Petersen 2007-10-09 04:30:51 UTC
(In reply to comment #16)
> use gedit, use scim-bridge- > Press Ctrl+Shift+U+012-> No pre-edit buffer
> ctrl-Space (deactivate Scim) - >press Ctrl+Shift+U+012->Showing Preedit buffer.

This only needs to work when scim is deactivated so that is ok.
Thanks for testing. :)


Note You need to log in before you can comment on or make changes to this bug.