fix: K-Josa module fix

This commit is contained in:
Soumt Nam 2023-10-01 20:51:50 +09:00
parent 434198b80d
commit 1e285b4c78
No known key found for this signature in database
GPG key ID: 5F46B099DCBCA8CE

View file

@ -14,7 +14,7 @@ class KJosa(ModuleInterface):
pass
def _process(self, w, t, f):
return (w + ((t if (ord(w[-1])- 44032 % 28 == 0) else f ) if (44032 <= ord(w[-1]) <= 55203) else f"{t}({f})")) if t and f else w
return (w + ((t if ((ord(w[-1])- 44032) % 28 != 0) else f ) if (44032 <= ord(w[-1]) <= 55203) else f"{t}({f})")) if (t and f) else w
def module_ready(self):
print("[K-josa] Module Ready.")