Original address: (Jane book author) http://www.jianshu.com/p/bf05fb3a4709
Objective
Sublime very useful, but ubuntu14.04 can not input Chinese, this is a big problem. Do not know why the development has been not resolved, fortunately, there is a master in, always find a way. Many online methods, but also very messy, now I will own experience to summarize.
First of all, I refer to several articles, are pretty good, first listed:
- Sublime-text-imfix: First of all, this method is the simplest, but there are some problems on my system. This can be highly recommended with this
- The perfect solution for Linux under Sublime Text Chinese input: Speak more clearly, can also be used for reference.
- Ubuntu under Sublime Text 3 to resolve the inability to input Chinese method: The most clear explanation, suggest to see.
My way.
1. Download the files we need, open the terminal, enter:
git clone https://github.com/lyfeyaj/sublime-text-imfix.git
2. Move to subl
/usr/bin/
, and sublime-imfix.so
move Lib to /opt/sublime_text/
(Sublime's installation directory)
Terminal input:
CD ~/sublime-text-imfixsudo CP. /lib/libsublime-imfix.so/opt/sublime_text/
sudo mv/usr/bin/subl/usr/bin/subl.backup% for the sake of safekeeping, the original SUBL program is backed up by sudo cp. /src/subl/usr/bin/
3. Use the command to try to subl
start the sublime, if the successful start, you should be able to input Chinese.
Terminal input:
Ld_preload=./libsublime-imfix.so Subl
4. But this can only be started with the command line above to enter Chinese, under the folder Src has a sublime-text.desktop, copy the file to/usr/share/applications/:
sudo mv/usr/share/applications/sublime-text.desktop/usr/share/applications/sublime-text.desktop.backup
sudo cp src/sublime-text.desktop /usr/share/applications/
5. So far, all the work has been done. If you want to start, you can start sublime by searching for sublime directly in the quick search, and you can enter Chinese.
6. If you do not need to enter Chinese, you can restore the direct sublime-text.desktop.backup.
Resolve Ubuntu14.04 under sublime cannot input Chinese