def gotResults_dgndictation(self,words,fullResults): #self.text = ' '.join(map(natqh.stripSpokenForm, words)) # try with the improved nsformat function self.text = nsformat.formatWords(words, (8,))[0] if self.search and self.text in ['on', 'verder']: self.search = 2 elif self.search and self.text in ['new', 'nieuw']: self.search = 3 elif self.search and self.text in ['terug', 'back']: self.search = 4 print 'dgndictation: %s'% self.text
def gotResults_dgndictation(self, words, fullResults): #self.text = ' '.join(map(natqh.stripSpokenForm, words)) # try with the improved nsformat function self.text = nsformat.formatWords(words, (8, ))[0] if self.search and self.text in ['on', 'verder']: self.search = 2 elif self.search and self.text in ['new', 'nieuw']: self.search = 3 elif self.search and self.text in ['terug', 'back']: self.search = 4 print 'dgndictation: %s' % self.text
def gotResults_dgndictation(self, words, fullResults): dictated, dummy = nsformat.formatWords(words, state=-1) # no capping, no spacing clickaction = natqh.getMousePositionActionString(absorrel=0, which=1, position=0) # this one kills Dragon/natspeak.exe #question = 'Set click location to "%s"'% clickaction #prompt = "set click location" #dictated = dialogs.InputBox(question, prompt, dictated) #if dictated is None: # return self.ini.set(self.currentModule, dictated, clickaction) self.ini.write() self.loadMouseClickCommands() print 'set click command: %s to: %s'% (dictated, clickaction)
def gotResults_dgndictation(self, words, fullResults): dictated, dummy = nsformat.formatWords( words, state=-1) # no capping, no spacing clickaction = natqh.getMousePositionActionString(absorrel=0, which=1, position=0) # this one kills Dragon/natspeak.exe #question = 'Set click location to "%s"'% clickaction #prompt = "set click location" #dictated = dialogs.InputBox(question, prompt, dictated) #if dictated is None: # return self.ini.set(self.currentModule, dictated, clickaction) self.ini.write() self.loadMouseClickCommands() print 'set click command: %s to: %s' % (dictated, clickaction)
def importedrule_dgndictation(self, words): # for giving a window a name self.namedictated = nsformat.formatWords(words, state=-1)[0]
def importedrule_dgndictation(self, words): #do with nsformat functions: self.dictated, dummy = nsformat.formatWords(words, state=-1) # no capping, no spacing
def capitalize(name): formattedOutput, outputState = nsformat.formatWords(words, state=None) # no space, cap next print "String.Capitalize: %s"% name.capitalize return name.capitalize()
def nsformatcapitalize(name): words = name.split() formattedOutput, outputState = nsformat.formatWords(words, state=None) # no space, cap next return formattedOutput
def gotResults_dgndictation(self, words, fullResults): print 'words of dgndictation: %s' % words formattedOutput, self.dictateOutputState = nsformat.formatWords( words, state=self.dictateOutputState) self.key = formattedOutput self.flush()
def gotResults_dgndictation(self, words, fullResults): """do with nsformat functions""" print 'got dgndictation: %s' % words self.dictation, dummy = nsformat.formatWords( words) # state not needed in call print ' result of nsformat: %s' % ` self.dictation `