For @dictationbridge, we want to support speech commands like "speak current line" and "spell current line"
This makes our code ugly, because we literally have to send "speakCurrentLine twice to spell it, and it is not as clean of code. I propose the following.
- Split any script in globalCommands.GlobalCommands which looks at getScriptRepeatCount into multiple scripts as necesary, I.E. speakCurrentLine, spellCurrentLine, spellCurrentLinePhonetically.
- Make an overarching script which dispatches behaviors based on the number of times its been called, I.e. reportCurrentLine would check and if the script has fired twice, would call into spellCurrentLine, etc.
For @dictationbridge, we want to support speech commands like "speak current line" and "spell current line"
This makes our code ugly, because we literally have to send "speakCurrentLine twice to spell it, and it is not as clean of code. I propose the following.