Install fcitx Chinese Input Method in Ubuntu

Source: Internet
Author: User

Today, I tried to install fcitx In ubuntu (fcitx is a five-input pinyin method). Here is what I saw on my blog. I have successfully installed fcitx, now I will share it with you.

Install fcitx

1 $sudo apt-get install fcitx

Enter

1 $sudo gedit ~/.bashrc

Add a new line at the end of the opened file. The content is as follows:

1 export XMODIFIERS="@im=fcitx"

Set fcitx as the default input method

1 $im-switch -s fcitx -z default

Click: System -- preferences -- start application select Add button. In the displayed window, enter the fcitx command and enter fcitx-D.

Update the Language Pack. Otherwise, the input method output is garbled.

1 $sudo apt-get install language-pack-zh2 $sudo apt-get install language-pack-gnome-zh

Enter the command: fc-list on the terminal to display the Chinese font in the system. Scroll up to find the Chinese font in my computer is wenquanyi Zen Hei.

Then change the configuration

1 $sudo gedit ~/.fcitx/config

If the file is opened as garbled, refer to this blog post to modify: http://www.cnblogs.com/elect-fans/archive/2012/05/09/2492458.html
Replace the content of the first and second rows under the first [] brackets in the open file with wenquanyi Zen Hei.

This is because sometimes fcitx shows a box instead of a Chinese character.

You can modify other settings.

Save the file and exit.

Uninstall the ibus input method,

1 sudo apt-get remove ibus

After the restart, enter the user name, select Chinese language at the bottom of the welcome page, and enter Ubuntu Desktop with the keyboard China,

Open an editor and press Ctrl + space to switch to the fcitx input method.

 

 

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.