Implement native pre-edit handling for wxGTK and Cocoa using Scintilla's tentative input support.
Use a private text input client bridge to complete Cocoa NSTextInputClient and support GTK pre-edit callbacks without changing the public API or existing class ABI.
Inline composition is now the default on GTK and Cocoa. Committed IME text generates wxEVT_STC_CHARADDED instead of wxEVT_CHAR; wxSTC_IME_WINDOWED retains the previous event path.
Document platform defaults and add regression tests for composition, UTF-16 ranges, replacement ranges, undo, and mode switching.
Closes #26228.
https://github.com/wxWidgets/wxWidgets/pull/26757
(13 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Thank you for working on this!
This is, of course, very welcome. I haven't yet looked at it in any details, but will do it when you mark it as ready or before if you think it's already worth doing it. Unfortunately I don't know much about IME, especially under non-Windows platforms, so review/feedback from any people more familiar with it would be very welcome. And so would be testing, as I'm not even sure about how to do it (i.e. how is a properly working IME supposed to behave).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
We've been having to work around this in Aegisub, so after I'm done testing this I'll be able to confirm at least one consuming app works well with it. We've had a workaround for a decade and I'd like to shore that up with proper support. I'll mark this as ready for review after I take a fresh look through it tomorrow and get a chance to test it more carefully in Aegisub itself! (And I imagine some other people will kick the tires on it there, since proper IME support is much-desired.)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I tested this on macOS using wxWidget's stctest sample program. IME text input definitely works much better (in particular working at all) but I still noticed two quirks:
nihongo, then press Space, and then press Enter. This will result in only a newline and no text being inserted. Pressing Enter directly to accept the default suggestion works fine.)foo) and then pressing Space shows an assertion error assert "!m_lastKeyDownWXSent" failed in SetKeyDownSent().—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
@CoffeeFlux pushed 1 commit.
—
View it on GitHub or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
@CoffeeFlux pushed 1 commit.
—
View it on GitHub or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()