-
Notifications
You must be signed in to change notification settings - Fork 667
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
feature request: 用 lua_filter 固定字词的顺序 #586
Comments
插入一个新词库的方式其实也没用,因为「yu 于 与……」是参与调频的,不能保证每次都是某一个在前面。 Rime 本身没有这种配置,如果需要固定字词的顺序,且不影响造词,需要用一个 lua_filter 调整顺序。 |
我也不会 Lua,都是问 ChatGPT 的,和目前的长词优先的逻辑应该差不多的,有空我研究研究啊,或者谁会可以帮写一个。 |
是的,主要在于custom_phrase.txt影响造词,不然就利用它来控制了 |
卧槽,竟然这么简单吗。。。 |
大佬整合一下我还没想到具体咋整 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
没搞明白怎么写,我 push 上来了,你可以看一下嘛。 另外发现一个诡异的问题,我只给全拼写了一些,双拼的 |
请问这个lua是不是不能输入实际打不出来的词,例如我的仓输入法用的是雾凇方案,ee打不出来嗯嗯,用这个lua也无法置顶这个词,所以来问一下~ |
是的,只是对已有候选项做个排序。 |
请问有没有办法实现这个功能,就是对不在候选的词做排序,或者嗯嗯如何通过ee打出来 |
加上了 7ff9e64
|
谢谢,我试了一下,使用这个lua,英文也不能置顶,只有可以打出的中文才可以置顶,这个lua能不能实现类似custom_phrase.txt的功能而且可以造词 |
这个 lua 就是单纯做排序。 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
还有就是我通常是用每个字的首字母打字,但是在lua里设置首字母置顶好像不行,例如:
|
你先不要折腾太多了,我晚上得改一改这个逻辑,有点问题,可能写法会变。 |
好的,感谢大佬,等大佬写好了我再测试 |
大佬,已经更新了,现在没啥大问题,就是一个小问题,如果一个英文单词带有空格,没办法调整词序,例如Quantumult X,我试了"Quantumult X"也不行 |
现在啥情况?更新了以后,在新版里面,custom_phrase之前我自己定义的权重都不起作用了。比如之前我定义的“谢谢 xx 3”,以前我输入xx,第一个就会出现“谢谢”,然后是“想想 想象”。但现在无论我怎么改权重,“谢谢”只会出现在“想想 想象”后面 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
custom_phrase 置顶,你在 custom_phrase 里写了 现在由 pin_cand_filter 置顶,这个 Lua 仅仅是调整候选项的顺序(没有创造词汇编码的功能),你的「的」仍然是拼音翻译器本身的「的」,可以造词,可以写完整拼音,更好了些。 「把编码一致的删了」是说如果你在 pin_cand_filter 置顶了 pin_cand_filter 的配置在方案里如 书写方法我晚些补上,双拼有些不一样。 |
懂了,谢谢 |
大佬,想请教2个问题:
1、例如在雾凇拼音里,与和于的自重分别是:
于 yu 3614992
与 yu 2104552
如果以我的习惯来说,让「与」出现在候选的前面,「于」出现在候选的后面
我暂时想到的有2种调整方法:
①在custom_phrase.txt里调整,在但大佬写的备注里面看到,只能固定非完整编码,这样的话只有打「y」才会固定它俩的位置,打「yu」却不能
②在cn_dicts里面新建一个buchong.dict.yaml文件,放在rime_ice.dict.yaml的最前面,里面放上自己设置的补充字词,例如:
于 yu 3614992
与 yu 3704552
但是不知道这样做是否会有其他的一些不好的影响
2、写入custom_phrase.txt的字词,例如[哪里 nl 9],是不是输入nl或nali都不能进入自造词
感谢大佬
The text was updated successfully, but these errors were encountered: