Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to add new phrase #206

Open
kuoyliu opened this issue Apr 9, 2017 · 7 comments
Open

Fail to add new phrase #206

kuoyliu opened this issue Apr 9, 2017 · 7 comments

Comments

@kuoyliu
Copy link

kuoyliu commented Apr 9, 2017

  • 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
Copy link
Member

jserv commented Apr 9, 2017

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

@kuoyliu
Copy link
Author

kuoyliu commented Apr 9, 2017

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
Copy link
Member

jserv commented Apr 9, 2017

@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
Copy link
Author

kuoyliu commented Apr 9, 2017

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

@jserv
Copy link
Member

jserv commented Apr 9, 2017

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
Copy link
Author

kuoyliu commented Apr 10, 2017

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants