tell the TTS system the pause without messinng config files
This commit is contained in:
parent
d8f4446ab0
commit
fe264e8d96
@ -15,13 +15,13 @@ all:===:!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~
|
||||
@:===:at
|
||||
\:===:backslash
|
||||
|:===:bar
|
||||
!:===:bang!
|
||||
!:===:bang
|
||||
^:===:carrot
|
||||
::===:colon:
|
||||
,:===:comma,
|
||||
::===:colon
|
||||
,:===:comma
|
||||
-:===:dash
|
||||
$:===:dollar
|
||||
.:===:dot.
|
||||
.:===:dot
|
||||
>:===:greater
|
||||
`:===:grave
|
||||
#:===:hash
|
||||
@ -36,7 +36,7 @@ $:===:dollar
|
||||
):===:right paren
|
||||
}:===:right brace
|
||||
]:===:right bracket
|
||||
;:===:semicolon;
|
||||
;:===:semicolon
|
||||
/:===:slash
|
||||
*:===:star
|
||||
~:===:tilde
|
||||
|
@ -99,6 +99,7 @@ doubleTapTimeout=0.2
|
||||
debugLevel=0
|
||||
punctuationProfile=default
|
||||
punctuationLevel=some
|
||||
respectPunctuationPause=True
|
||||
numberOfClipboards=10
|
||||
emoticons=True
|
||||
# define the current fenrir key
|
||||
|
@ -50,6 +50,7 @@ doubleTapTimeout=0.2
|
||||
debugLevel=0
|
||||
punctuationProfile=default
|
||||
punctuationLevel=some
|
||||
respectPunctuationPause=True
|
||||
numberOfClipboards=10
|
||||
emoticons=True
|
||||
fenrirKeys=KEY_KP0
|
||||
|
@ -43,7 +43,12 @@ class punctuationManager():
|
||||
if punctuationDict and punctuation and punctuation != '':
|
||||
for key,item in punctuationDict.items():
|
||||
if key in punctuation:
|
||||
resultText = resultText.replace(str(key),' ' +str(item) +' ')
|
||||
if self.env['runtime']['settingsManager'].getSetting('general', 'respectPunctuationPause') and \
|
||||
len(key) == 1 and \
|
||||
key in string.punctuation:
|
||||
resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ')
|
||||
else:
|
||||
resultText = resultText.replace(str(key),' ' +str(item) + ' ')
|
||||
return resultText
|
||||
|
||||
def proceedPunctuation(self, text, ignorePunctuation=False):
|
||||
|
@ -43,6 +43,7 @@ settings = {
|
||||
'debugLevel': debug.debugLevel.DEACTIVE,
|
||||
'punctuationProfile':'default',
|
||||
'punctuationLevel': 'some',
|
||||
'respectPunctuationPause':True,
|
||||
'numberOfClipboards': 10,
|
||||
'emoticons': True,
|
||||
'fenrirKeys': ['KEY_KP0','KEY_META'],
|
||||
|
Loading…
Reference in New Issue
Block a user