-
Notifications
You must be signed in to change notification settings - Fork 551
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
碼表中相同code的字初始權重沒有按照預期工作 #561
Comments
用樓主提供的代碼無法重現問題。 |
@lotem 現在又發現一個例子: 定 AL_宀疋 999
𠕸 AL_冖夂 0 我的碼表中只有這兩個字碼是al,因爲現在rime無法在碼表中定義comment列,所以我對碼表做了一些處理: speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " '"
algebra:
- xform/\.//
- derive/^([a-zA-Z]+)_.+$/$1/
- xlit/QWERTYOPASDFGHJKLZXCVBNM/qwertyopasdfghjklzxcvbnm/
translator:
dictionary: holo
prism: holo
enable_completion: true
enable_encoder: true
enable_user_dict: true
comment_format:
- xform/^.+_(.+)$/〔$1〕/ 現在初始排序𠕸永遠在weight爲999的定前面,並且不論輸入多少次 |
schema文件在這裏,我的碼表中有一部分是簡碼,沒有拆分註解,一部分則是像這樣 |
实际码表与这里提供的信息不一致,编码混合了大写和小写字母,应该是被当作不同编码,而权重仅作用于相同编码。可以将简码一律改为大写字母。大写字母的字典序先于小写字母。 |
經過測試,將簡碼改成大寫,默認排序就會按照權重來了。謝謝 PS:其實碼表中的大寫表示的是字根碼,本質是註釋,用戶輸入還是小寫,如果issue#538實現了,就可以把碼表全部改成小寫,其餘信息放到comment列裏 |
Describe the bug
rime在部署時,是如何初始化一個字的權重呢?舉個例子,我的方案裏有:
部署過後,總是 這兩個我設置權重爲0的字排在前面,而且我設置了允許用戶字典,多次打字
pa -> 向
,仍然無法將向的優先級提高。To Reproduce
Steps to reproduce the bug:
Expected behavior
默認按照我設置的權重排序,向排在生僻字前面
Log
If applicable, add crash log to quick focus your problem.
Screenshots
If applicable, add screenshots to help explain your problem.
Flavor(please complete the following information):
Select your flavor:
Package:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: