chewing/chewing-editor

Fail to add new phrase

Opened this issue · 7 comments

  • OS version
    Ubuntu 16.04 LTS
    When I test "Add" function, I add "蜘蛛人" successfuly. But I can't add "鞭數十" to a new phase.
    image
    image
jserv commented

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

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

@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?

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

jserv commented

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.

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.

@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 '一'.