SCIM + English Locales

有關於X 環境當中所遇到的問題

Moderator: Forums Team

allenhui
Posts: 11
Joined: Sun Oct 02, 2005 6:30 pm

SCIM + English Locales

Post by allenhui »

Can anyone tell me how to use scim in english gnome?
I have changed the locale to the following but it still can work.

LANG=en_US.UTF-8
LC_CTYPE=zh_TW.Big5
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=
User avatar
spartacus
Posts: 29
Joined: Thu Jun 30, 2005 6:49 pm

Post by spartacus »

Image
allenhui
Posts: 11
Joined: Sun Oct 02, 2005 6:30 pm

Post by allenhui »

我依指引做都是不行呀.....
User avatar
spartacus
Posts: 29
Joined: Thu Jun 30, 2005 6:49 pm

Post by spartacus »

那你就需要提供多點資訊才行啊,不然我也沒辦法知道可能是那裡有問題。
Image
allenhui
Posts: 11
Joined: Sun Oct 02, 2005 6:30 pm

Post by allenhui »

我已打入以下指令,

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=SCIM
scim -d &

已重新進入gnome,按了ctrl+space,scim 的視窗都不出現。

我要給予什麼資料給你,請幫幫手!
User avatar
spartacus
Posts: 29
Joined: Thu Jun 30, 2005 6:49 pm

Post by spartacus »

打入指令 gtk-query-immodules-2.0 看看有沒有 scim
Image
allenhui
Posts: 11
Joined: Sun Oct 02, 2005 6:30 pm

Post by allenhui »

都係冇~~可唔可以講下有咩要設置!!
User avatar
spartacus
Posts: 29
Joined: Thu Jun 30, 2005 6:49 pm

Post by spartacus »

因為資料庫受損,再 po 一次。

你使用的 terminal
你設定前述 export 變數的檔案名稱及內容
在你所使用的 terminal 下 locale 的輸出
在你所使用的 terminal 下 export 的輸出
在你所使用的 terminal 下 ps -A 的輸出
在你所使用的 terminal 下,gtk-query-immodules-2.0 的輸出

請提供以上資訊
Image
allenhui
Posts: 11
Joined: Sun Oct 02, 2005 6:30 pm

Post by allenhui »

locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
localhost ~ # export
declare -x CLASSPATH="."
declare -x COLORTERM="gnome-terminal"
declare -x CONFIG_PROTECT="/usr/lib/mozilla/defaults/pref /usr/lib/X11/xkb"
declare -x CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo"
declare -x CVS_RSH="ssh"
declare -x DESKTOP_SESSION="gnome"
declare -x DESKTOP_STARTUP_ID=""
declare -x DISPLAY=":0.0"
declare -x EDITOR="/bin/nano"
declare -x GCC_SPECS=""
declare -x GDK_USE_XFT="1"
declare -x GDMSESSION="gnome"
declare -x GDM_XSERVER_LOCATION="local"
declare -x GNOME_DESKTOP_SESSION_ID="Default"
declare -x GNOME_KEYRING_SOCKET="/tmp/keyring-Q7Wgap/socket"
declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2"
declare -x G_BROKEN_FILENAMES="1"
declare -x HOME="/root"
declare -x HOSTNAME="localhost"
declare -x INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/info"
declare -x JAVAC="/opt/sun-jdk-1.4.2.09/bin/javac"
declare -x JAVA_HOME="/opt/sun-jdk-1.4.2.09"
declare -x JDK_HOME="/opt/sun-jdk-1.4.2.09"
declare -x LESS="-R"
declare -x LESSOPEN="|lesspipe.sh %s"
declare -x LOGNAME="root"
declare -x MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/man::/opt/sun-jdk-1.4.2.09/man"
declare -x MOZILLA_FIVE_HOME="/usr/lib/mozilla"
declare -x OLDPWD
declare -x OPENGL_PROFILE="xorg-x11"
declare -x PAGER="/usr/bin/less"
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.6:/opt/sun-jdk-1.4.2.09/bin:/opt/sun-jdk-1.4.2.09/jre/bin:/opt/sun-jdk-1.4.2.09/jre/javaws"
declare -x PRELINK_PATH_MASK="/usr/lib/gstreamer-0.8"
declare -x PWD="/root"
declare -x PYTHONPATH="/usr/lib/portage/pym"
declare -x SESSION_MANAGER="local/localhost:/tmp/.ICE-unix/7100"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_AGENT_PID="7115"
declare -x SSH_AUTH_SOCK="/tmp/ssh-nrpaEE7100/agent.7100"
declare -x TERM="xterm"
declare -x USER="root"
declare -x USERNAME="root"
declare -x WINDOWID="35651627"
declare -x XAUTHORITY="/root/.Xauthority"
declare -x XINITRC="/etc/X11/xinit/xinitrc"
localhost ~ # ps -A
PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 migration/0
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 events/0
5 ? 00:00:00 khelper
6 ? 00:00:00 kthread
8 ? 00:00:00 kacpid
102 ? 00:00:00 kblockd/0
170 ? 00:00:00 pdflush
171 ? 00:00:00 pdflush
105 ? 00:00:00 khubd
172 ? 00:00:00 kswapd0
173 ? 00:00:00 aio/0
761 ? 00:00:00 kseriod
809 ? 00:00:00 ata/0
812 ? 00:00:00 khpsbpkt
816 ? 00:00:00 knodemgrd_0
857 ? 00:00:00 reiserfs/0
905 ? 00:00:00 udevd
4358 ? 00:00:00 ipw2200/0
4471 ? 00:00:00 kjournald
6669 ? 00:00:00 login
6674 ? 00:00:00 login
6675 tty3 00:00:00 agetty
6676 tty4 00:00:00 agetty
6677 tty5 00:00:00 agetty
6678 tty6 00:00:00 agetty
6888 tty1 00:00:00 bash
6924 tty2 00:00:00 bash
6929 ? 00:00:00 gdm
6930 ? 00:00:00 gdm
6935 ? 00:00:54 X
7100 ? 00:00:00 gnome-session
7115 ? 00:00:00 ssh-agent
7117 ? 00:00:00 gconfd-2
7120 ? 00:00:00 gnome-keyring-d
7122 ? 00:00:00 bonobo-activati
7124 ? 00:00:01 metacity
7126 ? 00:00:00 gnome-settings-
7140 ? 00:00:01 gnome-panel
7142 ? 00:00:00 nautilus
7148 ? 00:00:00 gnome-vfs-daemo
7155 ? 00:00:00 mapping-daemon
7164 ? 00:00:02 wnck-applet
7170 ? 00:00:00 clock-applet
7172 ? 00:00:00 mixer_applet2
7174 ? 00:00:00 gnome-netstatus
7176 ? 00:00:00 gweather-applet
7178 ? 00:00:00 battstat-applet
14100 ? 00:00:00 uim-helper-serv
14206 ? 00:00:01 anjuta
14224 ? 00:00:00 mozilla-launche
14238 ? 00:00:22 firefox-bin
14273 ? 00:00:00 gnome-terminal
14274 ? 00:00:00 gnome-pty-helpe
14275 pts/0 00:00:00 bash
14279 pts/0 00:00:00 ps
localhost ~ # gtk-query-immodules-2.0
# GTK+ Input Method Modules file
# Automatically generated file, do not edit
# Created by gtk-query-immodules-2.0 from gtk+-2.6.8
#
# ModulesPath = /root/.gtk-2.0/2.4.0/i686-pc-linux-gnu/immodules:/root/.gtk-2.0/2.4.0/immodules:/root/.gtk-2.0/i686-pc-linux-gnu/immodules:/root/.gtk-2.0/immodules:/usr/lib/gtk-2.0/2.4.0/i686-pc-linux-gnu/immodules:/usr/lib/gtk-2.0/2.4.0/immodules:/usr/lib/gtk-2.0/i686-pc-linux-gnu/immodules:/usr/lib/gtk-2.0/immodules
#
"/usr/lib/gtk-2.0/2.4.0/immodules/im-ipa.so"
"ipa" "IPA" "gtk20" "/usr/share/locale" ""

"/usr/lib/gtk-2.0/2.4.0/immodules/im-am-et.so"
"am_et" "Amharic (EZ+)" "gtk20" "/usr/share/locale" "am"

