My "im-switch" don't work ~~~

歡迎提問 debian desktop 相關問題,何謂 desktop ? 舉凡您日常生活會用到的部份,如上網 ( www 、 bbs ..) 、程式設計、繪圖...等等。 通常以 X Window 環境底下問題為主。

My "im-switch" don't work ~~~

文章Lost-Angel » 週六 1月 27, 2007 2:58 pm

My system is Debian Testing and using the Gnome as Desktop environment (with GDM as display manager). Here used to be all fine on using SCIM with Chewing as my Chinese input method. But after I installed the gcin 1.3.0.1-1 and tried to switch my default input engine from scim to gcin. The whole Chinese input system is down and I can't make them work again. Here is the approaches that I tried and the information that they result in:

$im-switch -l
Your input method setup under en_US locale as below.
=======================================================
The configuration "/home/losang/.xinput.d/en_US" is defined as a link pointing to
scim
This private configuration supersedes the system wide default.
=======================================================
The system wide default is pointed by "/etc/alternatives/xinput-all_ALL" .
xinput-all_ALL - status is manual.
link currently points to scim
scim-immodule - priority 0
scim - priority 0
default - priority 10
none - priority 0
Current `best' version is default.
=======================================================
The available input method configuration files are:
default gcin none scim scim-immodule th-xim
=======================================================

//Perform as Root :
$im-switch -s gcin
No system wide default defined just for locale en_US .
Use "all_ALL" quasi-locale and set IM.
update-alternatives: Cannot find alternative `/etc/X11/xinit/xinput.d/gcin'.

//Perform as normal user :
$im-switch -s gcin
//Nothing happened

//I tried to logout and login at this moment. But there's no any Chinese input method was launched. Then I start to try the following commands :

$gcin
gcin get env LC_CTYPE= LC_ALL= LANG=en_US.UTF-8
gcin will use UTF-8 as the default encoding
load_gtab_list /usr/share/gcin/table/gtab.list
gcin:IMOpenIM 'SCIM' failed. Maybe another XIM server is running.

$pgrep gcin
//No any output message.

//After I tried the commands above. Then I perform these :
$printenv
GTK_IM_MODULE=scim
QT_IM_MODULE=xim
XMODIFIERS=@im=SCIM
//Part of the output...

$locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en_GB:en
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=

//Then I tried to restore the scim but it's also down... @_@
$scim
Smart Common Input Method 1.4.4
Launching a SCIM process with x11...
Loading simple Config module ...
Creating backend ...
Loading x11 FrontEnd module ...
SCIM has exited abnormally.

//Perform as Root :
$im-switch -s scim
No system wide default defined just for locale en_US .
Use "all_ALL" quasi-locale and set IM.
Using `/etc/X11/xinit/xinput.d/scim' to provide `xinput-all_ALL'.

//Perform as normal user :
$im-switch -s scim
//Nothing happened...

$gtk-query-immodules-2.0
"/usr/lib/gtk-2.0/2.4.0/immodules/im-gcin.so"
"gcin" "gcin Input Method" "gcin" "/usr/share/locale" "*"
//Part of the message.

//Perform as Root :
$/usr/share/gcin/script/modify-XIM
Please modify your XIM settings manually
./usr/share/gcin/script/modify-XIM: line 47: cd: /etc/sysconfig: No such file or directory
mv: cannot stat `i18n': No such file or directory
./usr/share/gcin/script/modify-XIM: line 52: i18n.orig.gcin: No such file or directory

Then, I logged out then login again. None of any Chinese Input Method work at all. Could anybody please help me out from this. I really have no idea what's wrong with it. Now, I don't have any Chinese input method to use... >_<
The most beautiful thing we can experience is mysterious.
It is the source of all true art and science.

--- Albert Einstein, 1930
頭像
Lost-Angel
活潑的高中生
活潑的高中生
 
文章: 265
註冊時間: 週二 1月 25, 2005 1:29 am
來自: 臺灣民國高雄縣

文章訪客 » 週六 1月 27, 2007 5:34 pm

gcin 1.3.1 以前 locale 判定有 bug,
請務必 export LC_CTYPE
不管你有沒有 export LANG or LC_ALL

現在 etch 是 gcin 1.3.0.1
sid 的 gcin 1.3.1 無法在 hppa 編譯,所以無法進 etch
因此 etch 短期內是不容易更新 gcin 版本了

先把 ~/.xinput* 幹掉再重新執行 im-swtich 即可
訪客
 

Re: My "im-switch" don't work ~~~

文章訪客 » 週六 1月 27, 2007 5:40 pm

Lost-Angel 寫:update-alternatives: Cannot find alternative `/etc/X11/xinit/xinput.d/gcin'.

gcin 1.3.0.1 沒有定義 all_ALL (bug #400374)
gcin 1.3.1 已修正。

Lost-Angel 寫:gcin:IMOpenIM 'SCIM' failed. Maybe another XIM server is running.

表示系統裡有另一個同樣 XIM name 的 XIM server 執行中,所以 gcin 自動結束

看起來是你的 im-switch 錯亂了,把 ~/.xinput* 移除重來即可
訪客
 

文章Lost-Angel » 週日 1月 28, 2007 4:02 pm

非常的感謝前輩們的熱心指點,小生試著砍掉 ~./xinput.d 這個目錄並重新執行 im-switch 但是結果還是一模一樣... >_<。但是小生發現其實 gcin 有一直"企圖"要執行起來,只是 scim 好像早一步先啟動了,所以兩個 Input Method 都卡住沒辦法動。在 console 底下把 scim 的行程砍掉 gcin 就馬上自動啟動並且可以正常使用了... @_@。想請教一下為什麼會這樣呢??? 有沒有什麼方法可以解決啊???
The most beautiful thing we can experience is mysterious.
It is the source of all true art and science.

--- Albert Einstein, 1930
頭像
Lost-Angel
活潑的高中生
活潑的高中生
 
文章: 265
註冊時間: 週二 1月 25, 2005 1:29 am
來自: 臺灣民國高雄縣

文章訪客 » 週日 1月 28, 2007 4:07 pm

正常狀況下使用 im-switch

scim 會使用 xim name: SCIM
gcin 會使用 xim name: gcin

你的不知為啥都固定在 SCIM, 可能不只是 ~/.xinput.d 爛了…:P
訪客
 

文章Lost-Angel » 週一 1月 29, 2007 5:31 pm

那可否請教一下到底要怎麼辦呢??? 有沒有什麼辦法可以解決啊??? 徹底的卡死在這裡.. >_<
The most beautiful thing we can experience is mysterious.
It is the source of all true art and science.

--- Albert Einstein, 1930
頭像
Lost-Angel
活潑的高中生
活潑的高中生
 
文章: 265
註冊時間: 週二 1月 25, 2005 1:29 am
來自: 臺灣民國高雄縣

文章訪客 » 週一 1月 29, 2007 11:16 pm

Mmmm...
套句 im-switch maintainer 說過的話:
im-switch 只是方便 user 設定,並無法阻止 user 把系統搞爛 XD

我也不知道你的系統出了啥問題…XD
不知為何都會死釘在 XMODIFIERS=@im=SCIM :P

等會來寫篇簡單教學好了
訪客
 

文章訪客 » 週日 2月 18, 2007 6:39 pm

最近我也遇到這個問題,搞了好久,找到元兇,
我是這樣解決的,自己的家裏,
有~/.xsession和~/.xinit,這兩個檔案(以前亂玩window manager的設定檔案
把這兩個檔案都刪除,因為有這兩個檔案,我的gcin完全不能啟動..
順便把~/.xinput.d/底下的檔案都刪除(應該都是一些soft link檔案
然後,安裝gcin和im-switch,應該這樣就行了,重新登出/登入,
我有沒有執行im-switch -s gcin這行指令,倒是忘了...
------
~/.xsession
~/.xinit
這兩個檔案影響很大,
因為還沒解決gcin這個問題之前,
移除gcin後,我還分別裝過scim,oxim,都沒辦法啟動...= ="
訪客
 


回到 debian desktop

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客