Skip to content

keep CHARBOUND grapheme breaks around decomposed Hangul syllables - #377

Open
shamsManna wants to merge 1 commit into
JuliaStrings:masterfrom
shamsManna:hangul-charbound
Open

shamsManna wants to merge 1 commit into
JuliaStrings:masterfrom
shamsManna:hangul-charbound

Conversation

@shamsManna

Copy link
Copy Markdown
Contributor

utf8proc_decompose_char returns early for precomposed hangul syllables under NFC/NFD and skips the CHARBOUND check, so utf8proc_map("\r\uac00\uac01\n", NFC|CHARBOUND) gives ff 0d ea b0 80 ea b0 81 0a with no break before or after either syllable (not even the GB5 one before the LF); this runs the break check on the syllable's own LV/LVT boundclass, which breaks and updates the state the same way its jamo would, and output without CHARBOUND is unchanged.

This branch has not been deployed

No deployments
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.

1 participant