Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Input Chinese characters  (Read 2320 times)

0 Members and 1 Guest are viewing this topic.

kiss_lawrence

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Input Chinese characters
« 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~

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Input Chinese characters
« Reply #1 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
AW: Input Chinese characters
« Reply #2 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Paalon

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Input Chinese characters
« Reply #3 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.