Install the fcitx Input Method in ubuntu10.10

Source: Internet
Author: User

1. Installed Ubuntu
It is in English, so it is best to install Chinese language support. You can select "language" in system management and "simplified Chinese ";

2. Confirm that scim has been deleted. If you have installed scim before, you can delete the scim Chinese Input Method Through scim Input Method settings, or enter "sudo apt-Get remove scim ";

3. You can download fcitx from the official fcitx website, or enter "sudo apt-Get install fcitx" on the terminal to obtain fcitx;

 

4. If the installation package is downloaded from the official website, decompress the package, install it, and enter "sudo./fcitx. Install;

5. the difficulty is to configure the penguin input method. First, you must go to ETC/X11/xsession. d/directory, create a file such as "95fcitx_start" and edit it, "sudo VI/etc/X11/xsession. d/95fcitx_start ", content input:

Export lc_ctype = zh_CN.UTF-8

Export xmodifiers = @ im = fcitx

Export xim = fcitx

Export xim_program = fcitx

Fcitx

6. After saving and exiting, remember to add executable permissions to the file and enter "sudo chmod + x/etc/X11/xsession. d/95fcitx. Install"

Restart the computer and the penguin will start automatically after it starts up. You can use the Chinese Input Method of penguin through Ctrl + space.

 

 

FAQs during installation and solutions:

Install fcitx on Ubuntu

Install fcitx
Sudo apt-Get install im-switch fcitx
Im-switch-s fcitx-Z default
Im-switch-s fcitx-Z default # modify the Default Input Method of the current user. For details, see man im-switch.

It is best to restart X after completing the settings, and the input method will take effect.

If the font of the software interface is square, gedit ~ /. Fcitx/config or gksu gedit/usr/share/fcitx/data/Tables. conf open the configuration file and modify the font.

Font list: xlsfonts or FC-list

The problem may coexist with scim. You only need to use im-switch to change the default input method to fcitx:
Sudo im-switch-A fcitx
Im-switch-A fcitx

Or method 2
Sudo gedit/usr/lib/gtk-2.0/2.10.0/immodule-files.d/scim-gtk2-immodule.immodules

Change the content to the following:
# Automatically generated by dh_gtkmodules, do NOT edit
"/Usr/lib/gtk-2.0/2.10.0/immodules/im-scim.so"
"Scim" "scim Input Method" "scim" "/usr/share/locale" "JA: Ko"
# Modify "ja: Ko: ZH" in the last line to "ja: Ko". After this modification, scim will not be started in the Chinese environment.

You can simply uninstall the default scim and then install fcitx (I did this anyway, and the default language is Chinese). The method is very simple. You can do it with two lines of commands, as shown below:
Sudo apt-Get autoremove scim
Sudo apt-Get install fcitx

For other settings, visit locale to use the Chinese input method.

[Edit]
Activate Input Method
Restart XWindow. Press Ctrl + space to activate the input method.

If it cannot be activated in the QT program or in the KDE environment:
Sudo gedit/etc/X11/xsession. d/95 xinput

Change content
Export xmodifiers = @ im = fcitx
Export xim = fcitx
Export xim_program = fcitx
Export gtk_im_module = fcitx
Export qt_im_module = xim
Fcitx

// Note: if there are quotation marks after the equal sign, it should be half-width

// Ubuntu8.04

Opera
Sudo gedit/usr/bin/Opera

Find
Export qt_im_module =

Change
Xim

// Opera9.51
[Edit]
Install fcitx (non-Deb package)

Download the latest stable version (pre-compiled package ia32)

Http://www.fcitx.org/main? Q = node/9

Decompress the package to any directory

Install
Sudo./fcitx. Install

Reverse installation
Sudo./fcitx. Uninstall

Now it is installed, but there are still some minor issues that need to be modified before it can be used properly on the im-switch.

1. Create a new file named fcitx at any location. 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. Then execute:
Update-alternatives -- install/etc/X11/xinit/xinput. d/all_all xinput-all_ALL/etc/X11/xinit/xinput. d/fcitx 30

2. Run
Sudo im-switch-s fcitx
Im-switch-s fcitx

Change the input methods of both accounts to fcitx.

[Edit]
Method of failure

I followed the steps above and still cannot enter Chinese Characters in 3firefox3.

Simply remove scim and fcitx, and then re-run sudo apt-Get install fcitx. After the installation is complete, log out and go to KDE again, and find that it works in firefox3.

I typed Chinese characters!

As for the reason, it is not clear that it is to solve the problem of firefox3 Inputting Chinese characters.

My release version is kubuntu8.04.
[Edit]
Fcitx latest source code

It is not difficult to compile and install http://code.google.com/p/fcitx
[Edit]
Fcitx Usage Details

Enable fcitx new configuration

After modifying the configuration file, fcitx does not need to restart X or kill before loading. When the input method is activated, press Ctrl + 5 to 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 extra fcitx code table

Fcitx has many input methods by default ~ /. Fcitx/config can be modified to remove the dual spelling and location. However, if you only use five strokes and occasionally need to switch to PinYin to create new words, you may hate to press Ctrl + shift several times, run 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
.........

Add # To something you don't need, or if you are sure you won't use these input methods to delete them directly in the future, save and exit. Activate the fcitx input status, and press Ctrl + shift to find that no extra code table exists.

