4
#A part of NonVisual Desktop Access (NVDA)
10
import winInputHook # NVDA
12
import nvdajp_TSF # Masataka.Shinke
13
import nvdajp_dic # Masataka Shinke
15
import logHandler # NVDA
16
import globalVars # NVDA
17
from logHandler import log # NVDA
33
TextValue = nvdajp_TSF.TSF_text().strip()
35
TextValue = nvdajp_TSF.IMM_text().strip()
36
### if Buff!=TextValue:
37
if (Buff!=TextValue)+((LastKey!=winUser.VK_SPACE)*(nvdajp_TSF.LastKeyCode()==winUser.VK_SPACE)) :
38
if nvdajp_TSF.LastKeyCode() in [winUser.VK_RETURN]:
39
speech.speakText(Buff)
40
elif nvdajp_TSF.LastKeyCode() in [winUser.VK_SPACE]:
42
if nvdajp_dic.dic1.has_key(i):
43
speech.speakText(nvdajp_dic.dic1.get(i)[2])
46
speech.speakText(u"の")
47
speech.speakText(TextValue)
48
elif TextValue != u"":
52
elif len(Buff)>len(TextValue):
59
speech.speakText(TextValue[pos:])
61
LastKey = nvdajp_TSF.LastKeyCode()
67
nvdajp_TSF.initialize()
68
threading.Thread(target=TSF_Thread, args=()).start()
73
nvdajp_TSF.terminate()