Mixed unicode: Add Cherokee and Tai Le blocks
This commit is contained in:
parent
22939dd0a9
commit
563bc59208
1 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,8 @@ class Script(enum.Enum):
|
||||||
Armenian = 4
|
Armenian = 4
|
||||||
FullWidth = 5
|
FullWidth = 5
|
||||||
Coptic = 6
|
Coptic = 6
|
||||||
|
Cherokee = 7
|
||||||
|
TaiLe = 8
|
||||||
WORD_SEPERATORS = [",", " ", "\t", "."]
|
WORD_SEPERATORS = [",", " ", "\t", "."]
|
||||||
|
|
||||||
class Module(ModuleManager.BaseModule):
|
class Module(ModuleManager.BaseModule):
|
||||||
|
@ -32,6 +34,12 @@ class Module(ModuleManager.BaseModule):
|
||||||
# COPTIC CAPITAL LETTER ALFA .. COPTIC MORPHOLOGICAL DIVIDER
|
# COPTIC CAPITAL LETTER ALFA .. COPTIC MORPHOLOGICAL DIVIDER
|
||||||
elif 0x2C80 <= point <= 0x2CFF:
|
elif 0x2C80 <= point <= 0x2CFF:
|
||||||
return Script.Coptic
|
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
|
return Script.Unknown
|
||||||
|
|
||||||
@utils.hook("received.message.channel")
|
@utils.hook("received.message.channel")
|
||||||
|
|
Loading…
Reference in a new issue