Getting 'No. 47' to be 'Number 47' not 'No 47'

Forum for TextAloud version 3

Moderator: Jim Bretti

Getting 'No. 47' to be 'Number 47' not 'No 47'

Postby cosmiccostello » Wed Dec 14, 2011 1:38 am

I think the subject line is fairly clear! I can't figure out how to get TA3 to read the abbreviation "No." as "number" while leaving "No. I don't want any pie." as "no," etc.

I tried using an "No. ###" expression with boundary required on the left (figuring I'd unlikely need more than 3 digits since few people are going to list 1,000 items as "No. 1,000"). No luck.

My eyes start swimming pretty fast with expressions so I'm hoping someone has encountered this before and solved it.

Thanks!

Rob
cosmiccostello
 
Posts: 1
Joined: Tue Dec 13, 2011 7:39 pm

Re: Getting 'No. 47' to be 'Number 47' not 'No 47'

Postby Jim Bretti » Wed Dec 14, 2011 11:01 am

Hi Rob,

A regular expression would probably work better in this case. Try setting the Text Matching dropdown to Regular Expression, and use this as the expression:

(?<=\b)No. (\d+)

The plus sign used with \d+ causes a match on one more digits, so it should match numbers between 1 and 999

Set the Pronounce Using dropdown to Respell, and use this:

Number $1

Let me know if that doesn't work.
Jim Bretti
NextUp.com
Listen and Learn Anywhere
http://www.NextUp.com
Jim Bretti
 
Posts: 1223
Joined: Wed Oct 29, 2003 11:07 am


Return to TextAloud 3 Forum

Who is online

Users browsing this forum: No registered users and 0 guests