Bug 118862 - accents dead keys do not work
Summary: accents dead keys do not work
Status: RESOLVED FIXED
Alias: None
Product: ktouch
Classification: Applications
Component: general (show other bugs)
Version: 1.5
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Haavard Froeiland
URL:
Keywords:
: 107195 111849 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-22 15:05 UTC by Alberto Casas
Modified: 2007-03-02 16:10 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Casas 2005-12-22 15:05:53 UTC
Version:           1.5 (using KDE 3.4.2 Level "b" , SUSE 10.0)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15.7-default

With Spanish keyboard I can't write the accents. When I type the accent, the cursor advances one position, like this:
´a,´e,´i not like á, é, í. It only happens with ktouch. The character ñ works fine.

Thank you very much.
Comment 1 Thiago Macieira 2005-12-22 15:12:43 UTC
I cannot reproduce. Dead-key accented letters are working fine for me.

KDE 3.5 r487700
Comment 2 Andreas Nicolai 2006-04-05 07:05:34 UTC
Confirmed, I cannot use dead keys either. This seems to be a KDE setting though, for instance I cannot use dead keys in this editor field here as well. If I open Kate they work fine.

Can anyone explain that to me?
Comment 3 Jose Troncoso 2006-04-08 12:14:56 UTC
I have exactly the same problem: I can't write the accented vowels when doing training. Otherwise, I can write them OK, even when using KTouch to edit a lecture. I was going to file a new bug when I came across this one.

KTouch 1.5.1, KDE 3.5.2, Kubuntu 6.06 Dapper Drake, Linux (i686) release 2.6.15-20-386.
Comment 4 Jose Troncoso 2006-04-09 14:04:52 UTC
After all, it might not be a KTouch bug. I took Ktouch 1.4 from the kdeedu source package for Ubuntu Breezy (kdeedu_3.4.3.orig.tar.gz), where this problem doesn't show, and compiled it under Kubuntu 6.06 Dapper Drake with KDE 3.5.2, and the problem is still there. So I guess the bug is in a KDE library used by KTouch.

KTouch 1.5.1 / KTouch 1.4, KDE 3.5.2, Kubuntu 6.06 Dapper Drake, Linux (i686) release 2.6.15-20-386.
Comment 5 Andreas Nicolai 2006-04-11 20:46:55 UTC
*** Bug 107195 has been marked as a duplicate of this bug. ***
Comment 6 Andreas Nicolai 2006-04-11 20:50:25 UTC
*** Bug 111849 has been marked as a duplicate of this bug. ***
Comment 7 Andreas Nicolai 2006-04-14 04:13:10 UTC
Ok, I found the culprit. It's QT 3.3.4 on certain distros in combination with a wrong keyboard layout.

1. QT 3.3.4 with KDE 3.4.2 with an english keyboard : nope
2. QT 3.3.4 with KDE 3.4.2 with a german keyboard (variant deadkeys) : nope
3. QT 3.3.4 with KDE 3.5.2 with english keyboard : nope
4. QT 3.3.4 with KDE 3.5.2 with german keyboard (variant deadkeys) : nope
5. QT 3.3.6 with KDE 3.5.2 with english keyboard : nope
6. QT 3.3.6 with KDE 3.5.2 with german keyboard (variant deadkeys) : YES!!!!

So, after manually downloading QT 3.3.6 from Trolltechs webpage (there is a link to older releases), and compiling it on my computer, then downloading konstruct and compiling a new KDE 3.5.2 release, and then changing my keyboard layout to "german with deadkeys" I finally got it to work.

So, that's definitely not a bug in KTouch, so I'm closing this request. Please check out your distributions download servers and look for RPMs for QT 3.3.6 and new KDE rpms.

Andreas
Comment 8 Sacoo 2006-04-21 14:57:52 UTC
I'm working in a KDE 3.5.2 with the libqt3-mt package version 3.3..6-1.
Everything on a Debian Etch system.
My default language is the Catalan (with same keyboard than the Spanish) and the problem now is slightly different:

