tell the TTS system the pause without messinng config files

This commit is contained in:
chrys 2016-10-18 14:03:10 +02:00
parent d8f4446ab0
commit fe264e8d96
5 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -99,6 +99,7 @@ doubleTapTimeout=0.2
debugLevel=0
punctuationProfile=default
punctuationLevel=some
respectPunctuationPause=True
numberOfClipboards=10
emoticons=True
# define the current fenrir key

View File

@ -50,6 +50,7 @@ doubleTapTimeout=0.2
debugLevel=0
punctuationProfile=default
punctuationLevel=some
respectPunctuationPause=True
numberOfClipboards=10
emoticons=True
fenrirKeys=KEY_KP0

View File

@ -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):

View File

@ -43,6 +43,7 @@ settings = {
'debugLevel': debug.debugLevel.DEACTIVE,
'punctuationProfile':'default',
'punctuationLevel': 'some',
'respectPunctuationPause':True,
'numberOfClipboards': 10,
'emoticons': True,
'fenrirKeys': ['KEY_KP0','KEY_META'],