Handling word breaks at the end of a line

Moderator: Jim Bretti

Post Reply
Jim Bretti
Posts: 1558
Joined: Wed Oct 29, 2003 11:07 am
Contact:

Handling word breaks at the end of a line

Post by Jim Bretti »

It is possible to run into pronunciation problems with words divided by a hyphen at the end of a line. For example,

inter-
national

If your voices have trouble pronouncing words like this, you can handle the problem with a TextAloud pronunciation dictionary entry. In Pronunciation Dictionary Maintenance, under the Tools menu, add a new dictionary entry. Set the Text Matching dropdown to "Regular Expression", and the Pronounce Using dropdown to "Respell", then set the fields like this:

Regular Expression:
(\w)-\R(\w)

Respell:
$1$2

The regular expression scans text for the pattern of an alpha character (\w) followed by a hyphen, newline (\R) and another alpha character. In the Respell field, $1 and $2 reference whatever is matched in parentheses pairs 1 and 2. So the respelling just eliminates the hyphen and newline characters.
Jim Bretti
NextUp.com
Post Reply