chewing / libchewing

libchewing - The intelligent phonetic input method library
https://chewing.im/
GNU Lesser General Public License v2.1
356 stars 89 forks source link

拼音模式應直接輸出非拼音符號 #592

Open kanru opened 4 days ago

kanru commented 4 days ago

第 123 號, 僅得 第 號, 否則必先切換英文,才能打半型數字。

Originally posted by @jidanni in https://github.com/chewing/libchewing/issues/585#issuecomment-2211552491

Test case:

ChewingContext *ctx;
ctx = chewing_new();
start_testcase(ctx, fd);
chewing_set_KBType(ctx, KB_HANYU_PINYIN);

type_keystroke_by_string(ctx, "pin yin  123 mo2shi4");
ok_preedit_buffer(ctx, "拼音 123 模式");

chewing_clean_preedit_buf(ctx);
chewing_delete(ctx);
kanru commented 4 days ago

@jidanni can you try this fixed version?

Pre-built binary:

curl -O https://people.debian.org/~koster/libchewing3_0.8.4-3~3.gbp6aaa9d_amd64.deb
sudo dpkg -i libchewing3_0.8.4-3~3.gbp6aaa9d_amd64.deb