-
Notifications
You must be signed in to change notification settings - Fork 930
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
Improve IME
documentation
#2258
Conversation
/// // Press "B" key | ||
/// Ime::Preedit("a b", Some(3), Some(3)) | ||
/// // Press left arrow key | ||
/// Ime::Preedit("a b", Some(1), Some(1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should note: This part is technically not true, currently our macOS implementation gives Ime::Preedit("a b", Some(3), Some(3))
. But it should give Ime::Preedit("a b", Some(1), Some(1))
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can ensure you that it'll work like that on Wayland at least, and that's how it should be on macOS as well? If it doesn't work like that it's likely a macOS bug, though, not really a blocking one...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's a bug, should be possible to fix just has to do some UTF-16 to UTF-8 encoding that I didn't really see how to do easily.
@madsmtm I've pushed a commit adding more docs about |
86c5257
to
0f30ac6
Compare
See #2243.
Please correct me on the specifics here, I may very well be wrong on some of this.