Esempio n. 1
0
 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
Esempio n. 2
0
    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
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)
Esempio n. 5
0
 def importedrule_dgndictation(self, words):
     # for giving a window a name
     self.namedictated = nsformat.formatWords(words, state=-1)[0]
Esempio n. 6
0
 def importedrule_dgndictation(self, words):
     #do with nsformat functions:
     self.dictated, dummy = nsformat.formatWords(words, state=-1)  # no capping, no spacing
Esempio n. 7
0
def capitalize(name):
    formattedOutput, outputState = nsformat.formatWords(words, state=None)  # no space, cap next
    print "String.Capitalize: %s"% name.capitalize
    return name.capitalize()
Esempio n. 8
0
def nsformatcapitalize(name):
    words = name.split()
    formattedOutput, outputState = nsformat.formatWords(words, state=None)  # no space, cap next
    return formattedOutput
Esempio n. 9
0
 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()
Esempio n. 10
0
 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 `
Esempio n. 11
0
 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