Linux下面切换到中文输入法,在sublime和jetbrains全家桶下面中文输入法都无法跟随,都会浮动到桌面的左下角。Google找了一下答案,基本都说是fcitx的原因,和IDE没有关系。请问有遇到同样问题的朋友吗?能否给一下建议?不管是sougoupinyin
还是googlepinyin
都是一样的。
ps: 但是在Vim(终端)以及浏览器下面都没有问题,输入法可以正常跟随。运行环境是Ubuntu16.04。
Linux下PyCharm中文输入法的跟随问题
JAVA写的IDE输入法在linux下老是会错位?
Actually, it has something to do with the editor, because the editor has not been internationalized. Take sublime text 3 as an example. In fact, the official Linux version does not have a compatible input method at all.
Take gtk2 as an example. To make the program support input method, you must first have an input method context
GtkIMContext *im_context
, and then you need to manually activate this input method context when you get focus:Not only that, but also monitor various signals, such as input content updates, associated words, commits, etc...
Finally, you can also tell the input method through this method where my current cursor is, and your input method should adjust according to the position I gave:
Many editors have input method compatibility issues under Linux. After all, people only need to input English and do not need an input method. They are too lazy to do so much, and there is no way to test it after doing so much. And there are some differences between fcitx and ibus.
Terminals and browsers are all made by Ubuntu, Google, and Mozilla. They have dedicated international teams, and of course they have to do a better job.
Finally add the API: https://www.gtk.org/api/2.6/g...
It seems that the official has not solved this problem yet; the author can try to install it
IMESupport
,不过IMESupport
This plug-in is now missing under PackageControl. . . (ノ﹏ヽ)See if the editor has set the encoding to UTF8