fix space to often
This commit is contained in:
parent
d14b457bba
commit
4262f70bd5
@ -36,7 +36,6 @@ class command():
|
|||||||
if not self.env['runtime']['cursorManager'].isCursorHorizontalMove():
|
if not self.env['runtime']['cursorManager'].isCursorHorizontalMove():
|
||||||
return
|
return
|
||||||
x, y, currChar = char_utils.getCurrentChar(self.env['screenData']['newCursor']['x'], self.env['screenData']['newCursor']['y'], self.env['screenData']['newContentText'])
|
x, y, currChar = char_utils.getCurrentChar(self.env['screenData']['newCursor']['x'], self.env['screenData']['newCursor']['y'], self.env['screenData']['newContentText'])
|
||||||
if not currChar.isspace():
|
|
||||||
self.env['runtime']['outputManager'].presentText(currChar, interrupt=True, ignorePunctuation=True, announceCapital=True)
|
self.env['runtime']['outputManager'].presentText(currChar, interrupt=True, ignorePunctuation=True, announceCapital=True)
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
pass
|
pass
|
||||||
|
@ -43,8 +43,10 @@ class punctuationManager():
|
|||||||
resultText = str(text)
|
resultText = str(text)
|
||||||
|
|
||||||
if punctuationDict and punctuation and punctuation != '':
|
if punctuationDict and punctuation and punctuation != '':
|
||||||
|
if ' ' in punctuation:
|
||||||
|
resultText = resultText.replace(' ',' ' + punctuationDict[' '] + ' ')
|
||||||
for key,item in punctuationDict.items():
|
for key,item in punctuationDict.items():
|
||||||
if key in punctuation:
|
if key in punctuation and key not in ' ':
|
||||||
if self.env['runtime']['settingsManager'].getSetting('general', 'respectPunctuationPause') and \
|
if self.env['runtime']['settingsManager'].getSetting('general', 'respectPunctuationPause') and \
|
||||||
len(key) == 1 and \
|
len(key) == 1 and \
|
||||||
key in ",.;:?!-":
|
key in ",.;:?!-":
|
||||||
|
Loading…
Reference in New Issue
Block a user