SDL_TEXTINPUT/EDITING and Linux with IBus

Hello everyone.
I am working on an application with SDL2 which needs to accept Korean text
and maybe Chinese in the future. Since SDL2 includes new SDL_TEXTINPUT
events, I figured that this would be no problem. However, it seems this
part of the API is very poorly documented, however, I think I understand
how it is meant to work and wrote a sloppy and basic test which just prints
out whatever it receives in a text input event to the command line. I call
SDL_StartTextInput first and It works fine for any English text, however,
pressing the ibus hotkey to change to Korean input does nothing (only works
normally when a text box is highlighted, which I hoped SDL_StartTextInput
would do). Continuing to type produces English characters, and if I change
to Korean input outside of my application and then go back to the
application then the event still receives English letters instead of Korean
characters.
Since it works for English text, I think I have my code right, so I assume
the problem is just that SDL doesn’t work with Ibus on Linux. My
application will be deployed mainly on Windows computers, but since I don’t
own a Windows computer, testing will be difficult if the Korean input only
works on Windows. Plus, I want the application to at least have the option
of running on Linux, maybe someday the Korean government will stop
mandating the use of Microsoft’s proprietary technology…
So, is there a way to get Korean input to work on Linux with SDL2?

Thanks,
–Philip Rushik

Ibus support is not implemented in SDL2 yet.On Thu, Aug 15, 2013 at 6:31 PM, PHilip RUshik (??) wrote:

Hello everyone.
I am working on an application with SDL2 which needs to accept Korean text
and maybe Chinese in the future. Since SDL2 includes new SDL_TEXTINPUT
events, I figured that this would be no problem. However, it seems this
part of the API is very poorly documented, however, I think I understand
how it is meant to work and wrote a sloppy and basic test which just prints
out whatever it receives in a text input event to the command line. I call
SDL_StartTextInput first and It works fine for any English text, however,
pressing the ibus hotkey to change to Korean input does nothing (only works
normally when a text box is highlighted, which I hoped SDL_StartTextInput
would do). Continuing to type produces English characters, and if I change
to Korean input outside of my application and then go back to the
application then the event still receives English letters instead of Korean
characters.
Since it works for English text, I think I have my code right, so I assume
the problem is just that SDL doesn’t work with Ibus on Linux. My
application will be deployed mainly on Windows computers, but since I don’t
own a Windows computer, testing will be difficult if the Korean input only
works on Windows. Plus, I want the application to at least have the option
of running on Linux, maybe someday the Korean government will stop
mandating the use of Microsoft’s proprietary technology…
So, is there a way to get Korean input to work on Linux with SDL2?

Thanks,
–Philip Rushik


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Patches welcome! :)On Thu, Aug 15, 2013 at 12:20 PM, Dimitris Zenios <dimitris.zenios at gmail.com wrote:

Ibus support is not implemented in SDL2 yet.

On Thu, Aug 15, 2013 at 6:31 PM, PHilip RUshik (??) wrote:

Hello everyone.
I am working on an application with SDL2 which needs to accept Korean
text and maybe Chinese in the future. Since SDL2 includes new SDL_TEXTINPUT
events, I figured that this would be no problem. However, it seems this
part of the API is very poorly documented, however, I think I understand
how it is meant to work and wrote a sloppy and basic test which just prints
out whatever it receives in a text input event to the command line. I call
SDL_StartTextInput first and It works fine for any English text, however,
pressing the ibus hotkey to change to Korean input does nothing (only works
normally when a text box is highlighted, which I hoped SDL_StartTextInput
would do). Continuing to type produces English characters, and if I change
to Korean input outside of my application and then go back to the
application then the event still receives English letters instead of Korean
characters.
Since it works for English text, I think I have my code right, so I
assume the problem is just that SDL doesn’t work with Ibus on Linux. My
application will be deployed mainly on Windows computers, but since I don’t
own a Windows computer, testing will be difficult if the Korean input only
works on Windows. Plus, I want the application to at least have the option
of running on Linux, maybe someday the Korean government will stop
mandating the use of Microsoft’s proprietary technology…
So, is there a way to get Korean input to work on Linux with SDL2?

Thanks,
–Philip Rushik


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

So essentially IME-like support is pretty much a no-no on Linux? :confused:
Well, there goes my idea of testing that.

Stupid question, what’s the difference between dBus and iBus?

2013/8/15 Sik the hedgehog <sik.the.hedgehog at gmail.com>

So essentially IME-like support is pretty much a no-no on Linux? :confused:
Well, there goes my idea of testing that.

Stupid question, what’s the difference between dBus and iBus?

If you’re talking about “D-Bus”, that’s just a generic RPC (remote
procedure call) implementation.
It is not directly affiliated with input methods.

Ok, well that explains that. Does SDL2 support SCIM or something else? Does
SDL2 support TSF (Windows)?On Fri, Aug 16, 2013 at 4:20 AM, Dimitris Zenios <dimitris.zenios at gmail.com>wrote:

Ibus support is not implemented in SDL2 yet.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Ibus support is not implemented in SDL2 yet.

Doesn’t Ibus support the XIM protocol?

–ryan.

 Ibus support is not implemented in SDL2 yet.

Doesn’t Ibus support the XIM protocol?

Supposedly, yes. It needs to be enabled at runtime with the --xim flag.
However, still doesn’t work with SDL2. The IBus website has very little
information, but I did manage to find the API documentation:
http://ibus.googlecode.com/svn/docs/ibus-1.5/index.htmlOn Fri, Aug 16, 2013 at 11:28 AM, Ryan C. Gordon wrote: