Recognize characters from the unicode Mark categories as combining characters, even if they do not have a combining class (i.e. are not re-ordered). Fixes #286

This commit is contained in:
Kovid Goyal 2018-01-15 11:24:11 +05:30
parent d6c82ba21c
commit 804c4fbe19
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -5,7 +5,7 @@
static inline bool
is_combining_char(uint32_t ch) {
return uc_combining_class(ch) != UC_CCC_NR;
return uc_combining_class(ch) != UC_CCC_NR || uc_is_general_category_withtable(ch, UC_CATEGORY_MASK_Mc | UC_CATEGORY_MASK_Me | UC_CATEGORY_MASK_Mn);
}