Sublime and Foxit Reader in Ubuntu cannot use the Chinese Input method solution

Source: Internet
Author: User
Tags sublime text

Although many of the software under Ubuntu is the same as under Windows, there are often a variety of small problems, the most troubling of which is the input method problem in the software.

Sublime as a cross-platform editing software, can support Win,linux and Mac system, very useful, but after the installation of Sougou input method, after the use of sublime open file can not input Chinese.

Sublime uses the following methods to fix Chinese input method problems:

See the original posts:

Fix Ubuntu under sublime Text 3 cannot input Chinese

The first method recommended by the author can solve my problem perfectly, and it is recommended that you try the first method to solve it first.

1. Sublime-text-imfix, the first recommendation of this method, the simplest, and in my system above the pro-test effective.

See GitHub on how to use it:

&& sudo apt-get upgrade
    • Clone this repo in your local directory:
git clone https://github.com/lyfeyaj/sublime-text-imfix.git
    • Change your current directory to sublime-text-imfix :
CD Sublime-text-imfix
    • Run the below script:
./sublime-imfix
    • done! Re-login your X windows. And then your can enjoy using Sublime Text 3 with Fctix Input method!

Foxit Reader is also a very mature pdf reading software under Ubuntu, supporting the reading and commenting of PDF software in both English and Chinese, as well as providing a rich annotation tool, very convenient.

And Foxit Reader is also a cross-platform software that can be used under multiple systems. After installing the latest version of the Foxit Reader software, Chinese input and comments are not supported, so it's very cumbersome to search and try out a lot of solutions, but only one solution solves my problem perfectly.

Solution:

1. Add environment variables in ~/.profile and/etc/profile so that Foxit reader can get information about Input method environment variables:

sudo gedit/etc/profile

Add the following variable information to the file:

Export gtk_im_module=fcitxexport qt_im_module=fcitx #最重要的一句export xmodifiers[email protected]= Fcitx

Restart or use the following statement to make the environment variable effective:

sudo ldconfig

The main reason for adding this environment variable is that Foxit reader needs to add support for fcitx such as GTK,GTK3,QT, so that environment variables are set before starting.

See the original posts:

Unable to enable FCITX in Foxitreader

Why can't I use FCITX to enter Chinese in some software?

Also search for other solutions, after the attempt did not solve my problem, summed up for everyone to try:

Foxit Reader comments cannot be entered in Chinese

Ubuntu--foxitreader cannot use Chinese Input method

Sublime and Foxit Reader in Ubuntu cannot use the Chinese Input method solution

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.