After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 669080 - Search bar is incompatible with HIME and iBus
Search bar is incompatible with HIME and iBus
Status: RESOLVED DUPLICATE of bug 658325
Product: gnome-shell
Classification: Core
Component: general
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-01-31 03:24 UTC by V字龍(Vdragon)
Modified: 2012-05-16 09:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description V字龍(Vdragon) 2012-01-31 03:24:24 UTC
* My native language is Chinese, the descriptions below may not be precise enough*

HIME upstream bug tracker page:https://github.com/caleb-/hime/issues/244

問題有二:
There are two problems:

1.輸入組字字元時輸入區不見了
  The disappearance of the HIME input box when inputting character combination keys.

2.Commit時(按Enter一下)會直接執行搜索動作(通常是搜索Wikipedia),而不是輸出commit字串於textbox中。
  When commit string to the search bar(by pressing enter *once*) gnome-shell will directly perform the search process(usually is searching the Wikipedia), but not insert commit string into the search bar.

GNOME upstream bug tracker page:

問題有二:
There are two problems:

一、輸入組字字元時輸入區不見了
1. The disappearance of the HIME input box when inputting character combination keys.

二、commit時(按Enter一下)會直接執行搜索動作(通常是搜索Wikipedia),而不是輸出commit字串於search bar中

這似乎是GNOME 3的問題,可能要有人協助通報upstream,這裡先列個紀錄降

----------------------------
作業系統發行版本 | Operating System distribution version
  Ubuntu 11.10(自11.04升級而來) i386
  Ubuntu 11.10(upgraded from 11.04) i386

HIME軟體來源 | HIME software sources
  debian.luna.com.tw

hime-env輸出內容 | hime-env output
Linux 3.0.0-15-generic-pae #26-Ubuntu SMP Fri Jan 20 17:07:31 UTC 2012 i686 i686 i386 GNU/Linux

/etc/debian_version: wheezy/sid

/etc/issue: Ubuntu 11.10 

/usr/bin/hime: version 0.9.9, linked to /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 
 /usr/lib/libdbusmenu-gtk.so.4 
/usr/share/doc/hime/changelog.Debian.gz: hime (0.9.9+git120126-3) unstable; urgency=low
/usr/share/doc/hime-chewing/changelog.Debian.gz: hime (0.9.9+git120126-3) unstable; urgency=low
/usr/share/doc/hime-data/changelog.Debian.gz: hime (0.9.9+git120126-3) unstable; urgency=low
/usr/share/doc/hime-gtk3-immodule/changelog.Debian.gz: hime (0.9.9+git120126-3) unstable; urgency=low
/usr/share/doc/hime-qt4-immodule/changelog.Debian.gz: hime (0.9.9+git120126-3) unstable; urgency=low

XMODIFIERS   : XMODIFIERS=@im=hime
LANG         : LANG=zh_TW.UTF-8
LANGUAGE     : LANGUAGE=zh_TW:zh
LANG	     : zh_TW.UTF-8
LANGUAGE	     : zh_TW:zh
GTK_IM_MODULE: GTK_IM_MODULE=hime
QT_IM_MODULE : QT_IM_MODULE=xim

Running hime number: 3

hime socket number: 1

System library path: /lib
/usr/lib
/usr/lib32

gtk-query-immodules-2.0:
/usr/lib/gtk-2.0/2.10.0/immodules/im-hime.so

:
.

gtk-query-immodules-3.0:
/usr/lib/gtk-3.0/3.0.0/immodules/im-hime.so

