Mailinglist Archive: opensuse-m17n (18 mails)
| < Previous | Next > |
Re: [m17n] Another problem with scim configuration.
- From: Mike FABIAN <mfabian@xxxxxxx>
- Date: Fri, 5 Sep 2003 21:27:49 +0000 (UTC)
- Message-id: <s3tn0dj2aep.fsf@xxxxxxxxxxxxxxxx>
"Giulio F." <gf77p@xxxxxxxxx> さんは書きました:
> export LC_CTYPE=zh_CN.GB2312
> export XMODIFIERS=@im=SCIM
> rxvt &
>
> I get the instruction in english and it's ok.
But take care that you don't have conflicting locale settings.
Please check the output of the command "locale" after you do
the above. It is not allowed to have settings like
mfabian@magellan:~$ export LANG=it_IT@euro
mfabian@magellan:~$ export LC_CTYPE=zh_CN.GB2312
mfabian@magellan:~$ locale
LANG=it_IT@euro
LC_CTYPE=zh_CN.GB2312
LC_NUMERIC="it_IT@euro"
LC_TIME="it_IT@euro"
LC_COLLATE="it_IT@euro"
LC_MONETARY="it_IT@euro"
LC_MESSAGES="it_IT@euro"
LC_PAPER="it_IT@euro"
LC_NAME="it_IT@euro"
LC_ADDRESS="it_IT@euro"
LC_TELEPHONE="it_IT@euro"
LC_MEASUREMENT="it_IT@euro"
LC_IDENTIFICATION="it_IT@euro"
LC_ALL=
mfabian@magellan:~$
because it_IT@euro uses ISO-8859-15 encoding and zh_CN.GB2312 uses
GB2312 encoding. See
http://www.suse.de/~mfabian/suse-cjk/locales-examples.html
http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap07.html
for why this is not allowed.
Therefore I recommended
LANG=it_IT@euro
LC_CTYPE=zh_CN.UTF-8
> But when I select the character I get in the terminal the pinyin not the
> character (if I press return)
> If I press the number or space nothing appens.
> It's because I'm new to Linux OS and I don't know the rxvt options... maybe
> there's the wrong font selected and so I can't display chinese...
> I also tried with mlterm but is the same.
If you press return, you will indeed get the pinyin inserted. But with
the number or space you should get I get the Chinese characters
inserted. At least it works like that for me.
To test whether the font settings of your terminal are correct,
type
LC_ALL=zh_CN.GB2312 date
or
LC_ALL=zh_CN.UTF-8 date
(depending on whether you use UTF-8 or GB2312). You should see the
date in Chinese, like this:
mfabian@magellan:~$ LC_ALL=zh_CN.UTF-8 date
五 9月 5 23:26:56 CEST 2003
mfabian@magellan:~$
But both mlterm and rxvt should use correct fonts by default.
--
Mike Fabian <mfabian@xxxxxxx> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
> export LC_CTYPE=zh_CN.GB2312
> export XMODIFIERS=@im=SCIM
> rxvt &
>
> I get the instruction in english and it's ok.
But take care that you don't have conflicting locale settings.
Please check the output of the command "locale" after you do
the above. It is not allowed to have settings like
mfabian@magellan:~$ export LANG=it_IT@euro
mfabian@magellan:~$ export LC_CTYPE=zh_CN.GB2312
mfabian@magellan:~$ locale
LANG=it_IT@euro
LC_CTYPE=zh_CN.GB2312
LC_NUMERIC="it_IT@euro"
LC_TIME="it_IT@euro"
LC_COLLATE="it_IT@euro"
LC_MONETARY="it_IT@euro"
LC_MESSAGES="it_IT@euro"
LC_PAPER="it_IT@euro"
LC_NAME="it_IT@euro"
LC_ADDRESS="it_IT@euro"
LC_TELEPHONE="it_IT@euro"
LC_MEASUREMENT="it_IT@euro"
LC_IDENTIFICATION="it_IT@euro"
LC_ALL=
mfabian@magellan:~$
because it_IT@euro uses ISO-8859-15 encoding and zh_CN.GB2312 uses
GB2312 encoding. See
http://www.suse.de/~mfabian/suse-cjk/locales-examples.html
http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap07.html
for why this is not allowed.
Therefore I recommended
LANG=it_IT@euro
LC_CTYPE=zh_CN.UTF-8
> But when I select the character I get in the terminal the pinyin not the
> character (if I press return)
> If I press the number or space nothing appens.
> It's because I'm new to Linux OS and I don't know the rxvt options... maybe
> there's the wrong font selected and so I can't display chinese...
> I also tried with mlterm but is the same.
If you press return, you will indeed get the pinyin inserted. But with
the number or space you should get I get the Chinese characters
inserted. At least it works like that for me.
To test whether the font settings of your terminal are correct,
type
LC_ALL=zh_CN.GB2312 date
or
LC_ALL=zh_CN.UTF-8 date
(depending on whether you use UTF-8 or GB2312). You should see the
date in Chinese, like this:
mfabian@magellan:~$ LC_ALL=zh_CN.UTF-8 date
五 9月 5 23:26:56 CEST 2003
mfabian@magellan:~$
But both mlterm and rxvt should use correct fonts by default.
--
Mike Fabian <mfabian@xxxxxxx> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
| < Previous | Next > |