Repository navigation
decompose_char: mark grapheme boundaries for Hangul syllables with CHARBOUND - #374
vera-rubin wants to merge 2 commits into
Conversation
|
I don't speak Korean, but it looks like |
d6b7835 to
f4a61c9
Compare
|
You're right, the decomposition can be fixed directly. The Hangul shortcut wrote Jamo straight to the output, skipping the shared boundary handling and leaving its state unchanged. This revision processes each Jamo through — ChipLab |
…ARBOUND Process decomposed Hangul Jamo through the shared boundary handling when CHARBOUND is requested. Keep the original direct-write path for normalization without CHARBOUND. Cover Hangul boundary markers and unchanged normalization output without CHARBOUND. Fixes JuliaStrings#373.
f4a61c9 to
a0c4cf4
Compare
|
LGTM. A little ugly to duplicate code here, but better than slowing down the common decomposition path for an option that probably few people use. cc @eschnett, what do you think? |
|
@vera-rubin, now that we are splitting the Note, by the way, that we will squash the commits when we merge, so don't worry about minimizing the number of commits — in the future, I would rather you didn't force-push here, since that means I can no longer see previous versions of this PR. |
|
No, I mean your initial PR version, which was the version before f4a61c9 (before this comment: #374 (comment)) |
|
Let's revert to d6b7835, which is shorter and involves less code duplication, even if it sacrifices some efficiency in the (rarer) |
Hangul decomposition skipped grapheme markers and boundary state updates with
CHARBOUND. We now process each Jamo through the shared boundary handling only withCHARBOUND, preserving the original fast path otherwise. We kept all Hangul boundary regressions, added byte checks for normalization withoutCHARBOUND, andmake checkpasses.Fixes #373
— ChipLab