Re: Correcting the way my synthesizer says something


Van Lant, Robin
 

Brian,

Wow, never would have come up with this.  I’ll play with it.  Thanks. 

 

 

 

 

From: main@jfw.groups.io <main@jfw.groups.io> On Behalf Of Brian Vogel
Sent: Monday, August 13, 2018 5:52 PM
To: main@jfw.groups.io
Subject: Re: Correcting the way my synthesizer says something

 

Robin,

         This is an instance where the use of regular expression for pattern matching in the voice dictionary comes in very handy, and I think JAWS supports this, but I don't have it handy at the moment.  I know NVDA does, and I could swear that I needed to do a regular expression match in the past for one of my graduate student clients who was reading technical documents where "unusual sequences" were butchered by JAWS, but I could be confusing this with NVDA, too.  What follows applies as far as a regular expression match regardless of where you might be trying to use one.

         If you wanted to capture the lowercase  or uppercase letter 'v' followed immediately by some digit followed by any other digits or dots, until you hit a space, the regular expression would be:

                     (v|V)([0-9]+[\.0-9]*)

and to get that to read as "version" followed by the sequence of digits you'd use the following in the replacement field:

                      version \2

This would cause v5, or V3.7.21.7 to be matched, and in the case of the first be read as version five and the second version 3.7.21.7

A discussion of regular expression syntax is way beyond what can be done in a forums post, and if you're of a "programmer's mind" there are myriad online references to both learn about the syntax, what it means, how to use it, and to test it out.   I just used the sites regex101.com to test out the regular expression as I put it together and regexr.com for a syntax reference.  I'm rusty, so it took me a while to figure out how to capture any sequence of digits or digits interspersed with periods/dots and have that sequence viewed as a single unit.
--

Brian - Windows 10 Home, 64-Bit, Version 1803, Build 17134  

    The real art of conversation is not only to say the right thing in the right place but to leave unsaid the wrong thing at the tempting moment.

          ~ Dorothy Nevill



This communication may contain privileged and/or confidential information. It is intended solely for the use of the addressee. If you are not the intended recipient, you are strictly prohibited from disclosing, copying, distributing or using any of this information. If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. This communication may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act. You may not directly or indirectly reuse or redisclose such information for any purpose other than to provide the services for which you are receiving the information.

127 Public Square, Cleveland, OH 44114


If you prefer not to receive future e-mail offers for products or services from Key
send an e-mail to mailto:DNERequests@... with 'No Promotional E-mails' in the SUBJECT line.

Join {main@jfw.groups.io to automatically receive all group messages.