Bug 725125

Summary: Fedora 15 LXDE: Canadian French KB layout - Dead keys not working in QT app.
Product: [Fedora] Fedora Reporter: nomnex <nomnex>
Component: ibusAssignee: fujiwara <tfujiwar>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: i18n-bugs, shawn.p.huang, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-26 04:53:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
French input in QT apps using the "ca" KB layout
none
dead key with puddletag none

Description nomnex 2011-07-22 23:36:51 UTC
Created attachment 514803 [details]
French input in QT apps using the "ca" KB layout

Description of problem:

Configuration: Linux, Fedora 15 LXDE. Language "en_US". Hardware keyboard (notebook) "jp" (default). Additional keyboard layout "ca"

I use a the "ca" keyboard layout to type French language (iBus). The dead keys "^" "¸" "`" are not recognized in applications using a QT tool kit [Anki, Puddletag, LyX, Scribus, etc.]

"ç" returns "¸c"
"à" returns "`a"
"è" returns "`e"
"ê" returns "^e"

Version-Release number of selected component (if applicable):

IBus 1.3.99.20110714

How reproducible:

Always

Steps to Reproduce:
1. Set the "ca" input and keyboard layout in ibus [LXDE DE "en_US"]
2. Open a QT application (e.g. Anki)
3. Type some letters with accents using the dead key
  
Actual results:

"ç" returns "¸c"
"à" returns "`a"
"è" returns "`e"
"ê" returns "^e"

Expected results:

"ç"
"à"
"è"
"ê"

Additional info:

Canadian French layout is very similar to a JP/US KB layout. It relies mostly on dead keys to input the accents.

Swiss-French layout has some keys inversion, and most of the accents are assigned to letters.

Side note:

I had a similar problem on Fedora 13 with the Swiss-French keyboard layout, see: https://bugzilla.redhat.com/show_bug.cgi?id=658090. The problem was only the circumflex accent "^e". The problem has been resolved.

Since I experienced a similar problem on F-15, using a "ca" KB layout this time, I have opened 2 bugs (722911) and upstream QT ( https://bugreports.qt.nokia.com//browse/QTBUG-20428). Kevin Kofler comment2, bug 722911: "These bugs are usually caused by input methods" suggests it's a ibus issue and not a QT problem.

Thank you.

Comment 1 fujiwara 2011-07-25 03:15:59 UTC
Created attachment 514958 [details]
dead key with puddletag

Attached the dead key in my env.

Comment 2 fujiwara 2011-07-25 03:18:36 UTC
(In reply to comment #0)
> Configuration: Linux, Fedora 15 LXDE. Language "en_US". Hardware keyboard
> (notebook) "jp" (default). Additional keyboard layout "ca"

How do you configure the dead key for LXDE?
E.g. I use 'gnome-control-center region' on GNOME and systemsettings on KDE.
Also did you install ibus-qt which is required for qt applications?

Comment 3 nomnex 2011-07-26 04:15:00 UTC
(In reply to comment #2)
 
> How do you configure the dead key for LXDE?
> E.g. I use 'gnome-control-center region' on GNOME and systemsettings on KDE.
> Also did you install ibus-qt which is required for qt applications?

Thank you very much for the print-screen and the ibus-qt plug-in hints!

ibus is part of the default LXDE Spin. when I installed QT applications from the F-repo, the QT-4 config module, and other QT lib came along, as part of the dependencies. I was assuming, somehow, ibus had automatically updated its dependencies in the same fashion, and that something was broken. If it was not your answer (comment #2), I would be still be wandering what/where to look for. It was confusing because some KB layout with dead keys were working on QT apps (e.g. the Swiss-French KB) while the CA KB wasn't.

You relieved me from a massive pain of 3 weeks, setting several language inputs. Thanks again for all your comments.

To answer the first part of your question: I don't configure dead key on LXDE. There is no equivalent as the "gnome-control-center" region on Gnome, or systemsettings on KDE. When I need to switch between different KB layouts, I look at "/usr/share/X11/xkb/base" for the options, and I modify the file:

/etc/xdg/lxsession/LXDE/autostart

with a setxkbmap command, in the following line before @lxpanel --profile LXDE (e.g.):

@setxkbmap -option grp:switch, grp:rctrl_rshift_toggle jp,ca

Comment 4 nomnex 2011-07-26 04:20:49 UTC
Installing ibus-qt plug-in solved the problem of dead key accents not recognized with a KB CA layout, in QT applications.

Comment 5 fujiwara 2011-07-26 04:53:51 UTC
OK, thanks.