-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
feat(core): normalize input context 🌱 #10382
feat(core): normalize input context 🌱 #10382
Conversation
Adds the application context member of state and a corresponding, failing unit test, which starts the process of verifying the handling of the application context.
First half of #9999. Adds support for normalization (to NFD) of input app context into the cached context. The keyboard processor will work with the NFD cached context. Adds unit tests for the normalization as part of the LDML keyboard processor test suite. TODO: * Comparing modified cached context to app context to determine the transform required to send to the app * Handling illegal unicode and unpaired surrogates on input context
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
@@ -0,0 +1,222 @@ | |||
/* |
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.
Note, refactored km_core_state_context_set_if_needed()
and related helper functions out of km_core_state_api.cpp. It's been extensively rewritten so should be reviewed in its entirety anyway.
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.
LGTM
…ore/9999-normalization-of-context Note: shifted minor changes from action_api.cpp to new state_context_api.cpp.
a97237b
into
epic/core/9999-normalization
First half of #9999.
Adds the application context member of state object, which starts the process of verifying the handling of the application context.
Adds support for normalization (to NFD) of input app context into the cached context. The keyboard processor will work with the NFD cached context.
Adds unit tests for the normalization as part of the LDML keyboard processor test suite.
For follow-up PRs:
@keymanapp-test-bot skip