For àèò I can see `a`e`o
For áéíóú I what it prints is aeiou

So I cannot work in any lesson greater than 4.
Can you reopen the bug?
Comment 9 Andreas Nicolai 2006-04-21 19:12:21 UTC
It seems we need a QT independent resolution for this problem, waiting for the switch to QT4 may be too long for many users, so let's reopen this as a wish for a different key event function...
Comment 10 Thiago Macieira 2006-04-24 09:23:49 UTC
I still cannot reproduce the problem. Dead keys work fine for me, using Qt 3.3.6. They have been working fine for me for the past 6 or 7 years, ever since I switched to Linux. (The only program that would sometimes complain was Emacs)

The program should not be getting dead-key events.

Make sure dead-keys work in another program like, for instance, typing here in this text edit in Bugzilla. If they don't work, then the bug isn't in ktouch or Qt or KDE: it's your system configuration.
Comment 11 Sacoo 2006-04-24 17:00:15 UTC
Hello to all, 
Thanks to reopen this bug, well, I tried to reproduce this behavior in any other application in my system, both kde or not (kwrite, konsole, firefox, thundervird, and any other usual application for a normal user) and the problem doesn't appear anywhere else.
My guess would be, ... since ktouch is the only one of this programs replacing the default keyb scheme of kde, could be the problem in that replacement part??
I was trying to understand the es.keyboard file to look for a problem, but couldn't figure it.

Bye
Comment 12 Andreas Nicolai 2006-04-24 17:18:57 UTC
A short clarification: KTouch uses the Keyboard schemes only for the display of the keyboard and the highlighting of the keys to press.

Internally, we simply "listen" to the keyPressEvent() function, that we reimplement in the main program window. Now depending on your keyboard settings in KDE (or your X-Windows keyboard settings), the QT lib generates a keyPressEvent when a dead key is pressed or not. 

For example, if you have an english keyboard layout setup, the circonflex character ^ is not considered a dead-key and therefore KTouch gets a keyPressEvent with a ^ character. However, when you change your system keyboard layout to german (e.g. using the YAST or SAX tool in SuSE distros), the keypress event is only generated _after_ you press the next key, for instance an o. So in this case KTouch gets only one keypress event and receives the character ô.

So, this is really a framework/QT/KDE/X11 setting issue and unless we change  the way we find out about key presses (meaning we don't reimplement keyPressEvent but do something different), there is not much we can do about this problem.

If I find the time I'll try to "fake" the behavior of a QLineEdit and the way, the character is read there... but that's gonna be a bit more work.
Comment 13 Sacoo 2006-05-10 21:45:09 UTC
Hello, I am the user with alias sacoo, I have seen many people with these problem around the web, and it happens to me with all my three computer (all of them with Debian), since the bug is in WISHLIST stat doesn't seem worth the effort, so, my request would be to put the bug in NORMAL state.
Currently my only option to go further level than 4 is to change language to english :(
Comment 14 Thiago Macieira 2006-05-17 17:25:01 UTC
In the mean time I have found out why Emacs complained about dead-keys: my LANG wasn't set right.
Comment 15 Andreas Nicolai 2006-05-17 19:17:40 UTC
For those of you, where the dead-keys are working, could you maybe post the relevant X keyboard configuration, KDE configuration and/or other relevant configuration properties that would shed some light into this problem?

Comment 16 Alberto Casas 2007-02-24 18:36:44 UTC
I have the same problem in KDE 3.5.6 ktouch 1.6; suse 10.1; qt3.3.7 
I'm trying to fix it since KDE 3.4.1 Ktouch 1.3; suse 10.0; qt3.3.4. 

It worked fine for me in suse 9.3.

xkb options: enabled,I tested many things..., and I have these problem ONLY with ktouch, I mean everythig seems well configured so the accents work well in the other programs. I don't know if it's related but I use scim. 

A lot of people (i.e.):

http://bugs.kde.org/show_bug.cgi?id=134371
http://bugs.kde.org/show_bug.cgi?id=118862
https://launchpad.net/ubuntu/+source/kdeedu/+bug/56355
https://launchpad.net/ubuntu/+source/kdeedu/+bug/36884
http://www.kdehispano.org/node/2420
http://lists.opensuse.org/opensuse-es/2006-03/msg00299.html
http://www.ubuntu-es.org/index.php?q=node/18629

have the same problem, but no answers. It's a pity because it's
a great program, but useless in Spanish without dead keys.

Any hint?
Thanks.
Comment 17 Haavard Froeiland 2007-02-25 01:34:15 UTC
This should be fixed now. Please let me know if it does not work.
Comment 18 Alberto Casas 2007-02-27 22:39:57 UTC
I confirm that dead keys are not working in my ktouch installation 
(I tried it in my two computers). 
Probably it will be fixed in KDE 4. However, in my opinion, until 
this is tested, this bug should not be tagged as resolved.

Kind regards
Comment 19 Haavard Froeiland 2007-02-27 23:11:13 UTC
If you want to test it, you have to test the code from the svn repository (kde4). 
Comment 20 Haavard Froeiland 2007-03-01 19:50:53 UTC
I have committed to the 3.5 branch as well now.
Comment 21 Alberto Casas 2007-03-02 16:10:57 UTC
I have tested it and it works for me. Fixed. It's a great program.
Thank you very much to everybody.