2021-06-08 11:28 PM
Hello,
I know it's not directly related to touchgfx but I thought someone out here could be able to help me and that it could interest others as well. I'm looking for a way to input chinese characters through a conventional qwerty keyboard. Searching the Internet, I found that one method to do so is called 'pinyin' and I'm therefore looking for a c/c++ library that does the job of converting those 'pinyin strings' to chinese characters.
Note that I don't speak a word of chinese, hence why it would be difficult to code it myself, even if I have a pinyin to chinese char database to start with. But that would help me anyway if you know one.
Also, if you know a library that does the conversion using another method (like cangjie for example), I'm willing to take it too !
Have a nice day,
G.
2021-06-09 01:35 AM
Hi,
Are you looking for something to write Chinese on windows when you type something on Google or in the textArea settings in TouchGFX Designer right ?Or do you mean through code ? For the latter, you should use the relevant unicode. For the first this video is a nice tutorial. When activated when you will write in pinyin it will show you a list of characters that matches the sound (since Chinese has actually 4 accents, a same "ma" sound can actually be pronounced in many ways and mean a lot of different things like horse or mother ^^).
For Kanji I guess it should be the same but @Alexandre RENOUX might have a better idea ;)
/Romain
2021-06-09 01:55 AM
Hi,
Thanks for your reply.
Sorry for not being clearer. I'm looking for something to write chinese in my application. That is, I have a touchGFX project with a standard qwerty keyboard widget as of now that allows me to write english, french, spanish, german,… But in the future, I need my application to support chinese too. It's easy to change all the fix texts of the project to chinese as touchgfx uses Unicode char by default. The difficult part is to be able to input chinese characters too… That is, I need to create a keyboard as shown in your video for my application…