How to create a Chinese Input Method?

Description

how to create Chinese Input Method?

What MCU/Processor/Board and compiler are you using?

What do you want to achieve?

What have you tried so far?

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

You would have to customize the keyboard character map.

emm…is there some example code? I think coutomize the keyboard character map may not work. Because when you want to input one Chinese Character, you will input several letters then spell one Chinese Character.Like which I showed below. I should input “zhong” 5 letters then it find out Chinese Character “中”

kb

I see. To do that, you would have to process the text area manually after each keypress. I don’t think we have any built-in functionality for this.

LV_EVENT_INSERT might help to manipulate the input.

Hi, now we have ime_pinyin can meet your needs and is still trying to add more functions.


你好,现在已经有了 ime_pinyin 组件,你可以直接在lvgl库(V8.3 +)中使用,我们正在努力尝试添加更多的功能。

请问lv_micropython如何set_dict,尝试了很多数据结构,不是报:AttributeError: ‘lv_pinyin_dict_t’ object has no attribute ‘py’ 就是报:SyntaxError: Cannot set field py on struct lv_pinyin_dict_t!
能给你一个lv_micropython的set_dict的例子么?