File tree Expand file tree Collapse file tree 3 files changed +6
-21
lines changed Expand file tree Collapse file tree 3 files changed +6
-21
lines changed Original file line number Diff line number Diff line change 6
6
from ctypes import *
7
7
from io import BytesIO
8
8
from os import path
9
- try :
10
- # Python 2.7 imports
11
- import Queue as queue
12
- except ImportError :
13
- # Python 3 import
14
- import queue
9
+ import queue
15
10
16
11
import threading , time
17
12
import config , languageHandler , nvwave , addonHandler
Original file line number Diff line number Diff line change 14
14
import addonHandler
15
15
addonHandler .initTranslation ()
16
16
17
- try : # for python 2.7
18
- unicode
19
- from synthDriverHandler import BooleanSynthSetting as BooleanDriverSetting ,NumericSynthSetting as NumericDriverSetting
20
-
21
- class synthIndexReached :
22
- @classmethod
23
- def notify (cls , synth = None , index = None ): pass
24
- synthDoneSpeaking = synthIndexReached
25
- except :
26
- from driverHandler import BooleanDriverSetting ,NumericDriverSetting
27
- from synthDriverHandler import synthIndexReached , synthDoneSpeaking
28
- def unicode (s ): return s
17
+ from driverHandler import BooleanDriverSetting ,NumericDriverSetting
18
+ from synthDriverHandler import synthIndexReached , synthDoneSpeaking
29
19
30
20
minRate = 40
31
21
maxRate = 156
@@ -190,7 +180,7 @@ def speak(self,speechSequence):
190
180
charmode = False
191
181
for item in speechSequence :
192
182
if isinstance (item , string_types ):
193
- s = self .processText (unicode ( item ) )
183
+ s = self .processText (item )
194
184
outlist .append ((_ibmeci .speak , (s ,)))
195
185
last = s
196
186
elif isinstance (item ,speech .IndexCommand ):
Original file line number Diff line number Diff line change 27
27
# Documentation file name
28
28
"addon_docFileName" : "readme.html" ,
29
29
# Minimum NVDA version supported (e.g. "2018.3.0")
30
- "addon_minimumNVDAVersion" : "2018 .3.0" ,
30
+ "addon_minimumNVDAVersion" : "2019 .3.0" ,
31
31
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version)
32
- "addon_lastTestedNVDAVersion" : "2020.2 .0" ,
32
+ "addon_lastTestedNVDAVersion" : "2020.4 .0" ,
33
33
# Add-on update channel (default is stable or None)
34
34
"addon_updateChannel" : None ,
35
35
}
You can’t perform that action at this time.
0 commit comments