A Period Between to Words

Forum for TextAloud version 4

Moderator: Jim Bretti

Post Reply
ancLogan
Posts: 11
Joined: Sat Nov 09, 2019 1:17 pm
Contact:

A Period Between to Words

Post by ancLogan »

Periods between two words are sometimes ignored, for example, picEquation.Visible is read as “picEquation Visible”, however, picEquation.visible is read as “picEquation dot visible” which is what I want it to do. Is it reading the .Visible as a new line or sentence? Is there a workaround or should I just make sure the letter after the period is always written lowercase?
Jim Bretti
Posts: 1558
Joined: Wed Oct 29, 2003 11:07 am
Contact:

Re: A Period Between to Words

Post by Jim Bretti »

One possible way to handle this is with a TextAloud pronunciation dictionary entry that uses a regular expression to find periods followed by a letter and replace the period with 'dot'.

Click Control Center -> Pronunciation Dictionary Maintenance to open the dictionary maintenance dialog, select a dictionary (or create a new dictionary) then click File -> New Entry.

For the dictionary entry, set the Text Matching dropdown to Regular Expression, and use this for the expression:
\.(?=[a-z])

Then set the Pronounce Using dropdown to Respell, and use this for the spelling:
<s>dot<s>

<s> is used in the respell string to represent a space character.
Jim Bretti
NextUp.com
ancLogan
Posts: 11
Joined: Sat Nov 09, 2019 1:17 pm
Contact:

Re: A Period Between to Words

Post by ancLogan »

Got it. Thank you. This works great. You are the best. Thank you.
Post Reply