How to use scim on Terminal?
Hi all, I have just setup the scim to input chinese. However, I find that it could not be called when I'm using terminal. Is there any config I have missed out? Hillman _______________________________________________________________________ 新年願望第一位 : 找到友緣人 http://personals.yahoo.com.hk
Hillman Dai
I have just setup the scim to input chinese. However, I find that it could not be called when I'm using terminal. Is there any config I have missed out?
Which terminal?
--
Mike FABIAN
Sorry...I haven't stated it clear. I mean terminal
client program like mlterm, Eterm, etc.
P.S. Apart from Terminal client, I find that I even
cannot use scim in OpenOffice...
Hillman
--- Mike FABIAN
Hillman Dai
今氏反踏五引仄凶: I have just setup the scim to input chinese. However, I find that it could not be called when I'm using terminal. Is there any config I have missed out?
Which terminal?
-- Mike FABIAN
http://www.suse.de/~mfabian 輻戽尕簫反中中酷儀及襯分﹝
_______________________________________________________________________ 新年願望第一位 : 找到友緣人 http://personals.yahoo.com.hk
Hillman Dai
Sorry...I haven't stated it clear. I mean terminal client program like mlterm, Eterm, etc.
P.S. Apart from Terminal client, I find that I even cannot use scim in OpenOffice...
Do you have XMODIFIERS=@im=SCIM set?
Should be the default if you are running in a Chinese locale.
Which locale are you using?
--
Mike FABIAN
Hi Mike,
The system is not a fresh install, it is just upgrade
from the previous SuSE9.1. I have already set the
parameter in .xim file. The content is as follow:
==========================
zh_*) # Chinese
case $tmplang in
zh_TW*)
tmplang=zh_TW
;;
zh_CN*)
tmplang=zh_CN
;;
esac
#if type -p xcin > /dev/null 2>&1 ; then
# export XMODIFIERS="@im=xcin-$tmplang"
# LANG=$tmplang LC_ALL=$tmplang xcin &
#fi
export XMODIFIERS="@im=scim"
scim -d&
;;
==========================
The locale I use is zh_TW.Big5
Hillman
--- Mike FABIAN
Hillman Dai
今氏反踏五引仄凶: Sorry...I haven't stated it clear. I mean terminal client program like mlterm, Eterm, etc.
P.S. Apart from Terminal client, I find that I even cannot use scim in OpenOffice...
Do you have XMODIFIERS=@im=SCIM set?
Should be the default if you are running in a Chinese locale.
Which locale are you using?
-- Mike FABIAN
http://www.suse.de/~mfabian 輻戽尕簫反中中酷儀及襯分﹝
_______________________________________________________________________ 新年願望第一位 : 找到友緣人 http://personals.yahoo.com.hk
Hillman Dai
Hi Mike,
The system is not a fresh install, it is just upgrade from the previous SuSE9.1. I have already set the parameter in .xim file. The content is as follow:
Your .xim is apparently based on an old version of /etc/skel/.xim.template, i.e. the one from SuSE 9.1 where scim was not yet the default. On SuSE 9.2, scim is the default for Chinese, i.e. /etc/X11/xim will start scim for you unless you have your own ~/.xim. That means the easiest way to get it working is just to delete your ~/.xim and rely on system default. If you want to your own ~/.xim file and always want to start scim, it is enough to put only the following few lines export XMODIFIERS="@im=SCIM" export GTK_IM_MODULE=scim export QT_IM_SWITCHER=imsw-multi export QT_IM_MODULE=scim scim -d into ~/.xim as explained at the top of /etc/X11/xim or /etc/skel/.xim.template (which have the same contents).
========================== zh_*) # Chinese case $tmplang in zh_TW*) tmplang=zh_TW ;; zh_CN*) tmplang=zh_CN ;;
You don't need this "tmplang" stuff either, this was only for xcin.
esac #if type -p xcin > /dev/null 2>&1 ; then # export XMODIFIERS="@im=xcin-$tmplang" # LANG=$tmplang LC_ALL=$tmplang xcin & #fi export XMODIFIERS="@im=scim"
You need to write scim in upper case here: XMODIFIERS=@im=SCIM I guess that is the reason why it didn't work for you. It works without that in Qt and GTK2 applications, because those don't use XIM. But if XMODIFIERS is not set correctly it will fail in all applications using XIM like mlterm, xterm, ...
scim -d&
you don't need the '&'
;; ==========================
The locale I use is zh_TW.Big5
--
Mike FABIAN
I could use scim in other programs now. Thank You!
Hillman
--- Mike FABIAN
Hillman Dai
今氏反踏五引仄凶: Hi Mike,
The system is not a fresh install, it is just upgrade from the previous SuSE9.1. I have already set the parameter in .xim file. The content is as follow:
Your .xim is apparently based on an old version of /etc/skel/.xim.template, i.e. the one from SuSE 9.1 where scim was not yet the default.
On SuSE 9.2, scim is the default for Chinese, i.e. /etc/X11/xim will start scim for you unless you have your own ~/.xim.
That means the easiest way to get it working is just to delete your ~/.xim and rely on system default.
If you want to your own ~/.xim file and always want to start scim, it is enough to put only the following few lines
export XMODIFIERS="@im=SCIM" export GTK_IM_MODULE=scim export QT_IM_SWITCHER=imsw-multi export QT_IM_MODULE=scim scim -d
into ~/.xim as explained at the top of /etc/X11/xim or /etc/skel/.xim.template (which have the same contents).
========================== zh_*) # Chinese case $tmplang in zh_TW*) tmplang=zh_TW ;; zh_CN*) tmplang=zh_CN ;;
You don't need this "tmplang" stuff either, this was only for xcin.
esac #if type -p xcin > /dev/null 2>&1 ; then # export XMODIFIERS="@im=xcin-$tmplang" # LANG=$tmplang LC_ALL=$tmplang xcin & #fi export XMODIFIERS="@im=scim"
You need to write scim in upper case here: XMODIFIERS=@im=SCIM
I guess that is the reason why it didn't work for you.
It works without that in Qt and GTK2 applications, because those don't use XIM. But if XMODIFIERS is not set correctly it will fail in all applications using XIM like mlterm, xterm, ...
scim -d&
you don't need the '&'
;; ==========================
The locale I use is zh_TW.Big5
-- Mike FABIAN
http://www.suse.de/~mfabian 輻戽尕簫反中中酷儀及襯分﹝
_______________________________________________________________________ 新年願望第一位 : 找到友緣人 http://personals.yahoo.com.hk
participants (2)
-
Hillman Dai
-
Mike FABIAN