Skip to content

Commit

Permalink
fix(charset_filter): Update is_extended_cjk to compatible with Unic…
Browse files Browse the repository at this point in the history
…ode 15
  • Loading branch information
chinsyo authored and lotem committed Jan 16, 2023
1 parent ea8e0d4 commit 946e852
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rime/gear/charset_filter.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 946e852

Please sign in to comment.