Add Coptic range to mixed unicode module

This commit is contained in:
Evelyn 2018-11-20 12:07:54 +00:00
parent 52d5b5da49
commit e70ec91a7a

View file

@ -8,6 +8,7 @@ class Script(enum.Enum):
Greek = 3 Greek = 3
Armenian = 4 Armenian = 4
FullWidth = 5 FullWidth = 5
Coptic = 6
WORD_SEPERATORS = [",", " ", "\t", "."] WORD_SEPERATORS = [",", " ", "\t", "."]
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
@ -23,6 +24,9 @@ class Module(ModuleManager.BaseModule):
return Script.Armenian return Script.Armenian
elif 65281 <= point <= 65376: elif 65281 <= point <= 65376:
return Script.FullWidth return Script.FullWidth
# COPTIC CAPITAL LETTER ALFA .. COPTIC MORPHOLOGICAL DIVIDER
elif 0x2C80 <= point <= 0x2CFF:
return Script.Coptic
return Script.Unknown return Script.Unknown
@utils.hook("received.message.channel") @utils.hook("received.message.channel")