"/usr/lib/gtk-2.0/2.4.0/immodules/im-uim.so"
"uim" "uim" "uim" "/usr/share/locale" "ja:ko:zh:*"

"/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"

"/usr/lib/gtk-2.0/2.4.0/immodules/im-cedilla.so"
"cedilla" "Cedilla" "gtk+" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa"

"/usr/lib/gtk-2.0/2.4.0/immodules/im-thai-broken.so"
"thai_broken" "Thai (Broken)" "gtk20" "/usr/share/locale" ""

"/usr/lib/gtk-2.0/2.4.0/immodules/im-inuktitut.so"
"inuktitut" "Inuktitut (Transliterated)" "gtk20" "/usr/share/locale" "iu"

"/usr/lib/gtk-2.0/2.4.0/immodules/im-viqr.so"
"viqr" "Vietnamese (VIQR)" "gtk20" "/usr/share/locale" "vi"

"/usr/lib/gtk-2.0/2.4.0/immodules/im-ti-er.so"
"ti_er" "Tigrigna-Eritrean (EZ+)" "gtk20" "/usr/share/locale" "ti"

"/usr/lib/gtk-2.0/2.4.0/immodules/im-ti-et.so"
"ti_et" "Tigrigna-Ethiopian (EZ+)" "gtk20" "/usr/share/locale" "ti"

"/usr/lib/gtk-2.0/2.4.0/immodules/im-cyrillic-translit.so"
"cyrillic_translit" "Cyrillic (Transliterated)" "gtk20" "/usr/share/locale" ""

"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "ko:ja:zh"
User avatar
spartacus
Posts: 29
Joined: Thu Jun 30, 2005 6:49 pm

Post by spartacus »

那麼請叫出一個 xterm 並在其中執行以下動作:

1. export XMODIFIERS=@im=SCIM
2. export GTK_IM_MODULE=SCIM
3. scim -d &
4. xterm
在 4. 叫出的 xterm 中按 ctrl+space 看有沒有 scim 視窗
在 4. 叫出的 xterm 中呼叫 firefox (maybe other browsers will do) 並測試 ctrl+space,看有沒有 scim 視窗

如果有,請把以上 export 放入 .xinitrc 或 .bashrc 中
沒有的話,再看看了說
Image
allenhui
Posts: 11
Joined: Sun Oct 02, 2005 6:30 pm

Post by allenhui »

都是沒有呀...............
User avatar
spartacus
Posts: 29
Joined: Thu Jun 30, 2005 6:49 pm

Post by spartacus »

sorry,忘了要加 export LC_ALL=en_US.UTF-8。

不過看來還是有可能失敗,如果真是如此,我只能猜測是最後一行
"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "ko:ja:zh"

看來跟我的不一樣,我的是
"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "*"
Image
scsi
Posts: 1326
Joined: Tue Oct 14, 2003 7:49 am
Contact:

Post by scsi »

我發現你ps的結果並沒有 scim 的process
可能是scim沒有正確的執行,這樣的話 XIM 的方式會無法執行

你是用gnome吧
你進gnome之後開啟gedit
然後在編輯區上按右鍵,然後選input method
看看裡面有沒有scim的選項
如果有就選一下,再按 ctrl+shift看看能不能叫出輸入法
世界再大,不過是妳我之間的事
:111.gif: 欲使用GOT的ebuild請看Gentoo 台灣中文 Ebuild 使用指南
Image  我的部落格
scsi
Posts: 1326
Joined: Tue Oct 14, 2003 7:49 am
Contact:

Post by scsi »

spartacus wrote: 看來跟我的不一樣,我的是
"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "*"
我的設定也是

Code: Select all

"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "ko:ja:zh"
在en_us.UTF-8的環境下也能正常的使用說 :4.jpg:
真是太奇怪了
世界再大,不過是妳我之間的事
:111.gif: 欲使用GOT的ebuild請看Gentoo 台灣中文 Ebuild 使用指南
Image  我的部落格
allenhui
Posts: 11
Joined: Sun Oct 02, 2005 6:30 pm

Post by allenhui »

現在可以在gedit 中使用,但在其他地方,例如firefox,openoffice都不可以。
Post Reply