chewing / chewing-editor

Cross platform chewing user phrase editor
https://chewing.im/
GNU General Public License v2.0
31 stars 52 forks source link

Fail to add new phrase #206

Open kuoyliu opened 7 years ago

kuoyliu commented 7 years ago
jserv commented 7 years ago

Attach text message generated by chewing-editor -d. No more pictures.

kuoyliu commented 7 years ago

There is the text message generated by chewing-editor -d Debug: Get userphrase: 鞭 ㄅㄧㄢ ((null) :0) Debug: [chewingio.c:1889 chewing_userphrase_has_next] API call: ((null) :0) Debug: [chewingio.c:1938 chewing_userphrase_get] API call: ((null) :0) Debug: Get userphrase: 數十 ㄕㄨˋ ㄕˊ ((null) :0) Debug: [chewingio.c:1889 chewing_userphrase_has_next] API call: ((null) :0) Debug: [chewingio.c:1938 chewing_userphrase_get] API call: ((null) :0) Debug: Get userphrase: ㄢ ㄢ ((null) :0) Debug: [chewingio.c:1889 chewing_userphrase_has_next] API call: ((null) :0) Debug: [chewingio.c:1938 chewing_userphrase_get] API call: ((null) :0) Debug: Get userphrase: ㄅ一ㄢ ㄅ ㄧ ㄢ ((null) :0) Debug: [chewingio.c:1889 chewing_userphrase_has_next] API call: ((null) :0) Debug: [chewingio.c:1938 chewing_userphrase_get] API call: ((null) :0) Debug: Get userphrase: ㄨ ㄨ ((null) :0) Debug: [chewingio.c:1889 chewing_userphrase_has_next] API call: ((null) :0) Debug: [chewingio.c:1938 chewing_userphrase_get] API call: ((null) :0) Debug: Get userphrase: ㄕㄨ ㄕ ㄨ ((null) :0) Debug: [chewingio.c:1889 chewing_userphrase_has_next] API call: ((null) :0) Debug: [chewingio.c:1938 chewing_userphrase_get] API call: ((null) :0) Debug: Get userphrase: ˋ ˋ ((null) :0) Debug: [chewingio.c:1889 chewing_userphrase_has_next] API call: ((null) :0) Debug: [chewingio.c:1938 chewing_userphrase_get] API call: ((null) :0) Debug: Get userphrase: ㄕ ㄕ ((null) :0) Debug: [chewingio.c:1889 chewing_userphrase_has_next] API call: ((null) :0) Debug: [chewingio.c:1938 chewing_userphrase_get] API call: ((null) :0) Debug: Get userphrase: ˊ ˊ ((null) :0) Debug: [chewingio.c:1889 chewing_userphrase_has_next] API call: ((null) :0) Debug: Total userphrase 81 ((null) :0) Debug: 81 ((null) :0)

jserv commented 7 years ago

@davis8211, Good. It is time to analyze the log. As far as it indicates, incomplete phonetic representations went to storage area of SQLite, that is not expected to take place. Can you verify corresponding call path as well?

kuoyliu commented 7 years ago

@jserv Sorry, I don't know what should I verify. What's corresponding call path?

jserv commented 7 years ago

Call path stands for the function graph and its effective path to trace function call at first glance. You can start to dig source code and hack.

kuoyliu commented 7 years ago

When I found how can I modify it, I find out the problem. I input '一' (word) as 'ㄧ' (sign). I input correct sign at Bopomofo, and then it's no problem.

david50407 commented 7 years ago

@davis8211 could you try again for me and type both '一' and '一' with newest master build? After #210, either '一' or '一' will be parsed into correct bopomofo '一'.