SFML community forums

Help => General => Topic started by: kiss_lawrence on March 02, 2015, 08:41:28 pm

Title: Input Chinese characters
Post by: kiss_lawrence on March 02, 2015, 08:41:28 pm
Hello,

I want to implement a function to let users input from a English keyboard, and display the corresponding characters in Chinese. This is usually done by the IME installed on our systems, I want to know if it's possible in SFML to use the system IME in some ways? If it's not possible, are there other ways to solve this problem?

Thank you very much~
Title: Re: Input Chinese characters
Post by: Mario on March 03, 2015, 01:10:31 am
No, you'd have to implement that yourself. Closest you'll get right now from SFML is the ability to show or hide the virtual keyboard on mobile devices. There's no IME support and I don't think there are any plans for that.

Rendering the actual characters shouldn't be a problem though.
Title: AW: Input Chinese characters
Post by: eXpl0it3r on March 03, 2015, 07:53:51 am
If you switch the keyboard layout and use the TextEntered event it should work.
But if want to match English characters to Chinese ones, you'll have to do it yourself.
Title: Re: Input Chinese characters
Post by: Paalon on January 19, 2017, 01:09:29 am
SFML is multi-media. I think supporting IME is one of the important role of wrapper library. More than 90% of Japanese use ローマ字入力 which is one of the input method with IME. I assume that it's not only the problem of Japanese. I know it's difficult to include such feature, but I think lack of IME support is the critical reason not to use SFML for such people. I like SFML. It's nice library. Thanks.