chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests and a correction for grapheme cluster boundary detection
[disorder]
/
lib
/
unicode.c
diff --git
a/lib/unicode.c
b/lib/unicode.c
index bac9e83c2e3bd9af467b494b6d6a2f2f0408111d..0a17b37a58167df0e9b9a9274460437970f3bfc5 100644
(file)
--- a/
lib/unicode.c
+++ b/
lib/unicode.c
@@
-670,7
+670,10
@@
int utf32_is_gcb(const uint32_t *s, size_t ns, size_t n) {
hafter = utf32__hangul_syllable_type(after);
/* GB6 */
if(hbefore == Hangul_Syllable_Type_L
hafter = utf32__hangul_syllable_type(after);
/* GB6 */
if(hbefore == Hangul_Syllable_Type_L
- && hafter != Hangul_Syllable_Type_NA)
+ && (hafter == Hangul_Syllable_Type_L
+ || hafter == Hangul_Syllable_Type_V
+ || hafter == Hangul_Syllable_Type_LV
+ || hafter == Hangul_Syllable_Type_LVT))
return 0;
/* GB7 */
if((hbefore == Hangul_Syllable_Type_LV
return 0;
/* GB7 */
if((hbefore == Hangul_Syllable_Type_LV