xhebox / wlpinyin

[WIP] experimental Chinese wayland Input method (IME)
MIT License
48 stars 5 forks source link

How to use wlpinyin? #1

Closed dianhenglau closed 3 years ago

dianhenglau commented 3 years ago

Hi. I have managed to compile and run wlpinyin:

$ ./wlpinyin
[../pinyin_engine.c:24] context_obj: 0x5634a92acef0, sess: 0, msgtype: deploy, msg: start
[../pinyin_engine.c:24] context_obj: 0x5634a92acef0, sess: 0, msgtype: deploy, msg: success
[../pinyin_engine.c:102] schema_name: 朙月拼音, id: luna_pinyin
[../pinyin_engine.c:24] context_obj: 0x5634a92acef0, sess: 94784185929936, msgtype: option, msg: _auto_commit
[../pinyin_engine.c:24] context_obj: 0x5634a92acef0, sess: 94784185929936, msgtype: option, msg: !ascii_mode
[../pinyin_engine.c:24] context_obj: 0x5634a92acef0, sess: 94784185929936, msgtype: schema, msg: luna_pinyin/朙月拼音
[../im.c:225] activate

So, what's next? What should I do to enter Chinese words? I'm using swaywm.

By the way, thank you for working on this project!

xhebox commented 3 years ago

You need to configure librime by your self first, just like other librime based IME. But it is ok to just use the default if you are to test rather than using wlpinyin.

And a client that has adapt the new IME protocol is needed: GTK3 is fine. I am using wlpinyin in firefox mainly.

Ctrl is the default key to toggle rime/english input. Then just press some keys, the candidate area will have something, space or numkey select the chinese character. If you meet a problem, I can give it a try.

EDIT: It does has some problems that affects usee experience. If you are trying to find a wayland IME, i recommend fcitx, which works for all xwayland apps. Unless you are in a pure wayland env, or need to test new protocol...