Mailinglist Archive: opensuse-m17n (31 mails)
| < Previous | Next > |
Re: [m17n] How to use scim on Terminal?
- From: Mike FABIAN <mfabian@xxxxxxx>
- Date: Tue, 25 Jan 2005 00:24:03 +0000 (UTC)
- Message-id: <s3t7jm2bbky.fsf@xxxxxxxxxxxxxxxx>
Hillman Dai <hillman_dai@xxxxxxxxxxxx> さんは書きました:
> 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@xxxxxxx> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
> 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@xxxxxxx> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
| < Previous | Next > |