Input Methods in linux

Source: Internet
Author: User
Linux-general Linux technology-Linux technology and application information. For more information, see the following section. I recently studied fvwm and intend to gradually replace windows with linux. After a long time, I finally had some experience. Occasionally, when I try to enter Chinese characters on the webpage, I find that my input method is suddenly unavailable.

I plan to uninstall sicm and reload fcitx again. However, it seems that scim is related to so many programs. Install fcitx first. Then, apt-get install fcitx. After it is installed, set fcitx to start with xwindow in/etc/X11/Xsession. d/, find the 55gnome-session_gnomerc file (my system is debian, other systems may be 25 xinput), add the following content in front

Export LC_CTYPE = zh_CN.UTF-8
Export XMODIFIERS = @ im = fcitx
Export XIM = fcitx
Export XIM_PROGRAM = fcitx
Fcitx

After the configuration is complete, first mv ~ /. Xinitrc ~ /Xinitrc, which must be started by the original gnome. Use gnome to test it. The result shows that although the input method Prompt window is displayed after startup, Ctrl + Space cannot call the input method to set Chinese characters normally. Use set to check and find that LANG = us_EN in the system environment. Remember that all the language options were set to us_EN in order to install oracle, so add it at the beginning of the session_gnomerc file.

Export LC_ALL = zh_CN.GB2312
Export LC_CTYPE = zh_CN.GB2312

This is the language setting that was originally installed. Exit xwindow and enter startx again. It is strange that Chinese characters cannot be entered!

Then again modified to zh_CN.GBK still does not work, and finally modified to zh_CN.UTF-8, finally can enter Chinese.

Then, modify the settings ~ /Xinitrc:

LANGUAGE = zh_CN.UTF-8
LANG = zh_CN.UTF-8
Lc_all= zh_CN.UTF-8
XMODIFIERS = @ im = fcitx
Export LANG LC_ALL KDE_LANG XMODIFIERS
Fcitx &
Exec fvwm
Killall fcitx

Then mv ~ /Xinitrc ~ /. Xinitrc, startx enters fvwm, open the editor, and the Haha input method has finally come out!

Conclusion: the normal operation of the input method depends on the locale settings (LC_ALL, LANG, LANGUAGE, LC_TYPE, etc.), which are closely related to the LANGUAGE environment. If you do not know your own LANGUAGE encoding, you can test it one by one.

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.