Rewrite rime_api_console.cc
in C#
https://github.com/rime/librime/blob/master/tools/rime_api_console.cc
Windows 10 1903 and later (UTF-8 issue)
- Put rime.dll, schema and opencc in same folder
- Set font in your cmd/powershell to show Chinese charactor
Ex: MingLiU - Change code page to show UTF-8
chcp 65001
.\RIMEtest.exe
It will spend more time in first startup.
Your can start typing after these lines shows up:
I20220326 13:33:14.058302 10636 engine.cc:123] updated option: ascii_mode
I20220326 13:33:14.058302 10636 engine.cc:123] updated option: zh_trad
I20220326 13:33:14.058302 10636 engine.cc:123] updated option: zh_tw
I20220326 13:33:14.058302 10636 engine.cc:123] updated option: zh_simp
I only list most used key here:
- {Backspace}
- {Page_Down}
- {Page_Up}
- {Escape}
- {Return}
Full list: https://github.com/rime/librime/blob/master/src/rime/key_table.cc
print schema list
select schema {0}
select schema luna_pinyin
select schema cangjie5print candidate list
select candidate {0}
set option {0}
set option zh_simp
set option zh_trad
set option zh_tw
set option ascii_mode
set option !ascii_mode