MCPcopy Create free account
hub / github.com/EasyIME/PIME / getCharEncode

Method getCharEncode

python/cinbase/cin.py:179–194  ·  view source on GitHub ↗
(self, root)

Source from the content-addressed store, hash-verified

177
178
179 def getCharEncode(self, root):
180 nunbers = ['①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩']
181 i = 0
182 result = root + ':'
183 for chardef in self.chardefs:
184 for char in self.chardefs[chardef]:
185 if char == root:
186 result += ' ' + nunbers[i]
187 if i < 9:
188 i = i + 1
189 for str in chardef:
190 result += self.getKeyName(str)
191
192 if result == root + ':':
193 result = '查無字根...'
194 return result
195
196
197 def updateCinTable(self, userExtendTable, priorityExtendTable, extendtable, ignorePrivateUseArea):

Callers 2

onKeyDownMethod · 0.45
setOutputStringMethod · 0.45

Calls 1

getKeyNameMethod · 0.95

Tested by

no test coverage detected