Author Topic: Spelling without whitespaces after each letter  (Read 2081 times)

0 Members and 1 Guest are viewing this topic.

cederron

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
    • View Profile
Spelling without whitespaces after each letter
« on: July 03, 2014, 03:28:17 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Spelling without whitespaces after each letter
« Reply #1 on: July 03, 2014, 03:55:38 PM »
Code: [Select]
<?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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Spelling without whitespaces after each letter
« Reply #2 on: July 03, 2014, 04:38:45 PM »
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:

Code: [Select]
<?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

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
    • View Profile
Re: Spelling without whitespaces after each letter
« Reply #3 on: July 06, 2014, 09:47:45 AM »
Awesome! it works, thanks

Voxy

  • Jr. Member
  • **
  • Posts: 13
  • Karma: 1
    • View Profile
Re: Spelling without whitespaces after each letter
« Reply #4 on: October 24, 2016, 06:26:43 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Spelling without whitespaces after each letter
« Reply #5 on: October 26, 2016, 05:48:06 PM »
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/
« Last Edit: October 26, 2016, 06:17:56 PM by nime5ter »
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)