PyComicPackRouMan/utils/ComicUtils.py
2023-03-31 16:09:50 +08:00

6 lines
212 B
Python

from opencc import OpenCC
class fontUtils:
@classmethod
def ChineseConvert(cls, text,convert='t2s'):
return OpenCC(convert).convert(text) # convert from Simplified Chinese to Traditional Chinese