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

Improve IME documentation #2258

Merged
merged 4 commits into from
May 1, 2022

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Apr 17, 2022

See #2243.

Please correct me on the specifics here, I may very well be wrong on some of this.

@madsmtm madsmtm added S - docs Awareness, docs, examples, etc. C - waiting on maintainer A maintainer must review this code labels Apr 17, 2022
@madsmtm madsmtm added this to the Version 0.27 milestone Apr 17, 2022
src/event.rs Outdated Show resolved Hide resolved
src/event.rs Outdated Show resolved Hide resolved
/// // Press "B" key
/// Ime::Preedit("a b", Some(3), Some(3))
/// // Press left arrow key
/// Ime::Preedit("a b", Some(1), Some(1))
Copy link
Member Author

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)).

Copy link
Member

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...

Copy link
Member Author

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.

@kchibisov
Copy link
Member

@madsmtm I've pushed a commit adding more docs about Enabled/Disabled.

@kchibisov kchibisov force-pushed the composition-event branch 2 times, most recently from 86c5257 to 0f30ac6 Compare April 24, 2022 20:38
madsmtm and others added 4 commits April 27, 2022 12:17
Co-authored-by: Markus Siglreithmaier <m.siglreith@gmail.com>
Co-authored-by: Markus Siglreithmaier <m.siglreith@gmail.com>
@kchibisov kchibisov merged commit f699224 into rust-windowing:composition-event May 1, 2022
@madsmtm madsmtm deleted the ime-docs branch May 1, 2022 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C - waiting on maintainer A maintainer must review this code S - docs Awareness, docs, examples, etc.
Development

Successfully merging this pull request may close these issues.

3 participants