Install fcitx penguin Input Method in Ubuntu

Source: Internet
Author: User
Under Ubuntu Security InstallationFcitx little penguin input method (but the fcitx author no longer maintains it) is transferred from Ubuntu Chinese
First download the stable version of the pre-compiled package (pre-compiled ia32)
Address
Http://www.fcitx.org/main? Q = node/9
Decompress tar-jxvf file.tar.bz2 to enter the Directory Security Installation

Sudo./fcitx. Install

ReverseSecurityInstallationSudo./fcitx. Uninstall

Modify configurations
Create a file fcitx
The content is as follows:

XIM=fcitx
XIM_PROGRAM=/usr/bin/fcitx
XIM_ARGS=""
GTK_IM_MODULE=XIM
QT_IM_MODULE=XIM
DEPENDS="fcitx"

Copy to/etc/X11/Xinit/xinput. d/to ensure that Im-switch can find it

2. Run

sudo im-switch -s fcitx
im-switch -s fcitx

Change the input methods of both accounts to fcitx.

Fcitx Usage Details

New configuration with fcitx

After modifying the configuration file, fcitx does not need to restart X or kill before loading. When the input method is activated, you only need to pressCTRL + 5To load the new configuration file.

Fullwidth symbol

If the fcitx character is changed to the full-width character in the latest text, Chinese characters cannot be entered (if you have changed the corresponding settings, it is another matter)

Lock Input Method

The panel of the fcitx input method has a small lock chart. When you click it to make it red, you cannot switch to other input methods through Ctrl + shift, when you click it to make it gray, you can switch between input methods. For a single input method, you can avoid the trouble of mistakenly pressing CTRL + shift.

Remove fcitx multi-table

Fcitx has many input methods by default ~ /. Fcitx/config can be modified to remove the dual fight and location, but if you only use five strokes and occasionallyYesWhen you switch to pinyin, you may hate pressing CTRL + shift several times and execute the following command:

kdesu kate /usr/share/fcitx/data/tables.conf    #kubuntu 
gksu gedit /usr/share/fcitx/data/tables.conf #ubuntu
gksu mousepad /usr/share/fcitx/data/tables.conf #xubuntu

The content is roughly like this.

# Annotate with # Headers
[Code table]
Name = five-stroke
Code table = wbx. MB
Pinyin = 1
Pinyin key = z
.........
.........
# [Code table]
# Name = two
# Code table = EB. MB
.........
.........
# [Code table]
# Name = warehouse receiving
# Code table = CJ. MB
.........
.........

If you do notYesAdd#Or if you are sure that you will not use these input methods to delete them in the future, save and exit. Activate the fcitx input status, and press Ctrl + shift. Then, you will find that there are no additional code tables.

II
I encountered a little trouble today, in UbuntuSecurityInstallationThe fcitx Input Method encountered two problems:
One is that the prompt cannot be found at make.X11/XPM. h
This is a good solution, onlyYesSecurityInstallationXlibs-Dev.
Apt-Get install xlibs-Dev

The other is that the characters to be selected under the input bar are garbled characters, that is, only some small boxes are displayed, and even the words selected by the input method are also small boxes. This problem is quite troublesome. I checked a lot of information online and there seems to be many solutions. For example, the "font area" should be set to zh_cn.gb2312, and the "display font" should be changed to simsun. Fcitx. xft is the most widely used version. But where is the xft version? What about?How can I compile an xft version??I cannot find it. Although the -- enable-xft parameter can be used in configure, it does not seem to work. Fcitx's forum was very lively, but none of them could solve the problem. Up has gradually lost confidence. Finally, I found in a post that the fcitx author mentioned that there is no dot matrix character in the system.?Download one.
Up select Wenquan translation and downloadSecurityInstallationAfter ~ In the/. fcitx/directory, change "font" to wenquanyi bitmap song and restart X.
$ Cat. fcitx/config
[Program]
Show font (medium) = wenquanyi bitmap song
Show font (English) = Courier New
Show font size = 12
Font size of the Main Window = 11
Font area = zh_CN.UTF-8
Whether to use AA font = 1
...

Success!
If it is trueYesA dot matrix font, like dongwensong in the red flag system. Can I copy and use this font directly?

For this input method, we spent one afternoon and half a night. The purpose is to use yongzhong office under Ubuntu and generate a report for the user, the default input method does not work properly. I have finished writing 10 reports, but I can accept them once and for all.

III
Today, it is a pity that yuking is no longer working on the fcitx project. However, everyone has the right to choose freely. First of all, I would like to thank the fcitx authors for their continuous efforts (6 years, and help Linux beginners like me use Chinese input methods! Fcitx is my favorite Chinese Input Method !!
In ubuntu, the default input method is scim.What?For example, if you cannot enter any characters in the Pidgin, I directly apt-Get install fcitx. However, these two input methods cannot work at the same time. I want apt-Get remove scim, if you delete scim, language-support-ZH is also deleted. Maybe they are mutually dependent? The first time I tried apt-Get remove scim *, I couldn't connect to the desktop. After I went in, I could only see the desktop background image. Everything else was gone. However, compiz's 3D desktop effect also exists, that is, there is no taskbar, and ALT + F2 cannot be called, so we have to re-Execute scim.SecurityInstallationOn, go to the Internet to view, the original can be like this:

Point the/etc/alternatives/xinput-zh_CN link back to/etc/X11/Xinit/xinput. d/fcitx file. In this way, scim is still in the machine, language-support-ZH is also in, fcitx is also in, huh, but scim is not working. Well, you can use your favorite fcitx as the default input method for my Ubuntu gutsy desktop.

Finally, we hope that someone will take over the fcitx project as soon as possible. We will see the release of fcitx 3.5 and the start of Version 4.0 as soon as possible. Otherwise, what can I do if I only use fcitx??If I use Linux, I cannot even use Chinese files.What?Yeah?

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.