News:

There is now a ChangeLog page on the wiki
New developments are added at the bottom of the page.

Main Menu

Spelling without whitespaces after each letter

Started by cederron, July 03, 2014, 03:28:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cederron

I have done a command for writing words by spelling, it is very useful for non english people when they want to write something in english, like "spiderman" in a text box for example.
I use a TextEntry action with a payloadDictation:Spelling .
The problem is the words i spell have a white space after each letter, so it is really useless  ::confused
if i spell spiderman it is writen like  "s p i d e r m a n"

Can this be fixed ?


jitterjames

<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.0.0-->
<command id="820" name="Spell" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="" loopMax="" description="">
  <action>
    <cmdType>Results.SetLastResult</cmdType>
    <params>
      <param>{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExReplace</cmdType>
    <params>
      <param>\s</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>SendKeys</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Spell</phrase>
  <payloadDictation>payloadDictation: Spelling</payloadDictation>
</command>

nime5ter

The command above works well if you are only spelling out one word. If you need to be able to spell out a phrase -- with a space maintained between words, try:

<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.0.0-->
<command id="342" name="Spell more than one word {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Use if you want to spell out more than one word at a time (i.e., a phrase), using the spelling dictation term &quot;space&quot; to separate the words.">
  <action>
    <cmdType>Results.SetLastResult</cmdType>
    <params>
      <param>{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExReplace</cmdType>
    <params>
      <param>(\b\s|\s\b)</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>SendKeys</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Spell</phrase>
  <payloadDictation>payloadDictation: Spelling</payloadDictation>
</command>
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

cederron


Voxy

Nime5ter's command works very well for spelling without getting a space between each letter (thanks once again Nime5ter) but I think the Payload "payloadDictation:Spelling" should work this way on its own to start with.

I quite often need spelling out words but never needs or wants to get space between each letter.  Maybe I'm missing something but I can't think of any situation I would need this behavior and if the Payload "payloadDictation:Spelling" worked like Nime5ter's command you could just say "space" after each spelled out letter if/when you needed it.

If Payload payloadDictation:Spelling doesn't get updated to work without spaces between letters I think at least Nime5ter's command "Spell more than one word {1}" should be included in the Command group "Vox Commands" in all the XML configuration files you get when installing Voxcommando.

nime5ter

#5
As of today's beta release of VC version 2.2.3.0, James has fixed Microsoft's idiosyncratic implementation of spelling dictation with the spaces between characters.

Anyone currently using the workaround in this thread should update relevant commands after upgrading to version 2.2.3.0 (or later).

Change log: http://voxcommando.com/mediawiki/index.php?title=ChangeLog#Version_2.2.3.0

Download the new beta on the Downloads page as always: http://voxcommando.com/home/downloads/
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)