/usr/lib/gtk-3.0/3.0.0/immodules.cache:
/usr/lib/gtk-3.0/3.0.0/immodules/im-hime.so
Comment 1 V字龍(Vdragon) 2012-01-31 03:26:20 UTC
There are some abundant words caused by miscopying, sorry.
Comment 2 André Klapper 2012-01-31 11:45:46 UTC
(In reply to comment #0)
> 1.輸入組字字元時輸入區不見了
>   The disappearance of the HIME input box when inputting character combination
> keys.

Can you please provide exact steps (click by click) to reproduce this problem, and maybe even attach a screenshot?


> 2.Commit時(按Enter一下)會直接執行搜索動作(通常是搜索Wikipedia),而不是輸出commit字串於textbox中。
>   When commit string to the search bar(by pressing enter *once*) gnome-shell
> will directly perform the search process(usually is searching the Wikipedia),
> but not insert commit string into the search bar.

I don't understand this either - what are the steps to reproduce this, what is the expected outcome, and what is the actual outcome?
Comment 3 V字龍(Vdragon) 2012-01-31 13:26:17 UTC
André Klapper, 
Thanks for reply.
I will need some time to provide more information.
Comment 4 V字龍(Vdragon) 2012-02-02 01:49:52 UTC
André Klapper,
If you don't mind please reply to https://github.com/caleb-/hime/issues/244        as well, since I'm not actually a developer of HIME input method.
I'm still finding some spare time to provide more apparent information.
Thanks.
Comment 5 Milan Bouchet-Valat 2012-02-02 09:24:25 UTC
(In reply to comment #4)
> André Klapper,
> If you don't mind please reply to https://github.com/caleb-/hime/issues/244    
>    as well, since I'm not actually a developer of HIME input method.
> I'm still finding some spare time to provide more apparent information.
I think that should be the other way round - ask them to come and comment here. Why should we go discuss on a bug tracker for a software we don't know about, with comments in Chinese we don't understand? ;-)
Comment 6 petercommand 2012-02-08 12:21:49 UTC
Step to reproduce:
 Step 1, Click Activities on the top-left corner
 Step 2,  Click on the search bar
 Step 3, Press ctrl-space(to switch to chinese input)
 Step 4, Type
Result: The input box is invisible
Expected: The input box is visible
Comment 7 André Klapper 2012-02-08 13:39:57 UTC
(In reply to comment #6)
>  Step 3, Press ctrl-space(to switch to chinese input)

Nothing happens here on a default Fedora system (which is no surprise). 
What are the steps needed before doing this, to have chinese input?
Comment 8 petercommand 2012-03-18 05:28:17 UTC
(In reply to comment #7)
> (In reply to comment #6)
> >  Step 3, Press ctrl-space(to switch to chinese input)
> 
> Nothing happens here on a default Fedora system (which is no surprise). 
> What are the steps needed before doing this, to have chinese input?

Install hime
Comment 9 André Klapper 2012-03-18 16:20:37 UTC
(In reply to comment #8)
> Install hime

On Fedora 16:

$:andre\> sudo yum install hime
Setting up Install Process
No package hime available.
Error: Nothing to do

Need working steps to follow in order to reproduce...
Comment 10 V字龍(Vdragon) 2012-03-18 19:59:35 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Install hime
> 
> On Fedora 16:
> 
> $:andre\> sudo yum install hime
> Setting up Install Process
> No package hime available.
> Error: Nothing to do
> 
> Need working steps to follow in order to reproduce...

H.I.M.E. is a very lately forked input method and is not surprising that it is not exist in Fedora.
These is some details how to install H.I.M.E. in 
https://github.com/caleb-/hime/wiki/prebuilds-and-auto-build-scripts-of-distros

or you may try install other known input method like ibus or scim...

I spent a few hours writing a document describe the problem, maybe helps a little...
CJK input method compatible problems software developers should avoid. | https://docs.google.com/document/d/1HB3juffu0KgSUyg15y8hBZOLcJdHK9KDVPFyCwqHh-I/edit
Comment 12 Milan Bouchet-Valat 2012-03-24 11:29:37 UTC
You understand that GNOME developers might not be very interested in installing a component they don't know about and that is not present in common distributions just to understand what the problem is, right? If you're developing an input method, you have to do the work to integrate it with existing desktop environments...
Comment 13 V字龍(Vdragon) 2012-03-24 16:10:48 UTC
(In reply to comment #12)
> You understand that GNOME developers might not be very interested in installing
> a component they don't know about and that is not present in common
> distributions just to understand what the problem is, right? If you're
> developing an input method, you have to do the work to integrate it with
> existing desktop environments...

@Milan Bouchet-Valat
Although this report is made initially for H.I.M.E. input method, its also exist in other input method (including those "present in common distributions" ones, like ibus(ibus-chewing), scim(scim-chewing), all in similar problems) , I believe there is flaws existed in keyboard event handling part of GNOME shell (search bar).

Not until this problem is solve, most of the CJK users can't properly search via the search bar...
Comment 14 petercommand 2012-03-25 15:55:28 UTC
(In reply to comment #12)
> You understand that GNOME developers might not be very interested in installing
> a component they don't know about and that is not present in common
> distributions just to understand what the problem is, right? If you're
> developing an input method, you have to do the work to integrate it with
> existing desktop environments...

You can try installing ibus and it will have the same problem.

Installing ibus chewing:
yum install ibus ibus-chewing
Comment 15 Weng Xuetian 2012-04-18 04:39:01 UTC
Generally speaking, the problem is must at gnome-shell side.
The problem is, input method must have the HIGHEST priority for key event. Which can not be guaranteed by gtk.

So gtk application developer must carefully try to avoid "eat" any key event. I know there are some case, key event must be explicitly processed on the application, but even in this case, it should be passed to input method first.

In this case, Chewing is one of the input method (no matter in ibus, hime, gcin or fcitx), which must use "Enter" to commit. But gnome-shell process the enter key event before input method, and cause this problem.

For this case the problem is in ui/viewSelector.js around line 134, it use key-press-event and process KEY_Return, so input method cannot work correctly.
Comment 16 Weng Xuetian 2012-04-18 04:42:56 UTC
In the other words, key-press-event and key-release-event should have lower priority than input method, which can simply avoid all similar problem.
Comment 17 Milan Bouchet-Valat 2012-04-18 08:27:24 UTC
(In reply to comment #15)
> For this case the problem is in ui/viewSelector.js around line 134, it use
> key-press-event and process KEY_Return, so input method cannot work correctly.
Ah, this is an interesting information. Are you able to make input methods work when you remove these lines?
Comment 18 Weng Xuetian 2012-04-18 09:02:33 UTC
(In reply to comment #17)
> (In reply to comment #15)
> > For this case the problem is in ui/viewSelector.js around line 134, it use
> > key-press-event and process KEY_Return, so input method cannot work correctly.
> Ah, this is an interesting information. Are you able to make input methods work
> when you remove these lines?

Yes, but the problem is not only limited to KEY_Return.

Actually other key processed in this file (direction key, for example) is also used by many input method, but it's not commonly used, so seems nobody mention this yet. That's said, Every Keyboard event, should be passed to input method first.

Actually Qt provides a different interface for im module, which is seem to use X11 Event filter, which make sure Key event is passed to input method, seems because of this Qt application rarely meet similar problem.
Comment 19 Milan Bouchet-Valat 2012-04-18 09:14:06 UTC
(In reply to comment #18)
> Yes, but the problem is not only limited to KEY_Return.
So I guess the question is: can you identify the place where this could be fixed for the general case?
Comment 20 Weng Xuetian 2012-04-18 09:31:05 UTC
(In reply to comment #19)
> (In reply to comment #18)
> > Yes, but the problem is not only limited to KEY_Return.
> So I guess the question is: can you identify the place where this could be
> fixed for the general case?

I'm not familiar with the internal implementation of gnome-shell or clutter, but as far as I check.. seems in st?

maybe st-entry or st-im-text, I'm not sure.
Comment 21 Weng Xuetian 2012-05-16 07:06:54 UTC
This is a duplication of 658325
Comment 22 Milan Bouchet-Valat 2012-05-16 09:27:22 UTC

*** This bug has been marked as a duplicate of bug 658325 ***