Closed YWJamesLin closed 8 years ago
When chewing_userphrase_add
returns NULL
(0
), it usually means add failed.
Ok, I understand. But this phrase should not failed to be added. And this is another example:
哈啦秀(ㄏㄚ ㄌㄚ ㄒ一ㄡˋ)
which failed to be added, too.
Try using ㄧ
(bopomofo) instead of 一
(Chinese word)
By doing replacement, this fixed my issue, 2 example are tested.
Maybe we have to auto-convert 一
(phone) to ㄧ
(Bopomofo) or give a warning while users type non-bopomofo words or any other poka-yoke solutions.
Hi, I adopt the recommendation of @david50407 and add a function to automatically change 一(phone) to ㄧ(Bopomofo) , please check it out! https://github.com/robert501128/chewing-editor/blob/master/src/model/UserphraseModel.cpp
When I run add feature, and add
the program returns 0 but the phrase is not added.