Skip to content

Fix Hsu and ETen26 out-of-order sequence handling - #871

Merged
lukhnos merged 1 commit into
openvanilla:masterfrom
lukhnos:fix-hsu-eten26-layout
Jul 8, 2026
Merged

Fix Hsu and ETen26 out-of-order sequence handling#871
lukhnos merged 1 commit into
openvanilla:masterfrom
lukhnos:fix-hsu-eten26-layout

Conversation

@lukhnos

@lukhnos lukhnos commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Certain sequences should have the equivalent output, such as ai/ia with Hsu (both should yield ㄘㄞ). While "ia" might be a mistake on the user's part, since it is the equivalent of "ai", the layout code still should honor it.

This issue was discovered via #870.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Bopomofo keyboard layout logic in Mandarin.h to handle out-of-order typing sequences for Hsu and ETen26 layouts. When the existing syllable contains only a vowel and the next character has multiple possibilities with the second also being a vowel, the engine now correctly falls back to the consonant. Unit tests have been added in MandarinTest.cpp to verify this idempotent sequence behavior. There are no review comments, so no further feedback is provided.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@lukhnos
lukhnos force-pushed the fix-hsu-eten26-layout branch from d6b8fa1 to e7dc242 Compare July 8, 2026 04:35
@lukhnos lukhnos changed the title Fix an idempotency issue in Hsu and ETen26 layouts Fix Hsu and ETen26 out-of-order sequence handling Jul 8, 2026
@lukhnos
lukhnos force-pushed the fix-hsu-eten26-layout branch 2 times, most recently from a846f86 to 5ede854 Compare July 8, 2026 04:59
@lukhnos
lukhnos force-pushed the fix-hsu-eten26-layout branch from 5ede854 to 32963a6 Compare July 8, 2026 05:23
Certain sequences should have the equivalent output, such as ai/ia with
Hsu (both should yield ㄘㄞ). While "ia" might be a mistake on the
user's part, since it is the equivalent of "ai", the layout code still
should honor it.
@lukhnos
lukhnos force-pushed the fix-hsu-eten26-layout branch from 32963a6 to e3dab67 Compare July 8, 2026 05:34
@lukhnos
lukhnos merged commit 416783a into openvanilla:master Jul 8, 2026
7 checks passed
@lukhnos
lukhnos deleted the fix-hsu-eten26-layout branch July 8, 2026 06:11
zonble pushed a commit to openvanilla/fcitx5-mcbopomofo that referenced this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants