Debian GNU/Linux Input Method settings

Source: Internet
Author: User
Debian GNU/Linux Input Method settings

The following settings are used in Debian GNU/Linux.

1. GNOME Desktop Environment :~ /. Gnomerc or write file/etc/X11/xsession. d/90im-startup
Content:
# Fcitx
Export xmodifiers = @ im = fcitx
Fcitx

Or
# Scim
Export xmodifiers = @ im = scim
Export gtk_im_module = scim
Scim-d

If you want to use the Chinese Input Method on the English interface, you can add the following two lines to the top of the above file.
Export lang = en_US.UTF-8
Export lc_ctype = zh_CN.UTF-8

2. Use im-switch to start and manage input methods
Because I use the ion3 window manager, I cannot use. gnomerc. Of course, you can write/etc/X11/xsession. d/90im-startup, etc. But I like fcitx and sometimes use the traditional scim function, so I need to switch the input method frequently. Use im-switch.

The configuration method is as follows:
A) install apt-Get install im-switch fcitx scim-pinyin

B) write two files.
/Etc/X11/xinit/xinput. d/fcitx. The content is
Xim = fcitx
Xim_program =/usr/bin/fcitx
Xim_args =
Gtk_im_module =
Depends =

/Etc/X11/xinit/xinput. d/scim, the content is
Xim_program =/usr/bin/scim
Xim_args =-d
Gtk_im_module = scim

C) install it on the im-Switch
Run as root respectively
Update-alternatives -- install/etc/X11/xinit/xinput. d/zh_cn xinput-zh_CN/etc/X11/xinit/xinput. d/fcitx 50

Update-alternatives -- install/etc/X11/xinit/xinput. d/zh_cn xinput-zh_CN/etc/X11/xinit/xinput. d/scim 50

D) switch the input method you want to use and run the command (as root)
Im-switch-s fcitx
Or
Im-switch-s scim

E) In the last step, restart X.

In addition, you can write a script so that you do not need to restart X, kill the current input method, and execute/etc/X11/xsession. d/xxim-switch to enable the new input method. We hope Debian will have this function in the future.

3) unihan. Another option is the built-in Input Method on Xinhua rays, which includes intelligent ABC, Ziguang, five strokes, and handwriting, and can be converted to simplified/Traditional Chinese. Because it is based on the iiimf architecture and has not studied its startup script, it does not know how to use it in im-switch for the moment.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.