add copy last echo to clipboard
This commit is contained in:
parent
e66acc33fc
commit
005bc7f40a
@ -10,7 +10,7 @@ import string, time
|
|||||||
|
|
||||||
class outputManager():
|
class outputManager():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
self.lastEcho = ''
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
self.env['runtime']['settingsManager'].loadDriver(\
|
self.env['runtime']['settingsManager'].loadDriver(\
|
||||||
@ -37,11 +37,12 @@ class outputManager():
|
|||||||
if toAnnounceCapital:
|
if toAnnounceCapital:
|
||||||
if self.playSoundIcon('capital', False):
|
if self.playSoundIcon('capital', False):
|
||||||
toAnnounceCapital = False
|
toAnnounceCapital = False
|
||||||
|
self.lastEcho = text
|
||||||
self.speakText(text, interrupt, ignorePunctuation,toAnnounceCapital)
|
self.speakText(text, interrupt, ignorePunctuation,toAnnounceCapital)
|
||||||
if flush:
|
if flush:
|
||||||
self.brailleText(text, flush)
|
self.brailleText(text, flush)
|
||||||
|
def getLastEcho(self):
|
||||||
|
return self.lastEcho
|
||||||
def speakText(self, text, interrupt=True, ignorePunctuation=False, announceCapital=False):
|
def speakText(self, text, interrupt=True, ignorePunctuation=False, announceCapital=False):
|
||||||
if not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'enabled'):
|
if not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'enabled'):
|
||||||
self.env['runtime']['debug'].writeDebugOut("Speech disabled in outputManager.speakText",debug.debugLevel.INFO)
|
self.env['runtime']['debug'].writeDebugOut("Speech disabled in outputManager.speakText",debug.debugLevel.INFO)
|
||||||
|
Loading…
Reference in New Issue
Block a user