Ubuntu Linux Input Method fcitx box garbled solution settings

Source: Internet
Author: User

The built-in Input Method in Ubuntu Linux 10.04 is not very easy to use. There is still a big gap between the input method in Linux and that in windows. For a relatively good input method, I think fcitx is still correct, however, after the "sudo apt-Get install fcitx" command is run in Ubuntu, the box is garbled. This is because the default Chinese font setting is incorrect after fcitx is installed.

The configuration file of fcitx is ~ /. Fcitx/config

But directly use gedit ~ /. Fcitx/config the configuration file is displayed with garbled characters. The solution is to specify the encoding mode to open "sudo gedit -- encoding GBK ~ /. Fcitx/config "ubuntu is encoded in UTF-8 format by default, so you need to open the file in GBK mode.

[Program]
Show font (medium) = *
Show font (English) = Courier New
Font size = 12
Main Window Font size = 9
Font area = zh_CN.UTF-8
Use AA font = 1
Use bold = 1
Use the tray icon = 1

You need to change the configuration of the first line

"Display font (medium) = ar PL shanheisun uni"

After cancellation, fcitx works normally.

My fcitx configuration file is as follows. You can modify it as needed.

[Program]
Show font (medium) = wenquanyi bitmap song
Font (English) = wenquanyi bitmap song
Show font size = 12
Main Window Font size = 9
Font area = zh_CN.UTF-8
Use AA font = 1
Use bold = 1
Use Tray Icon = 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
The main window uses the 3D interface = 0
Input entry using 3D interface = 2
Hidden mode of the Main Window = 0
Show virtual keyboard = 0
Enter center = 1
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
Input offset x = 0
Input offset y = 16
Add after serial number = 1
Show typing speed = 1
Show version = 1
Cursor color = 92 210 131
Main Window background color = 240 255 240
Main Window line color = 150 220 150
Main Window input method name color = 170 170 170 150 200 150 0 0 255
Input window background color = 240 255 240
Input window color = 255 0 0
Input window user input color = 0 0 255
Input window sequence color = 200 0 0
First candidate color in the input window = 0 150 100
# This color value is only used for user self-creation in pinyin.
Input window user phrase color = 0 0 255
Input window prompts encoding color = 100 100 255
# This color is used for five or more Chinese/system phrases.
Other text colors in the input window = 0 0 0
Line color = 90 160 90
Input window arrow color = 255 0 0
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
[Hot Key]
Enable/disable input = ctrl_space
# You can set the shortcut key to l_ctrl r_ctrl l_shift r_shift l_super r_super.
Quick Switch key = l_shift
Double-click switch between Chinese and English = 0
Key interval = 250
Optical label follow = ctrl_k
Hide Main Window = ctrl_alt_h
Switch the virtual keyboard = ctrl_alt_k
GBK supports = ctrl_m
GBK traditional switch key = ctrl_alt_f
Lenovo = ctrl_l
Lookup pinyin = ctrl_alt_e
Full halfwidth = shift_space
Chinese Punctuation = alt_space
Previous Page =-
Next page =
Third-party candidate word selection key = 0

[Input method]
Use Pinyin = 1
Pinyin name = smart pinyin
Use double fight = 1
Double fight name = intelligent double fight
Default dual-join solution = natural code
Location = 1
Location name = Location
Usage code table = 1
Phrase = 1 in the prompt dictionary
Other input methods =

[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
Adjust the font of Common Chinese Characters in pinyin = 0
Blur an and Ang = 0
Fuzzy en and ENG = 0
Fuzzy Ian and IANG = 0
Fuzzy in and ing = 0
Fuzzy ou and u = 0
Fuzzy UAN and Uang = 0
Fuzzy C and CH = 0
Blur F and H = 0
Blur L and n = 0
Blur S and SH = 0
Fuzzy Z and ZH = 0

You also need to set fcitx as the default input method:

Im-switch-s fcitx

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.