I could use scim in other programs now. Thank You! Hillman --- Mike FABIAN <mfabian@suse.de> 內容:
Hillman Dai <hillman_dai@yahoo.com.hk> 今氏反踏五引仄凶:
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 <mfabian@suse.de> http://www.suse.de/~mfabian 輻戽尕簫反中中酷儀及襯分﹝
_______________________________________________________________________ 新年願望第一位 : 找到友緣人 http://personals.yahoo.com.hk