Re: wild cards in speech dictionary

Scott Berry <sb356607@...>

I disagree with you when you say that they are using dollars signs.  No some sites use a point system based the dollar whereas others sites use the actuall money ammount based on the dollar. So there is a difference when they say one has 11100 and when they say one has $.80.  I will try the regex but I am not a Python programmer so I know absolutely nothing about Python.

On 7/10/2020 7:10 AM, Luke Davis wrote:
On Fri, 10 Jul 2020, Scott Berry wrote:

I was wondering if there is a way to make a wild card speech dictionary entry.  The reason for this is that one of the many survey sites I use reads numbers like 11125 and it should be $111.25.  Thanks for the help.
Of course. That's what regular expression entries are for.
Python syntax is what NVDA uses, although you don't need all the function calls and such in this howto, just the regexp stuff:

I think in your case, if they use an 11 where they mean a dollar sign, you would want something like:


And the replacement:


That is quite untested though.

Also, it seems highly unlikely that they are using an 11 instead of a $. Something else is probably going on. You may need to use the log viewer to find out what is actually being sent to the synth (at input output debug level), in order to find out what you actually need to replace.


Join to automatically receive all group messages.