From 946e85210cd2ccdbdf2a35d2be2bd7c384970778 Mon Sep 17 00:00:00 2001 From: Chinsyo Date: Thu, 29 Dec 2022 09:52:17 +0800 Subject: [PATCH] fix(charset_filter): Update `is_extended_cjk` to compatible with Unicode 15 --- src/rime/gear/charset_filter.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rime/gear/charset_filter.cc b/src/rime/gear/charset_filter.cc index 1cbce26ca..bcec40e61 100644 --- a/src/rime/gear/charset_filter.cc +++ b/src/rime/gear/charset_filter.cc @@ -25,6 +25,9 @@ bool is_extended_cjk(uint32_t ch) (ch >= 0x2B820 && ch <= 0x2CEAF) || // CJK Unified Ideographs Extension E (ch >= 0x2CEB0 && ch <= 0x2EBEF) || // CJK Unified Ideographs Extension F (ch >= 0x30000 && ch <= 0x3134F) || // CJK Unified Ideographs Extension G + (ch >= 0x31350 && ch <= 0x323AF) || // CJK Unified Ideographs Extension H + (ch >= 0x3300 && ch <= 0x33FF) || // CJK Compatibility + (ch >= 0xFE30 && ch <= 0xFE4F) || // CJK Compatibility Forms (ch >= 0xF900 && ch <= 0xFAFF) || // CJK Compatibility Ideographs (ch >= 0x2F800 && ch <= 0x2FA1F)) // CJK Compatibility Ideographs Supplement return true;