Bug 924314

Summary: iBus failed to switch between pinyin and UK English in Emacs.
Product: [Fedora] Fedora Reporter: Shin Yu <yokyoh>
Component: ibusAssignee: fujiwara <tfujiwar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: i18n-bugs, shawn.p.huang, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-25 08:19:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Shin Yu 2013-03-21 14:30:54 UTC
Description of problem:
While using Emacs, ibus stops switching between Pinyin (ibus-pinyin, ibuslibpinyin) and a UK keyboard. Once Pinyin mode has been turned on, it cannot be switched off. And the emacs will keep accepting input as pinyin. 

The same problem also exists between Japanese (ibus-anthy) and UK English input method.

The problem can disappear if I switch to US English. But it is not an acceptable workaround because my keyboard is UK layout.

While seeing the problem every time in Emacs, I believe I occasionally see it with google-chrome browser, too. And this has made me decide to put it as a defeat of ibus rather than emacs.

Version-Release number of selected component (if applicable):
ibus: 1.5.1-2.fc18
ibus-pinyin: 1.5.0-1.fc18
emacs : 24.2-6.fc18

How reproducible:

Reproducible every time with Emacs.

Occasional on Google-chrome.

Steps to Reproduce:
1. Login to Gnome 3 desktop session.
2. Regardless emacs is open or not. Switch to "Chinese (Intelligent Pinyin)" or Japanese (Anthy) from the input method menu.
2. Open emacs if it hasn't been opened yet. Type in some characters using pinyin.
3. Click on the input method menu again, select UK English.
  
Actual results:
Observe emacs is still accepting pinyin, while the menu is showing "en" icon, and other programs should be in english mode alrady.

Expected results:
Emacs will accept input as english when input method has been switched to UK English.

Additional info:
After Emacs get stuck with the pinyin mode, a workaround to turn it off is to switch to US Keyboard instead of UK.

With gedit open, and focused after switching to UK English from pinyin, Emacs will act as if pinyin mode has been turned off and allowing input with English. But the problem comes back as soon as gedit is closed. So it may be better to keep gedit closed while verifying this issue.

Comment 1 fujiwara 2013-03-22 08:31:34 UTC
If you run ibus-setup, ibus does not provide the simple UK layout.
I guess you use gnome-shell and gnome-shell will be fixed in fedora 19.
https://bugzilla.gnome.org/show_bug.cgi?id=695867

If you need UK layout, I can add it in ibus. Otherwise this will be marked as fixed in f19 gnome-shell.

Comment 2 Shin Yu 2013-03-22 10:39:16 UTC
(In reply to comment #1)
> If you run ibus-setup, ibus does not provide the simple UK layout.
> I guess you use gnome-shell and gnome-shell will be fixed in fedora 19.
> https://bugzilla.gnome.org/show_bug.cgi?id=695867

Yes, I am running gnome-shell at the moment. And thanks for the link, I think that's the same problem. I guess Emacs just behaves the same as xterm, konsole as in the other report.

> If you need UK layout, I can add it in ibus. Otherwise this will be marked
> as fixed in f19 gnome-shell.

How likely will it be fixed before f19? If you could add it at the moment, it'd make things much easier here. But don't worry, since it is a known problem, I am happy to live with it until next release.

Xing.

Comment 3 Shin Yu 2013-03-22 12:07:24 UTC
(In reply to comment #1)
> If you run ibus-setup, ibus does not provide the simple UK layout.
> I guess you use gnome-shell and gnome-shell will be fixed in fedora 19.
> https://bugzilla.gnome.org/show_bug.cgi?id=695867

Inspired by the link above, I found ibus actual support a layout called "UK, extended WinKeys". It solves my problem - now I have a UK layout and can be switched between pinyin and japanese mode in ibus.  I haven't noticed any difference between the normal UK English and the one with extended WinKeys mode. So I am perfectly happy about this workaround at the moment. 

Shall I change the status to closed/dup?

Comment 4 fujiwara 2013-03-25 08:19:22 UTC
Closing this bug If you're fine with gb(extd).