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

Use compositionstart and compositionend to detect IME preedit #26

Open
xsrvmy opened this issue Mar 13, 2022 · 1 comment
Open

Use compositionstart and compositionend to detect IME preedit #26

xsrvmy opened this issue Mar 13, 2022 · 1 comment
Labels

Comments

@xsrvmy
Copy link

xsrvmy commented Mar 13, 2022

At the moment, it appears that the detection of IME preedit is based on word boundaries. This does not work if characters such as ; are used as part of the input method (for example, some shuangpin schemes). It would be better to detect whether the IME is active by using the compositionstart and compositionend events so that error detection does not fire between these two events.

@xsrvmy
Copy link
Author

xsrvmy commented Mar 13, 2022

PS. In addition to the semicolon, the schema I use (三码郑码) also uses the underscore _ in its preedit to represent spaces, and many rime schemas show additional information in the preedit, so I believe a proper fix is necessary, rather than just adding _ and ; to the list of ignored characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants