mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-08 19:42:12 +00:00
- An OCONV-written suggestion (colour’s) is mapped to the run's English spelling: the dialect lists are read with ', and the result keeps the dictionary's apostrophe (color’s). Straight and curly duplicates (color's, color’s) are one suggestion. Test: curly_suggestions_are_mapped_to_the_dialect. - Conv::at looks up each prefix of the text (at most MAX_CONV_BYTES) in a hash map instead of scanning the pairs under its first character: 65,536 pairs on one character cost 64 lookups per position, not a scan (Korean's OCONV has 588 pairs on one character, so a per-character cap would not fit). Test: a_huge_conversion_table_on_one_character_stays_fast. - The reviewers' OCONV repros are a test (oconv_suggestions_match_hunspell): OCONV applies after a suggestion's case is set, case-sensitively, as the hunspell 1.7.5 CLI answers (KBT → KAT; Kbt → Kat under k → q). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FypgCX8LsYYE8fsj4byBm2