About how to install and configure the fcitx Input Method In Debian locale

Source: Internet
Author: User
For details about how to install and configure the fcitx Input Method for Debian in e-file locale-Linux Release Technology-Debian, see the following. I use debian etch to call up fcitx under locale as en_US.
Gnome Desktop System.

Install fcitx and im-switch: apt-get install fcitx im-switch

If you run locale, the result is as follows:
LANG = en_US.UTF-8
LC_CTYPE = en_US.UTF-8 this line can be done if it is a zh_CN.UTF-8
LC_NUMERIC = "en_US.UTF-8"
LC_TIME = "en_US.UTF-8"
LC_COLLATE = "en_US.UTF-8"
LC_MONETARY = "en_US.UTF-8"
LC_MESSAGES = "en_US.UTF-8"
LC_PAPER = "en_US.UTF-8"
LC_NAME = "en_US.UTF-8"
LC_ADDRESS = "en_US.UTF-8"
LC_TELEPHONE = "en_US.UTF-8"
LC_MEASUREMENT = "en_US.UTF-8"
LC_IDENTIFICATION = "en_US.UTF-8"
LC_ALL =
Do not change the system locale. If the following command is not used
# Dpkg-reconfigure locales

Execute the following commands to analyze the results.
$ Ls-ahl/etc/alternatives/| grep input
$ Ls-ahl/etc/X11/xinit/xinput. d/
$ Ls-ahl ~ /. Xinput. d/
If no such file or directory appears in the last step
Then
$ Cd $ HOME to your user's HOME directory
$ Mkdir. xinput. d
$ Cd. xinput. d
$ Ln-s/etc/X11/xinit/xinput. d/fcitx en_US
Directly link

Modify file:
/Etc/gtk-2.0/gtk. immodules file, change the section about xim:
/Usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so"
"Xim" "X Input Method" "gtk20" "/usr/share/locale" "en: ko: ja: th: zh
Otherwise, right-click to see whether the input method is default.

If you upgrade the system, you may have nothing to do with your/etc/gtk-2.0:
/Usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0. immodules
Change the xim part:
"/Usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so"
"Xim" "X Input Method" "gtk20" "/usr/share/locale" "ko: ja: th: zh"
Add "en :"
OK. Log On again after logout.
Run
Im-switch-s fcitx sets fcitx as the default input method,
Now you can use ctrl + space to call up the input method. You can click the fcitx icon "smart pinyin" to switch the input.
Method (such as five strokes), enjoy!

Otherwise
Run
$ Im-switch-c
Displays available input methods for the current system.
If fcitx exists, select it.
This works with im-switch-s fcitx.
Related Article

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.