-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add new phrase cut into multiple phrases #207
Comments
@qas612820704 , use |
It looks like same issue of #206. I will trace the source code. |
會發生這個例外,應該是您把「注音」的「ㄧ」,輸成「中文單字」的「一」。 您可以再確認一下,上面的「ㄋ一ˇ」,是「中文單字」的「一」。 注音: ㄧ 單字: 一 以上提供參考 :-) |
補充一下,我測試的環境
執行 $ dpkg -l '*chewing*' 顯示
我使用「chewing-editor -d」來測試, 輸入
得到下面的結果
輸入
得到下面的結果
然後下載「chewing-editor」的「Source Package」來觀看, $ apt-get source chewing-editor 執行 $ grep 'checkBopomofo' chewing-editor-0.0.1/* -R 沒有顯示 執行 $ grep 'UserphraseModel::add' chewing-editor-0.0.1/* -R -A 18 顯示
看起來我目前使用「chewing-editor」的這個版本「0.0.1-3」,應該是還沒有修正前的版本。 然後我也有測試「libchewing3」,結果也是相同的, 輸入
執行「chewing_userphrase_add」會回傳「0」。 輸入
執行「chewing_userphrase_add」會回傳「1」。 關於 #206 我有測過,應該也是同樣的情形。 單字
注音
報告完畢 :-) |
After #210, this issue should be solved now, @qas612820704 can you try again for this issue? And thanks for the help, @samwhelp, the auto-conversion is published after BTW, we still need a good solution to #108. |
Hi @david50407 , @samwhelp is right. Changing
into
works fine. Thx. |
@david50407, and that right, #169 // src/model/UserphraseModel.cpp:197
QString UserphraseModel::checkBopomofo(const QString &bopomofo) const
{
...
replaceBopomofo.replace(QString::fromUtf8("ㄧ"),QString::fromUtf8("ㄧ"));
...
} needs change to // src/model/UserphraseModel.cpp:197
QString UserphraseModel::checkBopomofo(const QString &bopomofo) const
{
...
replaceBopomofo.replace(QString::fromUtf8("一"),QString::fromUtf8("ㄧ"));
...
} Change the first "ㄧ"( Should I make a pull request to fix it? |
@qas612820704, The idea of your preliminary work is to implement fuzzy match logic, which is worthy for sending pull request(s). Can you improve it by accepting more characters such as |
@qas612820704 @jserv, I already fixed that at #210 (and merged) yesterday, and I don't think english charecter
|
I defer to @david50407 for the idea not to take alphabet |
Like #98.
Adding new phrase will cut into more than 1 phrase, and also contains bopomofo.
ie. When I add this
It will split into multiple phrase, like the right part of below figure.
More addition, the new phrase contains bopomofo.
Is this the correct behavior or something got wrong?
The text was updated successfully, but these errors were encountered: