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.