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

Method initTextService

python/cinbase/__init__.py:86–209  ·  view source on GitHub ↗
(self, cbTS, TextService)

Source from the content-addressed store, hash-verified

84
85 # 初始化輸入行為設定
86 def initTextService(self, cbTS, TextService):
87 cbTS.TextService = TextService
88 cbTS.TextService.setSelKeys(cbTS, self.candselKeys)
89 # 使用 OpenCC 繁體中文轉簡體
90 cbTS.opencc = None
91
92 cbTS.keyboardLayout = 0
93 cbTS.selKeys = "1234567890"
94 cbTS.langMode = -1
95 cbTS.shapeMode = -1
96 cbTS.switchPageWithSpace = False
97 cbTS.outputSimpChinese = False
98 cbTS.enableSwitchTCSC = True
99 cbTS.hidePromptMessages = True
100 cbTS.autoClearCompositionChar = False
101 cbTS.playSoundWhenNonCand = False
102 cbTS.directShowCand = False
103 cbTS.directCommitSymbol = False
104 cbTS.directCommitSymbolList = [",", "。", "、", ";", "?", "!"]
105 cbTS.bracketSymbolList = ["「」", "『』", "[]", "【】", "〖〗", "〔〕", "﹝﹞", "()", "﹙﹚", "〈〉", "《》", "<>", "﹤﹥", "{}", "﹛﹜"]
106 cbTS.ignorePrivateUseArea = True
107 cbTS.directOutMSymbols = True
108 cbTS.fullShapeSymbols = False
109 cbTS.directOutFSymbols = False
110 cbTS.easySymbolsWithShift = False
111 cbTS.showPhrase = False
112 cbTS.sortByPhrase = False
113 cbTS.compositionBufferMode = False
114 cbTS.autoMoveCursorInBrackets = False
115 cbTS.imeReverseLookup = False
116 cbTS.homophoneQuery = False
117 cbTS.userExtendTable = False
118 cbTS.reLoadTable = False
119 cbTS.priorityExtendTable = False
120 cbTS.messageDurationTime = 3
121
122 cbTS.selDayiSymbolCharType = 0
123 cbTS.lastKeyDownCode = 0
124 cbTS.lastKeyDownTime = 0.0
125
126 cbTS.menucandidates = []
127 cbTS.smenucandidates = []
128 cbTS.wildcardcandidates = []
129 cbTS.wildcardpagecandidates = []
130 cbTS.wildcardcompositionChar = ""
131 cbTS.currentCandPage = 0
132
133 cbTS.emojitype = 0
134 cbTS.prevmenutypelist = []
135 cbTS.prevmenucandlist = []
136
137 cbTS.compositionBufferString = ""
138 cbTS.compositionBufferCursor = 0
139 cbTS.compositionBufferType = "default"
140 cbTS.compositionBufferChar = {}
141 cbTS.compositionBufferMenuItem = ""
142 cbTS.tempengcandidates = []
143 cbTS.keyUsedState = False

Callers 8

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 5

getKeyStateMethod · 0.95
DebugClass · 0.85
loadDebugLogMethod · 0.80
setSelKeysMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected