Skip to content

Conversation

@jahorton
Copy link
Contributor

@jahorton jahorton commented Sep 19, 2025

Handling merges and splits can get a little tricky, so this PR adds a new helper method that will help determine what effects any merges and splits should have when updating context state and tokenization data during a context transition. Of particular note is split - it is incredibly helpful to precompute the character index within the original token at which each split-off token should begin.

Relates-to: #14679

Build-bot: skip build:web
Test-bot: skip

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Sep 19, 2025

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

  • Web
    • KeymanWeb Test Home - build : all tests passed (no artifacts on BuildLevel "build")

@keymanapp-test-bot keymanapp-test-bot bot changed the title feat(web): add helper for aligning tokens after merges, splits feat(web): add helper for aligning tokens after merges, splits 🚂 Sep 19, 2025
@github-actions github-actions bot added the feat label Sep 19, 2025
@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S12 milestone Sep 19, 2025
@jahorton jahorton force-pushed the feat/web/trace-insert-edits branch from 602d212 to 9ffc093 Compare September 22, 2025 14:35
Relates-to: #14679

Build-bot: skip build:web
Test-bot: skip
@jahorton jahorton force-pushed the feat/web/compute-merge-split-effects branch from 22d168c to 7362d36 Compare September 22, 2025 14:36
@darcywong00 darcywong00 modified the milestones: A19S12, A19S13 Sep 27, 2025
@jahorton jahorton marked this pull request as ready for review September 30, 2025 14:34
Base automatically changed from feat/web/trace-insert-edits to epic/autocorrect October 6, 2025 14:51
@jahorton jahorton merged commit df2a868 into epic/autocorrect Oct 6, 2025
7 of 8 checks passed
@jahorton jahorton deleted the feat/web/compute-merge-split-effects branch October 6, 2025 14:51
@github-project-automation github-project-automation bot moved this from Todo to Done in Keyman Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants