| 71 | |
| 72 | class CinBase: |
| 73 | def __init__(self): |
| 74 | self.cinbasecurdir = os.path.abspath(os.path.dirname(__file__)) |
| 75 | self.icondir = os.path.join(os.path.dirname(__file__), "icons") |
| 76 | self.candselKeys = "1234567890" |
| 77 | |
| 78 | with io.open(os.path.join(os.path.dirname(__file__), "data", "emoji.json"), 'r', encoding='utf8') as fs: |
| 79 | self.emoji = emoji(fs) |
| 80 | |
| 81 | self.emojimenulist = ["表情符號", "圖形符號", "其它符號", "雜錦符號", "交通運輸", "調色盤"] |
| 82 | self.imeNameList = ["checj", "chephonetic", "chearray", "chedayi", "cheez", "chepinyin", "chesimplex", "cheliu"] |
| 83 | self.hcinFileList = ["thphonetic.json", "CnsPhonetic.json", "bpmf.json"] |
| 84 | |
| 85 | # 初始化輸入行為設定 |
| 86 | def initTextService(self, cbTS, TextService): |