Some shortcut keys are more convenient: Ctrl + 8 to add phrases, CTRL + 6 to adjust the word order, CTRL + 7 to delete phrases, and you can enter English quickly starting with a semicolon, you can use the Pinyin Input Method temporarily starting with Z (I believe these two items are too familiar to anyone who has been using the-plus method in Windows ). There are still some problems. For example, when I select a phrase, I often don't respond when I press 123. Then I changed "select the key for the second three candidates = Shift" to "select the key for the second three candidates =.
[Edit]
Fcitx preliminary beautification

The font of fcitx in Ubuntu is very small. You can modify the configuration file to solve this problem. First open the configuration file and enter
Gedit ~ /. Fcitx/config

Open the config file with gedit, change the font size to around 10, and change the font size of the main window to over 10. If wenquanyi is installed, modify the Chinese font as follows: show font (medium) = 文.
With the exception, you can change the Display Effect on the [interface] at will. You can change the shortcut key under the [shortcut key]. I will change the Chinese and English quick switch key to: Chinese and English quick switch key = l_shift. You can set fuzzy pinyin in [pinyin] and change the value 0 to the next one.
Below is my integrated online http://www.leninlee.cn /? The final result determined by the P = 177 # comment-97 configuration is for reference only.

[Program]
Show font (medium) = wenquanyi bitmap song
# Make sure you have installed wenquanyi zhenhei and can change it to another font.
Font (English) = wenquanyi bitmap song
Font size = 10 # not so small, about 12
Font size of the Main Window = 10 # Same as above
Font area = zh_CN.UTF-8
Whether to use AA font = 1
Whether to use bold = 1

[Output]
Digit followed by halfwidth symbol = 1
Enter key behavior = 2
Semicolon key behavior = 2
Uppercase letters = 1
Punctuation in English conversion = 1
Page flip prohibited by Lenovo mode = 1

[Interface]
Number of candidate words = 5
Whether the main window uses a 3D interface = 0
Enter 3D interface = 0
Main Window hiding mode = 0
Show virtual keyboard = 0
Whether to hide input entries automatically = 1
Whether the input entry is centered = 0
First display input = 1
# Fixed width of the input entry (only applicable to the code table input method). 0 indicates unfixed width.
Input fixed width = 0
Offset x = 1000
Input offset y =-1922
Add after serial number = 1
Show typing speed = 1
Show version = 0
Cursor color = 102 159 66
Main Window background color = 255 255 255
Main Window line color = 203 202 186
Main Window input method name color = 153 153 153 102 159 66 56 134 230
Input window background color = 255 255 255
Input window color = 2 89 196
Input window user input color = 255 0 132
Input window Serial No. Color = 0 66 200
First candidate color in the input window = 0 99 200
# This color value is only used for user self-creation in pinyin.
Input window, user phrase color = 0 99 200
Input window prompts encoding color = 255 0 132
# This color is used for five or more Chinese/system phrases.
Other text color in the input window = 56 134 230
Input window line color = 203 202 186
Input window arrow color = 193 227 151
Virtual Keyboard window background color = 220 220 220
Letter color of the virtual keyboard window = 80 0 0
Virtual Keyboard window symbol color = 0 0 0
# Except for "quick switch between Chinese and English", other hotkeys can be set to two, separated by Spaces
[Hotkey]
Enable/disable input = ctrl_space
# You can set the shortcut key to l_ctrl r_ctrl l_shift r_shift.
Quick Switch key = l_shift
Double-click switch between Chinese and English = 0
Key interval = 250
Cursor follows = ctrl_k
GBK supports = ctrl_m
GBK traditional switch key = ctrl_alt_f
Lenovo supports = ctrl_l
Lookup pinyin = ctrl_alt_e
Full halfwidth = shift_space
Chinese Punctuation = alt_space
Previous Page = -,
Next page =.
Third candidate word selection key =

[Input method]
Use Pinyin = 1
Use double fight = 1
Default dual-join solution = natural code
Location = 1
Usage code table = 1
Phrase = 1 in the prompt dictionary

[Pinyin]
Use full join = 0
Pinyin automatic group word = 1
Save automatic group word = 0
Add commonly used Chinese characters in pinyin = ctrl_8
Delete common pinyin characters = ctrl_7
Delete pinyin user phrase = ctrl_delete
# Pinyin is a fixed word key, followed by an equal sign. Do not have spaces
Pinyin: fixed word key = []
# How to adjust the re-code: 0 --> do not adjust 1 --> quickly adjust 2 --> adjust by Frequency
Pinyin single-character duplicate code adjustment method = 2
Pinyin phrase re-encoding adjustment method = 1
Method for adjusting the frequently-used Chinese characters in pinyin = 0
Whether to blur an and Ang = 1
Whether to blur en and ENG = 1
Whether to blur Ian and IANG = 1
Whether to blur in and ing = 1
Whether to blur ou and u = 0
Whether to blur UAN and Uang = 1
Whether to blur C and CH = 0
Whether to blur F and H = 0
Whether to blur l and n = 1
Whether to blur S and SH = 0
Whether to blur Z and ZH = 0

Save the settings and press Ctrl + 5 to enable the new settings when fcitx is activated. Fcitx version fcitx 'girldog '4.3.

This configuration works well on my computer.

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.