Skip to content

Improve IME documentation#2258

Merged
kchibisov merged 4 commits intorust-windowing:composition-eventfrom
madsmtm:ime-docs
May 1, 2022
Merged

Improve IME documentation#2258
kchibisov merged 4 commits intorust-windowing:composition-eventfrom
madsmtm:ime-docs

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