View previous topic :: View next topic |
Author |
Message |
panyo Tux's lil' helper
Joined: 02 Jan 2004 Posts: 86
|
Posted: Mon Jan 31, 2005 11:39 pm Post subject: input in emacs or vim |
|
|
I am trying to set up Chinese input for emacs or vim.
SCIM has a 'smart pinyin' mode that my users tell me is
'almost as good as NJstar.' They complain about the native
input modes of emacs because they do not have completions of
common character groups. I am determined that there
should never be a reason for my users to go back to Windows,
so I hope you can help me.
While SCIM looks good so far, I cannot use it to enter text into emacs, vim, or gvim.
It looks like what is comming out of SCIM is UTF-8. But even when I visit an emacs buffer
in UTF-8 encoding, I cannot see the characters (the emacs input modes work fine, so it is an encoding, not a font problem). I have tried a few things and can see the text
I write when I look at it through a web browser, but not while I am typing.
What can I do? I need the system to remain in English. This is what I am entering to make
SCIM work:
Code: |
export LANG="en_US.UTF-8"
export LC_TYPE="zh_CN.UTF-8"
export XIM=scim
export XIM_PROGRAM=scim
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=SCIM
|
When I try to change LC_TYPE to zh_CN.gb2312, SCIM will not start. |
|
Back to top |
|
|
Hauser l33t
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
Posted: Tue Feb 01, 2005 2:54 am Post subject: |
|
|
Try the following variables:
Code: | export LANG=en_US.utf8 # you may also comment out this line to use the POSIX locale
export LC_CTYPE=zh_CN.utf8
export XMODIFIERS=@im=SCIM |
They work for me. _________________ AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl
Do I like to compile everything?
Positive definite! |
|
Back to top |
|
|
panyo Tux's lil' helper
Joined: 02 Jan 2004 Posts: 86
|
Posted: Tue Feb 01, 2005 8:57 am Post subject: |
|
|
Hauser wrote: | Try the following variables:
Code: | export LANG=en_US.utf8 # you may also comment out this line to use the POSIX locale
export LC_CTYPE=zh_CN.utf8
export XMODIFIERS=@im=SCIM |
They work for me. |
Hauser, thank you for the reply.
I tried what you said. Vim works in mlterm, but gvim, emacs, and emacs -nw in mlterm do not work. gvim and emacs both display characters that appear as GB2312 characters do in a web browser that is set for Western encoding. emacs -nw mlterm displays nothing and behaves erratically as I input. When emacs was in UTF-8 encoding mode. When I save, even if I use C-x <return> c to set the save as mode to UTF-8, the characters only display correctly in the web browser if I set the encoding to GB2312. However, the same thing happens when I set the emacs encoding to GB2312. I can even save the unreadable file, open it in GB2312 mode and read the characters, but then when I start typing, the new input is wrong again on the same page that is displayng Chinese characters. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|