aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Evelyn2018-11-20 12:29:03 +0000
committerGravatar Evelyn2018-11-20 12:29:03 +0000
commit563bc592080bdee5a15d692e86e87be1e8e0c6f5 (patch)
tree51f6a1cb3e330fa8da26c5ea001f479ecad6a12e
parentMixed unicode: Ranges expressed in hex, with comments (diff)
signature
Mixed unicode: Add Cherokee and Tai Le blocks
-rw-r--r--modules/mixed_unicode.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/mixed_unicode.py b/modules/mixed_unicode.py
index 5adaa1e9..f74c1e18 100644
--- a/modules/mixed_unicode.py
+++ b/modules/mixed_unicode.py
@@ -9,6 +9,8 @@ class Script(enum.Enum):
Armenian = 4
FullWidth = 5
Coptic = 6
+ Cherokee = 7
+ TaiLe = 8
WORD_SEPERATORS = [",", " ", "\t", "."]
class Module(ModuleManager.BaseModule):
@@ -32,6 +34,12 @@ class Module(ModuleManager.BaseModule):
# COPTIC CAPITAL LETTER ALFA .. COPTIC MORPHOLOGICAL DIVIDER
elif 0x2C80 <= point <= 0x2CFF:
return Script.Coptic
+ # CHEROKEE LETTER A .. CHEROKEE SMALL LETTER MV
+ elif 0x13A0 <= point <= 0x13FD:
+ return Script.Cherokee
+ # TAI LE LETTER KA .. U+197F
+ elif 0x1950 <= point <= 0x197F:
+ return Script.TaiLe
return Script.Unknown
@utils.hook("received.message.channel")