6 lines
212 B
Python
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 |