AutoVoice AutoVoice Replacements - Word Boundary

Discussion in 'AutoApps' started by Javier, Aug 29, 2015.

  1. Javier

    Javier New Member

    Hi,

    I was wondering if it was possible to add word boundaries to AutoVoice Replacements or allow replacements to accept Regex for word boundaries (\b).

    Currently there are a few undesirable corrections that are made in AutoVoice Replacements. Some examples include the following:

    and=an will turn "landscape" into "lanscape"
    light=lights will turn "lights" into "lightss"

    Currently I would have to place 3 corrections into auto voice to fix the problem because if I add space to the beginning or end of the word it will not make the correction if the word is at the beginning or end of the command. So to change light to lights I would need the following (notice spaces) " light=lights,light =lights, light =lights".

    Thanks for all your work,
    Javier
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Hi.

    Ok, I've implemented this. Will be available on the next release :)
    You'll be able to enable regex for replacements.

    Hope this helps
    João
     
    Javier likes this.
  3. Javier

    Javier New Member

    Just wondering if this was implemented in v 2.0.48? If it was can you please show me an example as I am not able to get it to work. I have tried "\blight\b=lights".

    Thanks again,
    Javier
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    I assume you want to replace "light" with "lights"? If so, just use "light=lights". :)
     
  5. Javier

    Javier New Member

    Thanks, but this still has the undesirable behavior of changing "lights" to "lightss"....this is just an example from the first post.

    Best,
    Javier

    Sent from my Nexus 6 using Tapatalk
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Oh, sorry, forgot about the regex thing! :p Did you check the regex option?
     
  7. Javier

    Javier New Member

    I have "Use Regex" checked but I do not see an option for Regex in replacements

    Sent from my Nexus 6 using Tapatalk
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Hmm, sorry, you're right. I added them to the Recognize action, but not to the recognize condition! Need to add that, sorry!
     
  9. Javier

    Javier New Member

    Thanks

    Sent from my Nexus 6 using Tapatalk
     
  10. NDT

    NDT New Member

    Was this removed again? I can still not find a regex option in condition replacements :(
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice