diff options
| author | 2018-11-20 12:07:54 +0000 | |
|---|---|---|
| committer | 2018-11-20 12:07:54 +0000 | |
| commit | e70ec91a7a805983af20268cbaa226cd2fea739b (patch) | |
| tree | 4fc9594d1a42bdcf4cd951be7b4bcea5e053d2ea | |
| parent | Detect full-width characters (mixed_unicode.py) (diff) | |
| signature | ||
Add Coptic range to mixed unicode module
| -rw-r--r-- | modules/mixed_unicode.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/mixed_unicode.py b/modules/mixed_unicode.py index ff5ccf41..c2e3ba41 100644 --- a/modules/mixed_unicode.py +++ b/modules/mixed_unicode.py @@ -8,6 +8,7 @@ class Script(enum.Enum): Greek = 3 Armenian = 4 FullWidth = 5 + Coptic = 6 WORD_SEPERATORS = [",", " ", "\t", "."] class Module(ModuleManager.BaseModule): @@ -23,6 +24,9 @@ class Module(ModuleManager.BaseModule): return Script.Armenian elif 65281 <= point <= 65376: return Script.FullWidth + # COPTIC CAPITAL LETTER ALFA .. COPTIC MORPHOLOGICAL DIVIDER + elif 0x2C80 <= point <= 0x2CFF: + return Script.Coptic return Script.Unknown @utils.hook("received.message.channel") |
