Fix Ubuntu under sublime Text 3 cannot input Chinese

Source: Internet
Author: User
Tags sublime text

Objective

Sublime is very useful, but Ubuntu can not input Chinese, this is a very big problem. Do not know why the development has been not resolved, fortunately, there are experts in. Always find a way.

The online method is very much, but also very disorderly, now I will own experience summarizes.

First, I have participated in several articles. It's all pretty good. Listed first:

    1. Sublime-text-imfix: This method is recommended first. The simplest. But there are some problems on my system.

      This can be highly recommended with this

    2. The perfect solution for Linux under Sublime Text Chinese input: Speak more clearly. can also be used for references.
    3. Ubuntu under Sublime Text 3 solution Cannot input Chinese method: The explanation is clearest, suggest to look.
My way.

1. Download the files we need, open the terminal, enter:

git clone https://github.com/lyfeyaj/sublime-text-imfix.git

2. ThesublMove to/usr/bin/, and Willsublime-imfix.soMove to/opt/sublime_text/(Sublime's installation folder)
Terminal input:

cd ~/sublime-text-imfixsudo cp ./lib/libsublime-imfix.so /opt/sublime_text/sudo cp ./src/subl /usr/bin/

3. With subl command try to start sublime, assuming the successful start. You should be able to type in Chinese.
Terminal input:

LD_PRELOAD=./libsublime-imfix.so subl

4. But this can only be used to start the ability to enter Chinese with the above command line. We need a simpler approach. I chose to create a new shell script, very easy, just a word.


Sublime New file Input:

#!/bin/bashld_preload=/opt/sublime_text/libsublime-imfix.so Subl  

Then save the file as sublime (note: no suffix), and put to /home directory.

5. All the work is finished. To start, direct terminal input: bash ~/sublime , start sublime on the line, and you can enter Chinese.

6. If you don't need to enter Chinese, just open it as you once did. The purpose of the script file is to easily open the sublime that can input Chinese.

Description

This is just a stopgap, the perfect solution is not yet, just wait for sublime developers to update.


On-line so-called perfect solution. There is still a problem, for example, if you change the desktop shortcut, then the sublime Browse Packages function cannot be used, of course. There are other problems. For normal use, I didn't change it.

Of course, if you have more Chinese input, or suggest changes to the desktop shortcut, after all, it will be more convenient and detailed how. their own choice.

Other than that. Input method does not follow the box, temporary no solution ah.

Fix Ubuntu under sublime Text 3 cannot input Chinese

Related Article

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.