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

Forum for TextAloud version 3

Moderator: Jim Bretti

Post Reply
cosmiccostello
Posts: 1
Joined: Tue Dec 13, 2011 7:39 pm
Contact:

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

Post by cosmiccostello »

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
Jim Bretti
Posts: 1558
Joined: Wed Oct 29, 2003 11:07 am
Contact:

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

Post by Jim Bretti »

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
Post Reply