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

能否为特定程序设置不同的preedit_type? #1455

Open
piiiiq opened this issue Dec 20, 2024 · 0 comments
Open

能否为特定程序设置不同的preedit_type? #1455

piiiiq opened this issue Dec 20, 2024 · 0 comments

Comments

@piiiiq
Copy link

piiiiq commented Dec 20, 2024

例如在名单外的程序中,preedit_type设置为composition,名单内的程序设置为preview_all?

另外能否增加一个参数选项:在将preedit_type设置为preview_all后,隐藏小狼毫的选词框?

这样做能方便某些程序为小狼毫内置选词框。

提这个要求的原因是小狼毫在某些程序中会出现选词框位置错误、选词框弹出的速度延迟大的问题(例如在Qt5.15及以上版本的QTextEdit控件里有选词框位置错误的问题,应该是Qt的问题),如有必要,程序可根据小狼毫返回的preeditString自行实现选词框。如果由程序自行实现选词框,则需要小狼毫单独为该程序发送包含编码和候选词的preeditString(也就是针对该程序将preedit_type设置为preview_all),并隐藏小狼毫自身的选词框。

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

1 participant