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

请问大佬,用辅助码选的词组不能保存词组里。 #10

Open
FengAiLing2016 opened this issue Sep 5, 2022 · 4 comments
Open

Comments

@FengAiLing2016
Copy link

不用辅助码就会保存,用了就保存不了。

@Renkai
Copy link

Renkai commented Jan 15, 2023

路过的Rime初学者猜想下原因, 不一定对:
用户自造词是分码表存储的, 这套配置会尝试先使用自然码码表这儿再使用明月拼音码表下一行.
使用码表后, 自造词被存在了用户词库的自然码目录. 你只输入拼音不输入辅码的时候它会去明月拼音的用户词库找, 所以就找不到.

@mutoe
Copy link
Owner

mutoe commented Jan 29, 2023

这个问题也困扰我很久了,不知道有没有什么好的解决方法

@Renkai
Copy link

Renkai commented Jan 29, 2023

我的方案可以参考一下:

  • 只保留自然码双拼+辅码的码表, 不和明月拼音一起使用
  • 对辅码做代数计算, 不管有辅码还是纯双拼自然码, 自然码码表都能正常工作
  • 只有一个码表了, 那就自然只有一个用户词库了, 不会出现有辅码/无辅码的情况用户词库分离的状况

代价:

  • 不能用全拼的词库了. 可以对全拼词库写脚本做点处理, 只保留词和权重不保留拼音, 这样自然码就业能用了, 但是会导致多音字的重码增加. 比如igih会出成长, 我觉得问题不大可以接受.

https://github.com/Renkai/Lime/blob/main/luna_zrku/luna_zrku.schema.yaml#L55-L58

@sharp-tasting
Copy link

非常同意楼上的这个策略,抛掉含有拼音编码的 luna_pinyin.dict ,虽然多音字避免不了了,但整体上逻辑更为明晰,我觉得更好。
至少比现在版本多了一个选择。作者能不能据此改一个 double_pinyin_plus.custom.yaml ?谢谢!

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

4 participants