You are not logged in.

#1 2007-07-31 20:47:00

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

[partially solved] scim works only with f'fox - or just missing links?

Hi everybody!

I got scim working on my desktop-pc and now want to use it on my laptop, too.
But just 'copying' my .xinitrc's and scim-config dialogs' adjustments failed.

My DE is kde and, scim lauches up successfully in the kde-panel at startx. It can't be activated by ctrl+space though. But curiously it works only within firefox so far (so I still have got hopes). Another strange thing is, when starting at startx, left-clicking on the panel-icon shows the menu with input-methods, after ending and restarting scim manually there's no such menu; scim even doesn't work with firefox anymore.

I don't think it's an issue with laptop's keyboard, checked out some necessary keys with xev; just had to replace 'ALT' --> 'META' for some scim-shortcuts.

BTW, both systems are utf8.

Here are my config files:

#!/bin/sh
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
...
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
scim -d
# scim -d socket -c socket -d  # no effect
exec startkde

/etc/scim/global

/SupportedUnicodeLocales = en_US.UTF-8,de_DE.UTF-8,ko_KR.UTF-8,zh_CN.UTF-8,zh_TW.UTF-8
/DefaultPanelProgram = scim-panel-gtk
/DefaultConfigModule = simple
/DefaultSocketFrontEndAddress = local:/tmp/scim-socket-frontend
/DefaultSocketIMEngineAddress = local:/tmp/scim-socket-frontend
/DefaultSocketConfigAddress = local:/tmp/scim-socket-frontend
/DefaultPanelSocketAddress = local:/tmp/scim-panel-socket
/DefaultHelperManagerSocketAddress = local:/tmp/scim-helper-manager-socket
/DefaultSocketTimeout = 5000

~/.scim/global

/DefaultConfigModule = kconfig
/DefaultKeyboardLayout = German
/DefaultPanelProgram = /opt/kde/bin/scim-panel-kde
/DisabledIMEngineFactories = ........
/SupportedUnicodeLocales = en_US.UTF-8,de_DE.UTF-8,ko_KR.UTF-8,zh_CN.UTF-8,zh_TW.UTF-8

Anyhow, the locale en_US.UTF-8 should be sufficient, as on my desktop-pc.

thx

Last edited by nexus7 (2007-08-11 21:37:01)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#2 2007-08-01 21:16:37

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: [partially solved] scim works only with f'fox - or just missing links?

well, seems to be mainly a problem with kde sad
i've been testing scim with other DEs and some apps more successfully:

e17: any browser, urxvt yes, rxvt no, any texteditor
xfce4: everything seems to run, except the terminals
gnome: any browser, no terminals, any texteditor

scim works fine with ooo-writer in any DE (except kde).

somewhere here i read s.th. about 'scim-bridge', a special kind of 'wrapper' for qt<-->gtk. did anybody manage to run it?
Though e17 and xfce are quite cool, i really prefer kde~


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#3 2007-08-02 02:28:00

bsdson.tw
Member
From: Taiwan
Registered: 2005-05-06
Posts: 161

Re: [partially solved] scim works only with f'fox - or just missing links?

Have you ever tried "SKIM" yet?

I have "SCIM" working perfectly in XFCE4.

Offline

#4 2007-08-02 12:18:44

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: [partially solved] scim works only with f'fox - or just missing links?

您好!

yes, tried skim before but, if scim doesn't work skim won't either; and as skim doesn't work properly on both machines I'll stay with scim now.

The best results are with xfce4, too. However scim doens't go with the terminals (rxvt, urxvt, mlterm).

PS: grmpf, after so many times switching those DEs, i can't start "xfce4-session" anymore~
(_X11TransSocketINETConnect() can't get address for host:6000 (...) gtk-warning: cannot open display)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#5 2007-08-02 18:39:31

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: [partially solved] scim works only with f'fox - or just missing links?

Hello.
checked out openbox (quite dark in here wink ) in hope of finding a DE where everything works fine, but sad
However, when shutting down ob, there are some mere messages left on tty, which would disappear by scrolling up with an other, complex DE.

First of all, I wondered about some kdeinit exiting messages at the very end before the prompt.
But several lines before you can see this:

(...)
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.7

terminate called after throwing an instance of 'std::logic_error'
  what(): basic_string::_S_contruct NULL not valid
Launching a SCIM daemon with Socket FrontEnd...
Loading simpleConfig module...
Creating backend...
Loading socket Frentend module...
Starting SCIM as daemon...
GTK Panel of SCIM 1.4.7

Can't locate utf8.pm in @INC (@INC contains: /usr/lib/urxvt/ /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8...
/usr/lib/perl5/this... /usr/lib/perl5/that... [i]several lines...[/i] .) at /usr/lib/urxvt/urxvt.pm line 690.
BEGIN failed--compilation aborted at -e line 1.
urxvt: unable to initialize perl-interpreter, continuing without.
SetGrabKeysState - disabled
SetGrabKeysState - enabled
SetGrabKeysState - disabled
SetGrabKeysState - enabled
(...)

Interestingly I remember that output "Can't locate utf8.pm..." showing up in some of those xscreensavers, like starwars, apple and others (where you can read the kernel's version ao). That is since my recent pacman -Syu, so maybe I missed to relink something? If so, please tell me how, and from where to where.


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#6 2007-08-02 19:51:34

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [partially solved] scim works only with f'fox - or just missing links?

try reinstalling perl

Offline

#7 2007-08-02 22:08:56

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: [partially solved] scim works only with f'fox - or just missing links?

Did it and rebooted.
S.th. got repaired, as I could see at that when running those mentioned screensavers (fliptext, starwars...).
but that scim-crap still doesn't get activated, grrr~

thx anyway.

EDIT: ...and checked that perl is symlinked against current correctly.

Last edited by nexus7 (2007-08-03 17:06:03)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#8 2007-08-03 08:16:40

bsdson.tw
Member
From: Taiwan
Registered: 2005-05-06
Posts: 161

Re: [partially solved] scim works only with f'fox - or just missing links?

你好,

I have never used these terminal programs you mentioned above.

Currently, I use Terminal from http://terminal.os-cillation.de
which comes with XFCE, and can be installed by the package name "terminal"
(the current version is 0.2.6-4)

It is great! And works fine in zh_TW.utf8.
How about trying it and to see if you can uso SCIM with it.

BR,
bsdson.tw

我還可以提供什麼資訊給你參考嗎?

Offline

#9 2007-08-03 08:30:31

jerek
Member
Registered: 2007-06-25
Posts: 16

Re: [partially solved] scim works only with f'fox - or just missing links?

are you using kdemod?
since you specified "export QT_IM_MODULE=scim" you'll need a qt version where the qt_immodule patch has been applied (qt-enhanced from kdemod repos has it). additionally you'll need scim-qtimm (not in repos).

Here is a PKGBUILD for scim-qtimm:

pkgname=scim-qtimm
pkgver=0.9.4
pkgrel=1
pkgdesc="SCIM plugin for QT"
arch=("i686" "x86_64")
depends=('scim' 'qt-enhanced')
url="http://www.scim-im.org/projects/scim_qtimm"
license=('GPL')
source=(http://downloads.sourceforge.net/scim/$pkgname-$pkgver.tar.bz2)
md5sums=('a58e8e7c18c27a20b3e9d953b1c75d94')

build() {
     cd $startdir/src/$pkgname-$pkgver
        ./configure
        make || return 1
        make DESTDIR=$startdir/pkg install
}

not sure if it will help with your gtk apps, but you could try setting LC_CTYPE to the language you want to use (ja_JP.UTF-8 for me).


Cheers

Offline

#10 2007-08-03 16:20:50

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: [partially solved] scim works only with f'fox - or just missing links?

@jerek:
couldn't make a pkgbuild because of missing dependencies, what is "qt-enhanced"?? Seems to be some kdemod related stuff. - I don't have kdemod installed. And googleing shows at the first glance as if it would cause lots of trouble~ (so I prefer not to use it.)

@bsdson.tw:
多谢! ((Still have to configure my big5 wink ))
Installed terminal, and when lauching it scim gets started. So there's some progress smile

But -- my inputs aren't accepted~ Means, I can see what I'm typing in but then the syllable vanishes.
I started terminal via urxvt and watched the messages while inputing into terminal. It may be of some interest, that before terminal shows up (it starts simultaniously with scim then) about hundred lines

(terminal: >PID<):GtK-Warning: **: Icon cache '/usr/share/icons/hicolor/icon-theme.cache' is invalid
bad image index

appear but, finally after

...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.7

both show up.

After the input of a Korean or Chinese syllables the following appears (in urxvt):

(terminal: >same PID<: Vte-WARNING **: error (illegal or uncomplete multi-byte- or wide character) while converting data for child, stopped

((translated from German, hope it's understandable))
Why that, my system is utf8, so it should accept two byte characters...?

Last edited by nexus7 (2007-08-03 16:41:14)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#11 2007-08-03 16:56:40

jerek
Member
Registered: 2007-06-25
Posts: 16

Re: [partially solved] scim works only with f'fox - or just missing links?

nexus7 wrote:

@jerek:
couldn't make a pkgbuild because of missing dependencies, what is "qt-enhanced"?? Seems to be some kdemod related stuff. - I don't have kdemod installed. And googleing shows at the first glance as if it would cause lots of trouble~ (so I prefer not to use it.)

qt-enhanced replaces the normal qt package, since it just includes a few more patches .. check http://kdemod.ath.cx/svn/trunk/qt-enhanced/ to see which ones.
if you don't want to use it, you'll have to change "export QT_IM_MODULE=scim" to xim instead to get support for qt apps. I had lots of trouble with xim, it crashed all the time leaving me with applications that didn't accept any keyboard input. Hope it works better for you.

Offline

#12 2007-08-03 22:42:08

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: [partially solved] scim works only with f'fox - or just missing links?

thx jerek, switching to QT_IM_MODULE=xim in .xinitrc (again) unfortunately didn't change anything; I tried that before as any combination of scim, xim or even commenting them out (yes, sb. wrote he was able to run scim without any *im, I wonder how?). And I still won't push another door open and struggle with kdemod only because of that damn input-methods, though it is quite important for me! I'm still convinced there must another solution.
bsdson.tw's hint with "terminal" pushed me on. And there's been some more progress since then smile
Because of that 'vanishing multi-byte characters' I only had to change LC_CTYPE from de_DE to de_DE.utf8 in /etc/profile.

The warnings at the start of terminal/scim still remain; actually i forgot the /opt/kde/-line:

(terminal: >PID<):GtK-Warning: **: Icon cache '/usr/share/icons/hicolor/icon-theme.cache' is invalid
bad image index

(terminal: >PID<):GtK-Warning: **: Icon cache '/opt/kde/share/icons/hicolor/icon-theme.cache' is invalid
bad image index

Am I missing some gtk-stuff or got wrong gtk-configs?

So far no kde/qt-apps would work with scim; and meanwhile I really got despaired because I couldn't find any latex-capable texteditor to work with it - not kate, kile, vi, x/emacs, lyx... - until I got winefish installed via PKGBUILD, hurray!
Now I got at least one cooperating terminal, editor, browser, and even swriter! smile

EDIT: tried now texmaker-PKGBUILD, too -- still no dice~
Well, doesn't matter, got at least winefish working w/ scim, and ooo (now in any DE), terminal (including vi and mc-utf8) and firefox as a temporary solution. Better than nothing.
And, still don't know how to handle this icon cache-thing, but it seems not impair that input-stuff - the related apps just take a couple of seconds longer to start.

Last edited by nexus7 (2007-08-15 15:10:19)


we are Arch.
you will be assimilated!
resistance is futile!

Offline

Board footer

Powered by FluxBB