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

86五笔实现“支持词条置顶“ #106

Closed
boomker opened this issue Jan 12, 2025 · 8 comments
Closed

86五笔实现“支持词条置顶“ #106

boomker opened this issue Jan 12, 2025 · 8 comments

Comments

@boomker
Copy link
Owner

boomker commented Jan 12, 2025

          老大,借这个帖子问个问题,我用的是86五笔,我看到你的双拼方案里有个“支持词条置顶, 按下 Ctrl+t 触发一键置顶功能, 先置顶的词条优先级最高, 后置顶的次之, 立即见效”,这个怎么能在五笔的方案里实现啊,还望老大百忙之中给解决下,每次到词库里修改权重实在太麻烦了。我试用了下你这个方案的置顶功能,真心还好用了。我想在五笔也弄个,试了下但是没弄出来,老大能帮忙弄下吧,

Originally posted by @zhyd82128 in iDvel/rime-ice#1138 (comment)

@boomker
Copy link
Owner Author

boomker commented Jan 12, 2025

这个脚本有一个依赖文件(lib/rime_helper),这个文件及它所在的目录(lib)得放到lua 目录里,这是需要注意的点
稍等我会更新一下这个lua/pin_word.lua, 减少其他依赖。

@zhyd82128
Copy link

哎呀!太期待了!rime五笔加上这个那就简直是公鸡中的战斗机了

@zhyd82128
Copy link

对了,老大,那个CTRL+T的快捷我键怎么在五笔里修改?

@zhyd82128
Copy link

https://drive.google.com/drive/folders/1LNoXNU3XdU4EF2BQYwG8KhxpYAEgPIKk?usp=sharing

老大,我整不了啊!我把五笔方案发你了,老大你能不能帮我把那个调整词库置顶的弄好了打包发我下啊,能直接部署就能用的那种。我实在是需要这个功能,万分感谢!!!!!

@boomker
Copy link
Owner Author

boomker commented Jan 13, 2025

这个我尝试去适配五笔方案,也是没能搞定,五笔方案应该是用不了这个Lua 了,有点遗憾。
你 也可以试试雾凇、魔然方案里类似也有置顶的Lua,说不定可以用

@zhyd82128
Copy link

OK!

@zhyd82128
Copy link

老大还有个问题,你的那个双拼方案里,打“飞鹤快拼”怎么能实现四码上屏呢?

@boomker
Copy link
Owner Author

boomker commented Jan 14, 2025

之前有支持 '四字成(短)语' 自动上屏的,后来取消了,不经常用,有时候体验也没那么好吧
四码(四个编码字符)上屏候选字词,这个还没支持,只有辅码引导符/的单字或词组是支持自动上屏的

如何实现:
把需要自动上屏的词组(最好包含编码)放到一个文件里,Lua 去查这个文件里是否有待自动上屏的候选,
如果有,那么就调用自动上屏的方法(engine:commit_text("飞鹤快拼"))

@boomker boomker closed this as completed Jan 16, 2025
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

2 participants