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

移动端全拼26键布局,开启Rime自带的纠错功能 #55

Closed
KyoSakuyo opened this issue Mar 27, 2024 · 8 comments
Closed

移动端全拼26键布局,开启Rime自带的纠错功能 #55

KyoSakuyo opened this issue Mar 27, 2024 · 8 comments

Comments

@KyoSakuyo
Copy link

小企鹅输入法的fcitx5-chinese-addons输入方案最近刚刚实现了correction layout,这是相关实现的commit

目前小企鹅输入法的RIME插件暂时未内置自动纠错功能,插件维护者也暂时未准备给rime加入插件内置的纠错,并且表示希望由方案提供者内置

@Mintimate
Copy link
Owner

看了一下,感觉rime只能自行配置的意思,就是rime的algebra拼写转换。 可以参考全拼方案algebra内的自动纠错部分:

- derive/([zcs])h(a|e|i|u|ai|ei|an|en|ou|uo|ua|un|ui|uan|uai|uang|ang|eng|ong)$/h$1$2/ # hzi → zhi

@KyoSakuyo
Copy link
Author

KyoSakuyo commented Mar 27, 2024

那对于基于QWERTY键盘物理位置上相近的按键按错的纠错,比如说把 ziangyao 和 ciangyao 纠正为xiangyao(想要)──这种纠错也可以通过相关的方式实现吗?

@Mintimate
Copy link
Owner

参考刚刚的下一行:

- derive/([zcs])h([aeiu])$/$1$2h/ # zih → zhi

那么,你想要 ziang -> xiang、ciang -> xiang,这样即可:

- derive/([zc])iang/$1iang/

@KyoSakuyo
Copy link
Author

咦?我刚刚好像看到rime是自带了基于QWERTY物理位置的相关纠错的。

rime/librime#228

只不过不知道在哪儿打开?

@Mintimate
Copy link
Owner

咦?我刚刚好像看到rime是自带了基于QWERTY物理位置的相关纠错的。

rime/librime#228

只不过不知道在哪儿打开?

Set translator/enable_correction: true in schema to enable.

@KyoSakuyo
Copy link
Author

image
我刚刚问一下chatgpt, 如果它说得没错的话,那应该就只需要在145行后面把

translator:
  enable_correction: true

这一段加上就OK了吧(我试试看~~

@Mintimate
Copy link
Owner

这样就可以了,不过试了一下:
image

输入单字时候容易造成困扰,对于手机的全拼效果估计比较好

@KyoSakuyo
Copy link
Author

image

image

成功了🎉,确实对手机端的全拼会方便不少~~~

@Mintimate Mintimate changed the title 【Feature Request】为移动端的全拼布局提供自动纠错 移动端全拼26键布局,开启Rime自带的纠错功能 Mar 28, 2024
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