-
Notifications
You must be signed in to change notification settings - Fork 573
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
新引入的四字以上的补全候选,默认排在四字候选前 #844
Comments
只做到這裏,不會做了,不想做了。 討論討論,請給出點兒點子。 如果說四音節優先於長詞補全,有一個不理想的場景:全部輸入簡拼,固態詞典裏四字詞非常多,補全的候選特別靠後,失去了提示的作用。尤其是會讓用戶自造的長詞不容易快速輸入。 相對容易實現的邏輯是: 「二」爲啥未實現: |
可能要加策略來控制。但這個我還沒想好。咱也不能抄東家的呀。 比方說,可以這樣簡單辦: |
librime/src/rime/gear/table_translator.cc Line 239 in 7470f38
看到 table_translator 给它逐键提示的词加了个 |
lua 是一项可选功能。 標註 代碼裏 |
Describe the bug
script_translator 中,新引入的 4 字以上的候选在输入四个音节时,会出现。
当
补全候选反而会出现在四音节词的前面。
To Reproduce
build librime
make
andcd build/bin/
./rime_deployer --set-active-schema luna_pinyin
rm build luna_pinyin.userdb -rf
./rime_api_console
shanghaidiqu
一个存在与词典中的四音节词汇 -> 出现「上海地區」候选fada
,input{space}
-> 上屏「上海地區發達」自造词shanghaidiqu
-> 候选排序为1. 上海地區發達 2. 上海地區
其他四字音节词汇有相同情况。
1710050902.webm
Expected behavior
未输入完整音节时,补全候选总是排在非补全候选后。正如正常词典候选那样。
Flavor(please complete the following information):
Select your flavor:
Package:
cc @lotem
大概是 4 个音节以上,补全词在用户词典内,都是这个行为,可能不算是 bug ?但对于 script_translator 来说,倒确实挺反直觉的。
The text was updated successfully, but these errors were encountered: