Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131644 - app-i18n/scim enabled - deadkeys in Qt 3 & 4 & KDE apps don't work.
Summary: app-i18n/scim enabled - deadkeys in Qt 3 & 4 & KDE apps don't work.
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-29 02:00 UTC by Luká Polívka
Modified: 2012-03-27 15:41 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luká Polívka 2006-04-29 02:00:16 UTC
The bug doesn't seem to depend on any SCIM, Qt, GCC or X version.

I have emerged SCIM like this (I didn't really care for input method in Qt):
app-i18n/scim-1.4.4  USE="gtk -doc -immqt -immqt-bc"

And export these variables:
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"

I do not export QT_IM_MODULE="scim" (as I was not interested in input method for Qt).

When I press a key, which is supposed to be "dead" (ˇ ' ˚) in cs qwerty layout, the symbol is immediately written -- it does not behave like deadkey.
Comment 1 Pedro Morales 2006-06-26 02:39:37 UTC
I'm experiencing a similar behaviour, but only when QT_IM_MODULE=scim is used.  When that variable is not set, qt gets the accents as is supposed to.
I'm using a spanish keyboard with layout "es" and the following versions and useflags.

app-i18n/scim-1.4.4  USE="gtk immqt-bc -doc -immqt"
app-i18n/scim-anthy-1.0.0
app-i18n/skim-1.4.5
app-i18n/scim-qtimm-0.9.4  USE="nls -debug"

As a side note, I'm almost sure this was working about a week ago. The only thing I remember having upgraded in that period that could be related to this is xorg-server.

Anything else you ned, please ask.
Comment 2 email_deleted_GqKU 2006-08-05 13:59:45 UTC
(In reply to comment #1)

Could you try to emerge app-i18n/scim again (no need to emerge the other related apps again), and then restart your X server?
Comment 3 Luká Polívka 2006-09-18 11:32:54 UTC
(In reply to comment #2)
> (In reply to comment #1)
> 
> Could you try to emerge app-i18n/scim again (no need to emerge the other
> related apps again), and then restart your X server?
> 

No luck. Maybe meddling with scim-qtimm and USE=immqt(-bc) could make it work again, but I'd rather not do it.
Comment 4 Pedro Morales 2006-09-18 19:10:14 UTC
I think I found the fix for this.

In my case the deadkeys issue solved enabling in the IMEngines the "Keyboard" one. I disabled it because it annoyed me having to change the first time I tried to type japanese, but I noticed that after disabling it I could not use deadkeys in QT applications.

Maybe this will work for you.
Comment 5 Luká Polívka 2006-09-18 23:46:10 UTC
I had all engines enabled (English, Japanese, Other). I've tried disabling English & Other and dead keys still don't work.
Comment 6 email_deleted_GqKU 2006-09-19 06:01:47 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > 
> > Could you try to emerge app-i18n/scim again (no need to emerge the other
> > related apps again), and then restart your X server?
> > 
> 
> No luck.
> 


Yeah, in fact, it seemed to work for me, but, after a reboot, the deadkeys stopped working again, even after having emerged SCIM again... so I have no idea what did I do for it to work properly until I rebooted... (and I did correctly test that both SCIM and the deadkeys were working...).


(In reply to comment #3)
> Maybe meddling with scim-qtimm and USE=immqt(-bc) could make it work
> again, but I'd rather not do it.
>


I just changed the QT and SCIM USE flags from immqt-bc, to immqt, recompiled QT, SCIM, every packages installed depending on QT, and restarted X, but the deadkeys still do not work in QT apps.


Finally, though I already tested multiple times before, I stopped X, removed my ~/.scim/ directory, and restarted X... deadkeys were working, with the default configuration. I configured everything as before, restarted X, and it stopped working.

I stopped X, removed my ~/.scim/ directory again, and restarted X. As before, it worked with the default configuration. I configured everything beside the "Panel program" and "Config module" to use, restarted X, and it still worked. Then I did the same, after having changed the panel program to "scim-panel-kde", and then after having changed the config module to "kconfig"... and it still worked...

I triple checked, and everything is configured just as before.

I rebooted, it still works. I hope it will last, though I have no idea what was the source of the problem...

Here is my current configuration:


#####[ Versions and USE flags ]#################################


x11-libs/qt-3.3.6-r1 USE="cups -debug -doc -examples -firebird gif immqt -immqt-bc ipv6 mysql -nas -nis -odbc opengl -postgres -sqlite -xinerama"
kde-base/kdelibs-3.5.2-r6 USE="-acl alsa -arts cups -debug -doc -jpeg2k kdeenablefinal -kdehiddenvisibility kerberos -legacyssl -openexr spell ssl tiff -xinerama -zeroconf"
app-i18n/scim-1.4.4 USE="-doc gtk immqt -immqt-bc"
app-i18n/scim-qtimm-0.9.4 USE="-debug"
app-i18n/skim-1.4.5
app-i18n/scim-anthy-1.2.0 USE="nls"
app-i18n/anthy-7900 USE="-emacs ucs4"

(QT, SCIM -and associated packages-, and every packages depending on QT were re-emerged, after setting the qtimm USE flag)


#####[ `emerge --info` ]########################################


Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.4
Last Sync: Tue, 12 Sep 2006 17:29:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.proxad.net/mirrors/ftp.gentoo.org/ http://gentoo.mirror.sdv.fr http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.easynet.nl/mirror/gentoo/"
LANG="en_US"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa apache2 asf audiofile avi berkdb bitmap-fonts bzip2 bzlib cdr cjk cli clibpdf crypt ctype cups curl dba dbx dga directfb dlloader dri dts dvd dvdr elibc_glibc exif fbcon ffmpeg flac flash foomaticdb freewnn ftp gd gdbm gif gmp gnutls gpm gs gtk gtk2 iconv imagemagick imlib innodb input_devices_keyboard input_devices_mouse ipv6 isdnlog java jikes jpeg kde kdeenablefinal kerberos kernel_linux krb4 ldap libcaca libg++ libwww linguas_en m17n-lib mad maildir matroska memlimit mhash mikmod mime ming mmx mng mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss pam pcre pdflib perl php pic png posix ppds pppd python qt qt3 qt4 quicktime readline reflection sasl scanner sdl session simplexml sndfile soap sockets socks5 speex spell spl sse ssl svg svga tcltk tcpd theora tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd vhosts video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_vesa video_cards_vga vorbis win32codecs wmf wxwindows xml xml2 xmms xorg xosd xpm xprint xsl xv xvid zlib"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


#####[ `locale`, under the user using SCIM ]####################


$ locale
LANG=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8


#####[ SCIM ]###################################################


(From a clean profile -after having removed the ~/.scim/ directory)

Keyboard Layout: "English (US)"
Embed Preedit String into Client Window (OnTheSpot Style): unchecked
Share input method among all applications: unchecked

Panel Program: "scim-panel-kde"
Config Module: "kconfig"
Supported Unicode Locales: "en_US.UTF-8"

Start skim automatically when KDE starts: checked
XIM Settings: On the Spot: unchecked
XIM Settings: Dynamic Event Flow: checked

#####[ qtconfig ]###############################################


"Interface" tab: XIM Input Style: Over The Spot

(then, File => Save)


#####[ ~/.xprofile (loaded by my ~/.xinitrc) ]##################

export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"

(and the values are correctly set under X)


################################################################


So for now, with this configuration, it works without any problem (QT and GTK apps, both deadkeys, and, in my case, Japanese input)... but this is the exact same configuration as before...

I really have no time to spent on this thing, so as the deadkeys now work for me, in QT apps, without having to deactivate SCIM, I won't test other things... (hoping nothing will break after some time :/) but if it really seems something is weird, between SCIM and QT apps, under some cases...

Comment 7 Charles Welton 2009-02-04 20:08:18 UTC
I had this same problem with the abnt2 keyboard layout.
Using the last comment from Mathieu Bonnet, I figured out why this happens with Qt-based apps. This is probably a SCIM bug, anyway.

When configuring SCIM, leave the English/Keyboard IMEngine enabled. That is the only way SCIM has to properly use your keyboard layout with deadkeys on Qt apps.

This bug can, now, finally be closed since this is not a Gentoo problem but a SCIM problem.
Comment 8 Adam Purkrt 2009-09-14 22:30:57 UTC
Found this bugreport since I wasn't able to enter any letter with caron (Ncaron, Ecaron etc.) in Opera (which uses qt, in my case qt 4.5.2); i.e. the deadkay for caron wasn't working (interestingly though, the acute worked well).

I found out that I had locale unset, so it defaulted to "C" locale, which was causing the problems. GTK based program worked well though.

I edited /etc/locale.gen and /etc/env.d/02locale to contain:

/etc/locale.gen (just uncomment the following line):
en_US.UTF-8 UTF-8

/etc/env.d/02locale:
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"


and then:

# locale-gen
# env-update
# source /etc/profile

then rebooted and it works fine now

just my 2 cents
Comment 9 Pacho Ramos gentoo-dev 2010-02-16 12:56:08 UTC
Still valid with app-i18n/scim-1.4.9 ?
Comment 10 matthias.grobarek 2010-05-12 17:53:33 UTC
(In reply to comment #9)
> Still valid with app-i18n/scim-1.4.9 ?

Yes, I can confirm that the bug still persists in scim-1.4.9-r1 (with KDE 4.3.5 and Qt 4.6.2). None of the hints here helped me either (locales, English keyboard, resetting SCIM config) so I switched to IBus.
Comment 11 Davide Pesavento gentoo-dev 2011-11-13 14:58:39 UTC
still an issue with more recent qt & kde?
Comment 12 Johannes Huber (RETIRED) gentoo-dev 2012-03-27 15:41:39 UTC
(In reply to comment #11)
> still an issue with more recent qt & kde?

Please give feedback.