Home Download Buy Blog Forum Support

Input method support

Input method support

Postby csslayer on Tue Apr 24, 2012 2:08 am

An older version of subl seems provide a bad support of input method, and the latest version even seems remove it.

I hope sublime will support input method correctly, since it's a requirement for all CJK user, which sublime developer might ignore.

I'm developer of Fcitx, an input method framework on linux, for some technical details:
1. do not grab key event before input method.
2. do not eat key event it doesn't use.
Input method should always have the highest priority for key event, and by default input method use "ctrl + space" as default trigger key, which all application should avoid.

Thanks.
csslayer
 
Posts: 5
Joined: Tue Apr 24, 2012 2:02 am

Re: Input method support

Postby csslayer on Wed May 02, 2012 1:55 pm

After some explore at least sublime missing gtk_im_context_focus_in for the text widget.
csslayer
 
Posts: 5
Joined: Tue Apr 24, 2012 2:02 am

Re: Input method support

Postby passchaos on Thu May 03, 2012 3:42 am

遇见csslayer大神了,我也这些问题折磨,不过也同样惊奇于fcitx的兼容性,我用ibus完全不能输入。btw:从build 2183开始,st2已经不再占用ctrl-space了
passchaos
 
Posts: 1
Joined: Mon Mar 26, 2012 10:01 am

Re: Input method support

Postby jps on Fri May 04, 2012 6:13 am

Builds 2183 and later (see http://www.sublimetext.com/dev) should work with IMEs on Linux, as the application no longer captures ctrl+space.

I'm not at all familiar with Fcitx, but I tried it on Ubuntu and it seemed to be working: After pressing ctrl+space, the IME window appeared, and I was able to enter characters using it.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Input method support

Postby csslayer on Fri May 04, 2012 3:20 pm

Hi, jps

No, it doesn't work. I have give 2195 a try on ubuntu 12.04 (I can test it on so many other distribution, but result will not change), for both fcitx and ibus (ubuntu default).

Please check what I said, I fully understand why sublime doesn't work. sublime is missing gtk_im_context_set_focus call. Input method will not process key when widget don't have focus, otherwise it will cause some other bug.

After I gdb attach and set focus manually. I still find backspace being grabbed by sublime text first, I don't know there is some other key is grabbed, but please check it.
csslayer
 
Posts: 5
Joined: Tue Apr 24, 2012 2:02 am

Re: Input method support

Postby csslayer on Fri May 04, 2012 3:43 pm

and
please call gtk_im_context_set_cursor_location, argument is the position corresponding to the window.
It will make input window of input method appear at the cursor position, which is important to most CJK user.
csslayer
 
Posts: 5
Joined: Tue Apr 24, 2012 2:02 am

Re: Input method support

Postby nigelvon on Mon Jul 02, 2012 11:31 am

Any response?
This problem is really concern most of the chinese, japanese, korean sublime text users.
nigelvon
 
Posts: 1
Joined: Mon Jul 02, 2012 11:25 am

Re: Input method support

Postby e3test on Wed Jul 18, 2012 1:40 pm

vietnam sublime text users too.
any news?
e3test
 
Posts: 1
Joined: Wed Jul 18, 2012 1:39 pm

Re: Input method support

Postby csslayer on Sun Aug 12, 2012 8:13 am

just tried today, still not work (2.2216)

please check #2 hint for how to fix it. Most gtk im module implementation don't send keyboard event if widget don't have focus.
csslayer
 
Posts: 5
Joined: Tue Apr 24, 2012 2:02 am

Re: Input method support

Postby karida on Fri Oct 19, 2012 3:41 am

Since user "csslayer" gives so many hints how to solve this problem, I'm wondering why this couldn't be fixed yet.
It's really an important issue for most CJK users.
karida
 
Posts: 3
Joined: Wed Feb 22, 2012 10:23 am

Next

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 22 guests