Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to have a rule to match any single word? #154

Open
dylan-chong opened this issue Jan 21, 2018 · 6 comments
Open

Is there any way to have a rule to match any single word? #154

dylan-chong opened this issue Jan 21, 2018 · 6 comments

Comments

@dylan-chong
Copy link
Contributor

If i want to say printf, then if i have a grammar that uses Dictation() somewhere in it, then i will have to pause after saying print , then say foxtrot.

Is there any way i can get the Dictation to match only a single word, so i can say this without any pauses: word print foxtrot to type out printf?

@dylan-chong
Copy link
Contributor Author

If not, i might hack something up using http://www.mieliestronk.com/corncob_lowercase.txt

@RyanQuey
Copy link

RyanQuey commented Jan 21, 2018 via email

@calmofthestorm
Copy link
Member

I don't know a way to do this with Natlink/Dragonfly. IME, Dictation will match all words from when it starts until a pause, and there's no way to make it less eager. If you can get away with a small set of things rather than general purpose dictation, there are options, but that file you link is huge; I wonder how well Dragon could handle it.

@dylan-chong
Copy link
Contributor Author

Ill assume it won't be worth the effort trying to use that massive file because i found a better solution
to my specific problem

My problem is that i have to pause lots after doing a wildcard Dictation. My (incorrect) assumption was that you had to stop talking after a Dictation. It turns out that dragon lets the wildcard end if it expects and you say some command afterwards. e.g. I can say backtick Proper dictation backtick to type \Dictation`` (where Proper is the wildcard).

The only annoying thing is i don't want to end the Dictation when i'm writing some text. I might say: Sentence The first word in the nato alphabet is alpha and dragon will type it out as The first word in the nato alphabet isa. I'm not sure on a good way to solve this problem other than using different trigger words for the wildcard...

@Versatilus
Copy link

Versatilus commented Feb 21, 2018 via email

@dylan-chong
Copy link
Contributor Author

Ah yes i was considering that idea. I'll certainly try it out, although it may have an impact on speed. Then again it might be worth it. I'll give it a go and let you know how it works out

@dylan-chong dylan-chong changed the title Is there any way to have a role to match any single word? Is there any way to have a rule to match any single word? Feb 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants