Ubuntu14.04 install Chinese Input method and solve gedit Chinese garbled problem

Source: Internet
Author: User

1 Setting the Chinese display environment

1. Open the System Settings

2. Open personal-> Language support.

The following dialog box appears, prompting you to "language support is not complete." Click "Remind Me later".

3. In "Language support", click "Install/remove Languages", in the open window, find "Chinese (Simplified)" and tick on, click "Apply Changes".

4. The above only downloads the language pack, but also needs to switch the system language to make it effective.

At the bottom of "Language for menus and Windows" in "Language support", drag Chinese (Chinese) to "English" and the font from "gray" to "black". Restart the system, the entire interface becomes Chinese. (If you still want to keep the English system, this step can be omitted)

2 Setting Chinese Input method

1. First, in "Language support", "Keyboard Input Method System" Select IBUs, click "Apply System-wide" (apply to the entire system), and then close.

Then press "Ctrl + SPACEBAR" or can not switch, you need to set the next IBUS.

2. Open "Text Entry" under System settings->personal.

Click "+" in the lower left corner, find "Chinese (Pinyin)" in open "Choose an input source", click "Add", Add. Once added, you can click "^" "V" to adjust the default location of the input method.

3 Installing the Googlepinyin Input method

1. Open "Ubuntu software Center", Search for "IBUs" in the search bar, and at the bottom of the display results, click Show All Items.

2. Find "Googlepinyin engine for IBUs" and click "Install".

3. When other input methods for IBUs are installed, you need to add the appropriate input method to the "text Entry" under System settings->personal, otherwise the upper right-hand taskbar is not visible to the newly installed input method.

4. Further setup

You can open the keyboard input method item in the/usr/share/applications directory for further IME settings.

5. Add the newly installed input method and set it accordingly.

Tick "Customize Active input Methods", then click "Show all Input methods" in the drop-down box, select Googlepinyin in Chinese, add it, add it to input method.

It is important to note that Googlepinyin cannot be set further under the IBUs frame (when you googlepinyin in the midpoint of input method, the preference button on the right is grayed out).

4 Installing the Sogoupinyin Input method

1. First download the Deb installation package from the official website

http://pinyin.sogou.com/linux/

2. Installing the FCITX Frame "3"

sudo apt-get install FCITX

3. Install the Deb package

Sogou provides the installation guide for Ubuntu14.04, you can double-click the Deb file to install "4"

When you double-click the Deb file, it will go to Ubuntu software Center and click "Install".

For Ubuntu12.04, please refer to "4" for installation.

4. Set the keyboard input mode system

Select Fcitx in the System settings-> "Language support", "Keyboard Input Method System", then click "Apply System-wide" (apply to the entire system) , and then close.

5. Reboot the system and configure it as follows

(1) Click the icon in the upper-right corner of the keyboard, click "Configure", open the "Input Method Configuration" window, tap the "+" icon in the lower left corner.

(2) Click on the "+" icon in the lower left corner will appear "Add Input Method" window, and then must be "only Show current Language" tick off ( very important, otherwise can not find just installed Sogou Input Method! ) ) "5".

(3) Finally, enter Sogou in the Input box and select Click OK. When you're done adding it to the bottom of the list, notice that it's the bottom! Then the default input method is Sogou input method.

6. Precautions

(1) Do not uninstall your own IBUs, because a lot of other software will use it, uninstall will cause system instability. "3"

(2) ubuntu14.04 does not need to add PPA software source, if not download FCITX first enter the following command to update.

sudo apt-get update

5. Open the workspace

ubuntu14.04 has only one workspace by default. If you need more than one workspace, you can set the following:

"System Settings"->appearance->behavior, tick "Enable Workspace" to open the workspace. This allows the system to provide four workspaces.

6. Solve Gedit Chinese garbled problem

garbled reason "6":

When I open a txt text file under some windows, Chinese is garbled. However, when you write a new file with gedit, the input Chinese can be displayed normally, after saving and then exiting can be displayed normally. And for the text file under Windows, not all of the Chinese language is displayed as garbled.

Tidy up the idea, if it is really Chinese can not display the problem, that is, font setting problem, there should not be a file can display the Chinese language, should be all garbled. In fact, this is not the case, so this speculation can be ruled out. So, will it be a problem with file encoding? The default encoding under Linux is UTF-8, while the default encoding under Windows is GB2312/GBK. Is the problem caused by the coding problem? Switch to the Windows system, enter a section of Chinese, save the TXT file as UTF-8, and then save the same file as the GB2312 encoded format. Switch to Ubuntu 14.04 again, open these two files, sure enough GB2312 encoded file garbled.

NOTE :The resolution used in "6" has no "/apps/gedit-2/" entry after Ubuntu12.04. Gconf-editor. Need to use Dconf-editor to modify. Gnome2 's Registry Editor Gconf-editor is being replaced by dconf-editor, and more hidden settings can be modified by Dconf-editor.

workaround "7":

1. Open the terminal and enter the command in it:

sudo dconf-editor

If Dconf-editor is not installed, first use the sudo apt-get install dconf-editor installation.

2. In the new window, in the left-hand side, expand/org/gnome/gedit/perferences/encodings, modify the configuration information, in the value of the auto-detected item ' UTF-8 ' after adding, ' GB18030 ' , add "GB18030" after the shown-in-menu corresponding value (note that there is a space after the comma). Close and run gedit again to take effect.

Reference

"1" How to change the Chinese language and Chinese Input method (http://shizhifang886.blog.163.com/blog/static/3058511020126149559199/)

Installation of "2" Ubuntu 14.04 Chinese Input Method (http://sixipiaoyang.blog.163.com/blog/static/623235882014450916276/)

"3" Some things to do after installing ubuntu14.04 (http://www.cnblogs.com/marcowei/p/3841342.html)

"4" Sogou Input method for Linux Installation Guide (http://pinyin.sogou.com/linux/help.php)

"5" Ubuntu14.04 installation Sogou Input Method (http://jingyan.baidu.com/article/ad310e80ae6d971849f49ed3.html)

"6" to solve the Ubuntu gedit Chinese garbled problem (http://blog.csdn.net/lemonzone2010/article/details/6041187)

"7" ubuntu12.04 under the gedit Chinese garbled solution (http://javaloverlover.iteye.com/blog/1729135)

Ubuntu14.04 install Chinese Input method and solve gedit Chinese garbled problem

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.