Resuming a sentence from mid sentence Vocola command

Quite often when you make a correction to part of your sentence the cursor does not move back to the end of the sentence where it should go. Does anyone know why this is?

The Vocola command I created to get around this is working but I am having problems with the capitalization. Here is how works: say I have made a correction to the middle of my sentence and the cursor has failed to go to the end of the sentence. At this point you normally need to say "go to end of line" and then resume your sentence. The below command enables you to say "continue with ( whatever words you would like to be added onto the end of the line )". The only problem is that if the sentence was already complete with a period on the end the beginning of the next sentence will not be capitalized.

I attempted to resolve the capitalization problem by updating the command to remove the period, adding it back, and going from there however this did not work either.

Any ideas?

Here is my command:

continue with <_anything> = {end}{backspace}. $1 ;

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

As for "why", I would guess

As for "why", I would guess (but don't actually know) that its because the application is not SAPI compliant, so DNS literally doesn't know how to get back whence it came. In SAPI-compliant applications, saying "go back" usually works.

As for why your command doesn't work, I again would guess its because DNS doesn't know its starting a new sentence. Try adding the capitalization command before your "$1" parameter. Sorry I can't be more definitive, but I'm not fluent in Vocola. In DNS scripting, I think you could use something like the "heard word" command to put in the capitalization.

HTH,
Bruce

It does not capitalise

It does not capitalise because vocola has no knowledge of the dictation buffer. It just puts the words at the place you direct it to. So doing smart things like this is not possible with vocola, and would require a hughe effort in natlink.

There were commands from DNS in the past, I believe, like "Resume with ..." or something like that. Never used them though...

Quintijn

Here is something inspired

Here is something inspired by KnowBrainer --using HeardWord("\Cap") at the end of a vocola command so that the next thing you say will be capitalized.

new bullet [point] = {End} {Enter}{-} HeardWord("\Cap") ;

You should be able to use the same method.

It sounds like you are doing quite a lot of work in vocola. If you haven't already, you should install unimacro. I found that I had 'invented' quite a lot of redundant vocola commands. And conversely, for some of your more clever vocola commands, you could contribute them to unimacro for everyone to use!

I will check it out.

Yes, maybe it is time to check out that program. When I was learning about Vocola it said to learn Vocola first and then move on to UniMacro after. Perhaps that time has come.

I will check it out when I have some time.

Another approach

What happens if you say "go back" after the correction? Does the cursor return to the right place, with proper capitalization? If so, you might write your own command, along the lines of those here:

http://speechwiki.org/SR/BadCorrectionMenu.html

Hello Matt, That seems the

Hello Matt,

That seems the most logical thing to do. However you have to issue a command before you can proceed with dictation.

With natlink/unimacro a procedure is thinkable to do the above idea in the correct way:

"continue with _anything" should first do the positioning, either with HeardWord("go back") or with keystrokes. The _anything part should then be passed to the recognizer again by doing HeardWord(words) (in natlink this is natlink.recognitionMimic(words)).

Something like that,

But I'm sure Nuance will come with these sort of improvements, some time.

Quintijn

Not really

Quintijn,

You don't have to issue a separate command. Instead, you replace the built-in "choose x" command with your own, say "pick x". It operates the same as choose x (sending the Alt+x keystrokes), but then adds a HeardWord "go", "back".

Matt

Very smart again!

Very smart again! Chapeau,

Quintijn

I set up this command and it

I set up this command and it does not work either. The capitalization is still not there.

continue sentence with <_anything> = HeardWord("go","back") $1 ;

Maybe I could set up another macro to run when I am finished writing whatever I need to write. Something that would do a search for all periods and then make sure the next word was capitalized.

Of course this could cause more problems than it would solve. I think I might just wait until Dragon fixes it.

Projectpaperclip wrote: I

Projectpaperclip wrote:

I set up this command and it does not work either. The capitalization is still not there.

continue sentence with <_anything> = HeardWord("go","back") $1 ;

There is no reason to expect it would capitalize!? If it worked, "Go back" would take you back to where you were before you issued a select command. But unless you are dictating in a SAPI compliant application, which apparently you aren't, it won't work.

What you want for capitalization is "\Cap" as suggested by Per Haglund. I think you want:

continue sentence with <_anything> = HeardWord("\Cap") $1 ;

Bruce

PS: I'm not sure exactly what you want on the left hand side of the equal sign, but I think you should use what is on the right hand side to have a chance at capitalizing the sequel.

NO, That will not work

NO, That will not work either: the $1 is just printed on the screen, not processed by natspeak or sapi.

Quintijn

Quintijn wrote: NO, That

Quintijn wrote:

NO, That will not work either: the $1 is just printed on the screen, not processed by natspeak or sapi.

Quintijn

OK, we're all waiting for the right version. Afterall, you have an unfair advantage -- you speak the language Smiling

Bruce

OK, there doesn't seem to be

OK, there doesn't seem to be script to do exactly what you want. I think its beyond the abilities of Pro scripts, and apparently also Vocola and UniMacro.

Next think of a work around. You can define "{End}" as a command (not "Go back" because it will conflict with the built-in command) to reposition the insertion point, or you can say "press end-key", etc. Then start dictating "Cap..."

Not quite what you wanted, but it will work good enough to get you to the next (hopefully soluble!) problem Smiling

Bruce

PS: You might have to precede "Cap..." with one or two spaces depending on the context. If one or the other is regular, you could merge it with the insertion point repositioning command. You could even make a command that inserts a variable number of spaces (including 0 by default).

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.




view recent posts