scim 在 gtk-immodule 沒問題, xim 卻無法載入
Moderator: Forums Team
Dear all :
I removed Windows all,and reinstalled Gentoo.But,I encountered a problem--I can't use SCIM as the default Chinese input method.
I set the following in ~/.bashrc :
*********************************
LANG="zh_TW.UTF-8" scim -d
export XIM=SCIM
export XIM_PROGRAM=SCIM
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
*********************************
After login process,I got nothing like before--it would automatically be
launched and was seen in system tray,without having to open a terminal,such as xterm.
when I tried to open a terminal,this is what I see :
********************************************
Smart Common Input Method 1.4.4
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
Launching a SCIM process with x11...
Loading socket Config module ...
Creating backend ...
Loading x11 FrontEnd module ...
GTK Panel of SCIM 1.4.4
(scim-panel-gtk:18970): Pango-WARNING **: Error loading GPOS table 4097
Starting SCIM as daemon ...
SCIM has been successfully launched.
*********************************************
Though it is successfully launched,I still got nothing at all.
I really don't get along well with Gentoo recently.
I removed Windows all,and reinstalled Gentoo.But,I encountered a problem--I can't use SCIM as the default Chinese input method.
I set the following in ~/.bashrc :
*********************************
LANG="zh_TW.UTF-8" scim -d
export XIM=SCIM
export XIM_PROGRAM=SCIM
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
*********************************
After login process,I got nothing like before--it would automatically be
launched and was seen in system tray,without having to open a terminal,such as xterm.
when I tried to open a terminal,this is what I see :
********************************************
Smart Common Input Method 1.4.4
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
Launching a SCIM process with x11...
Loading socket Config module ...
Creating backend ...
Loading x11 FrontEnd module ...
GTK Panel of SCIM 1.4.4
(scim-panel-gtk:18970): Pango-WARNING **: Error loading GPOS table 4097
Starting SCIM as daemon ...
SCIM has been successfully launched.
*********************************************
Though it is successfully launched,I still got nothing at all.
I really don't get along well with Gentoo recently.
建義將
放於/etc/profile之中
這樣應該就能正確的支援gtkimm及qtimm了
要再加上XIM就將scim -d加到X開始會啟動的script裡
如ebuild建議的 .gnomerc or .xinitrc
我本身使用KDE + skim
只有profile環境變數的設定外,不需再做額外的設定就能正常的使用skim了
Code: Select all
GTK_IM_MODULE=scim
QT_IM_MODULE=scim
XIM=SCIM
XIM_PROGRAM=SCIM
XMODIFIERS=@im=SCIM
xinput=scim Code: Select all
[ebuild R ] app-i18n/scim-1.4.4 USE="gtk immqt-bc -doc -immqt" 0 kB
[ebuild R ] app-i18n/scim-tables-0.5.6-r1 USE="kde nls" LINGUAS="-am -ar -bn -gu -hi -ja -kn -ko -ml -ne -pa -ru -ta -te -th -vi -zh" 0 kB要再加上XIM就將scim -d加到X開始會啟動的script裡
如ebuild建議的 .gnomerc or .xinitrc
我本身使用KDE + skim
只有profile環境變數的設定外,不需再做額外的設定就能正常的使用skim了
Dear all :
I have tried many many methods I know and tried many times,I still
could not use scim with packages excluding gtk-based ones.
The following keeps appearing :
*****************************************
(scim-panel-gtk:10089): Pango-WARNING **: Error loading GPOS table 4097
*****************************************
What on earth does it mean ? I never saw it before.
I have tried many many methods I know and tried many times,I still
could not use scim with packages excluding gtk-based ones.
The following keeps appearing :
*****************************************
(scim-panel-gtk:10089): Pango-WARNING **: Error loading GPOS table 4097
*****************************************
What on earth does it mean ? I never saw it before.
阿... 我到現在才看到...
你改放到 ~/.xprofile 裡面吧... 以下是我的 ~/.xprofile
= =I set the following in ~/.bashrc :
你改放到 ~/.xprofile 裡面吧... 以下是我的 ~/.xprofile
Code: Select all
#!/bin/bash
export GTK_USE_XFT="1"
export MOZ_DISABLE_PANGO="1"
# locale variables
export LANG="zh_TW.UTF-8"
# input method
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
exec scim -d &「從麻雀之城回來的時候,被問到『你要大的藤箱還是小的藤箱?』為此煩惱不已。大家都有過這種煩惱吧?」
「是啊是啊!大的藤箱可以放很多東西覺得很划算,小的藤箱小小的裡面也許放著很不錯的東西,真的很難取捨阿!」
「靠這個就能告別這種煩惱『中型的藤箱』!」
「好厲害!」
「不要再煩惱大小的問題了,現在還贈送可以煮出鐵質,增進健康的鐵銼刀。」
「這是一定要買的!」
「我要一個!」
「是啊是啊!大的藤箱可以放很多東西覺得很划算,小的藤箱小小的裡面也許放著很不錯的東西,真的很難取捨阿!」
「靠這個就能告別這種煩惱『中型的藤箱』!」
「好厲害!」
「不要再煩惱大小的問題了,現在還贈送可以煮出鐵質,增進健康的鐵銼刀。」
「這是一定要買的!」
「我要一個!」
~/.bashrc 是 bash 載入時讀取的設定檔.
~/.xprofile 是 X 載入時 (xinit 或 {[xgk]dm,entrance}) 讀取的設定檔.
也許有時候從 console 執行 startx 與使用圖形登入介面需要載入不同的設定檔, 那就要使用不同的檔案.
~/.xprofile - 不管怎樣都會在入
~/.xinitrc - 從 console 執行時載入
~/.xsession - 從圖形登入介面時載入
不過不管怎樣, 跑 X 的時候都跟 bash 無關的!
~/.xprofile 是 X 載入時 (xinit 或 {[xgk]dm,entrance}) 讀取的設定檔.
也許有時候從 console 執行 startx 與使用圖形登入介面需要載入不同的設定檔, 那就要使用不同的檔案.
~/.xprofile - 不管怎樣都會在入
~/.xinitrc - 從 console 執行時載入
~/.xsession - 從圖形登入介面時載入
不過不管怎樣, 跑 X 的時候都跟 bash 無關的!
「從麻雀之城回來的時候,被問到『你要大的藤箱還是小的藤箱?』為此煩惱不已。大家都有過這種煩惱吧?」
「是啊是啊!大的藤箱可以放很多東西覺得很划算,小的藤箱小小的裡面也許放著很不錯的東西,真的很難取捨阿!」
「靠這個就能告別這種煩惱『中型的藤箱』!」
「好厲害!」
「不要再煩惱大小的問題了,現在還贈送可以煮出鐵質,增進健康的鐵銼刀。」
「這是一定要買的!」
「我要一個!」
「是啊是啊!大的藤箱可以放很多東西覺得很划算,小的藤箱小小的裡面也許放著很不錯的東西,真的很難取捨阿!」
「靠這個就能告別這種煩惱『中型的藤箱』!」
「好厲害!」
「不要再煩惱大小的問題了,現在還贈送可以煮出鐵質,增進健康的鐵銼刀。」
「這是一定要買的!」
「我要一個!」
太感謝了。原來門道如此,卻是我只會看熱鬧。
不過另有個問題,為何以前我放在.dmrc或者.bashrc是可行的?
再者,用了你說的方式,固然scim-chewing可用了,卻發生Acrobat Reader,Realplayer,gnome-cups-manager無法執行。如果在console
以command-line執行,必定會先看到scim-chewing在執行並且失敗的訊息(更怪的是,scim-chewing依然可以使用),再來就一切停止了。訊息最後一行如下(之前也貼出過):
*****************************************
(scim-panel-gtk:10089): Pango-WARNING **: Error loading GPOS table 4097
*****************************************
網路上有文章指出scim會造成衝突,所以我試著將scim-chewing移除,
也刪除相關檔案,結果除了Realplayer恢復正常,其他依然故我。
然後我又好奇地將scim-chewing安裝回去,結果是Realplayer不受影響,
可用。而另外二個還是不行。真是怪上有怪,不知Palatis能解否?
不過另有個問題,為何以前我放在.dmrc或者.bashrc是可行的?
再者,用了你說的方式,固然scim-chewing可用了,卻發生Acrobat Reader,Realplayer,gnome-cups-manager無法執行。如果在console
以command-line執行,必定會先看到scim-chewing在執行並且失敗的訊息(更怪的是,scim-chewing依然可以使用),再來就一切停止了。訊息最後一行如下(之前也貼出過):
*****************************************
(scim-panel-gtk:10089): Pango-WARNING **: Error loading GPOS table 4097
*****************************************
網路上有文章指出scim會造成衝突,所以我試著將scim-chewing移除,
也刪除相關檔案,結果除了Realplayer恢復正常,其他依然故我。
然後我又好奇地將scim-chewing安裝回去,結果是Realplayer不受影響,
可用。而另外二個還是不行。真是怪上有怪,不知Palatis能解否?
不知道說... 我的沒問題耶 @@
如果是這樣... 請先...
1. 先把 .xprofile 裡面的 scim -d 註解一下
2. 進入 gnome (或其他 dm) 以後
2a. 開一個終端機, 執行 scim -d
2b. 再開一個終端機, 執行 realplay (或 acroread, 或 gnome-cups-manager)
3. 看看他們說什麼...
另外, 那個 Pango warning 沒關係.
如果是這樣... 請先...
1. 先把 .xprofile 裡面的 scim -d 註解一下
2. 進入 gnome (或其他 dm) 以後
2a. 開一個終端機, 執行 scim -d
2b. 再開一個終端機, 執行 realplay (或 acroread, 或 gnome-cups-manager)
3. 看看他們說什麼...
另外, 那個 Pango warning 沒關係.
「從麻雀之城回來的時候,被問到『你要大的藤箱還是小的藤箱?』為此煩惱不已。大家都有過這種煩惱吧?」
「是啊是啊!大的藤箱可以放很多東西覺得很划算,小的藤箱小小的裡面也許放著很不錯的東西,真的很難取捨阿!」
「靠這個就能告別這種煩惱『中型的藤箱』!」
「好厲害!」
「不要再煩惱大小的問題了,現在還贈送可以煮出鐵質,增進健康的鐵銼刀。」
「這是一定要買的!」
「我要一個!」
「是啊是啊!大的藤箱可以放很多東西覺得很划算,小的藤箱小小的裡面也許放著很不錯的東西,真的很難取捨阿!」
「靠這個就能告別這種煩惱『中型的藤箱』!」
「好厲害!」
「不要再煩惱大小的問題了,現在還贈送可以煮出鐵質,增進健康的鐵銼刀。」
「這是一定要買的!」
「我要一個!」
按照你方式在console執行scim -d之後:
1,gnome-cups-add結果如下:
(gnomesu:8229): libglade-WARNING **: could not find signal handler 'on_gtk_command_textbox_activate'.
(gnomesu:8229): libglade-WARNING **: could not find signal handler 'on_gtk_password_textbox_activate'.
(gnomesu:8229): libglade-WARNING **: could not find signal handler 'on_gtk_ok_button_clicked'.
(gnomesu:8229): libglade-WARNING **: could not find signal handler 'on_gtk_cancel_button_clicked'.
(gnomesu:8229): libglade-WARNING **: could not find signal handler 'quit_program'.
** (gnomesu:8229): WARNING **: xsu.c:582: icon was not found cannot be found
(gnomesu:8229): Pango-WARNING **: Error loading GPOS table 4097
2,acroread結果如下:
/opt/bin/acroread: line 924: unexpected EOF while looking for matching ``'
/opt/bin/acroread: line 945: syntax error: unexpected end of file
1,gnome-cups-add結果如下:
(gnomesu:8229): libglade-WARNING **: could not find signal handler 'on_gtk_command_textbox_activate'.
(gnomesu:8229): libglade-WARNING **: could not find signal handler 'on_gtk_password_textbox_activate'.
(gnomesu:8229): libglade-WARNING **: could not find signal handler 'on_gtk_ok_button_clicked'.
(gnomesu:8229): libglade-WARNING **: could not find signal handler 'on_gtk_cancel_button_clicked'.
(gnomesu:8229): libglade-WARNING **: could not find signal handler 'quit_program'.
** (gnomesu:8229): WARNING **: xsu.c:582: icon was not found cannot be found
(gnomesu:8229): Pango-WARNING **: Error loading GPOS table 4097
2,acroread結果如下:
/opt/bin/acroread: line 924: unexpected EOF while looking for matching ``'
/opt/bin/acroread: line 945: syntax error: unexpected end of file