From 3cb1128c97b3b78be29608a541154a99be3568c3 Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Fri, 1 Jan 2021 22:15:49 +0800 Subject: [PATCH] feat(chareset_filter): add CJK Compatibility Ideographs in is_extended_cjk() Ref: https://en.wikipedia.org/wiki/Template:CJK_ideographs_in_Unicode Closes #305 --- src/rime/gear/charset_filter.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rime/gear/charset_filter.cc b/src/rime/gear/charset_filter.cc index 79185f17d..1cbce26ca 100644 --- a/src/rime/gear/charset_filter.cc +++ b/src/rime/gear/charset_filter.cc @@ -25,6 +25,7 @@ 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 >= 0xF900 && ch <= 0xFAFF) || // CJK Compatibility Ideographs (ch >= 0x2F800 && ch <= 0x2FA1F)) // CJK Compatibility Ideographs Supplement return true;