dictation-toolbox / Caster

Dragonfly-Based Voice Programming and Accessibility Toolkit
https://dictation-toolbox.github.io/Caster/
Other
340 stars 121 forks source link

Add ability to prefix 'numb' command with 'long' to surround with spaces #864

Closed MarkRx closed 3 years ago

MarkRx commented 3 years ago

Add optional "long" specifier to numb command

Adds ability to prefix 'numb' command with 'long' to surround with spaces.

Description

Prefixing the numb command with "long" surrounds the resulting numbers with spaces. This makes it easier to interweave numbers into command chains and dictations. Additionally saying "ace" can be problematic because sometimes it is misinterpreted as an "a" instead of a space.

Example: Before: Cop there are ace numb seven ace laws days in a week bam Output:

There are 7 days in a week.

After: Cop there are long numb seven laws days in a week Output:

There are 7 days in a week.

Motivation and Context

Makes dictation with interleaved numbers easier

How Has This Been Tested

I dictated the "numb" command with and without "long"

Types of changes

Checklist

Maintainer/Reviewer Checklist

kendonB commented 3 years ago

@MarkRx an excellent contribution! It looks fine to me. I will test it properly once I'm at my computer. We're usually hesitant to add new phrases to the core but in this case I think it actually reduces the likelihood of misrecognition.

kendonB commented 3 years ago

This is ready to merge - checks should pass when merging with master