Don't speak some characters like _

Forum for TextAloud version 3

Moderator: Jim Bretti

Post Reply
Mark_TA
Posts: 14
Joined: Tue Aug 21, 2012 12:58 pm
Contact:

Don't speak some characters like _

Post by Mark_TA »

Hello,

I have a text with some underlines like:
__________________________________
__________________________________
__________________________________

And it will be always spoken with "underline".

How can the voice ignore that?

Thank you for your help.

Kind Regards,
Mark
Jim Bretti
Posts: 1558
Joined: Wed Oct 29, 2003 11:07 am
Contact:

Re: Don't speak some characters like _

Post by Jim Bretti »

Hi Mark,

The easiest way to handle this is with a character filter. Look under the TextAloud Tools menu, and click "Character Speaking and Filtering". Click the add button to add a new filter. In the Add dialog, set the Options dropdown to "Filter Character", and enter the characters you would like to filter in the Characters field. For now, you can simply enter the underscore character, and edit the filter later if you need to filter additional characters.
Jim Bretti
NextUp.com
Mark_TA
Posts: 14
Joined: Tue Aug 21, 2012 12:58 pm
Contact:

Re: Don't speak some characters like _

Post by Mark_TA »

Dear Jim,

thank you for that explanation.

I tried that with "_" and "__________________________________" but it didn't work.

I tried following text in an article:

Please answer the question:
______________________________________________________
______________________________________________________
______________________________________________________


And I hear "Please answer the question. Underline. Underline. Underline."
Highlighted always the last underline-character in each line.
Please answer the question:
______________________________________________________
______________________________________________________
______________________________________________________

Thank you for information.

Best regards,
Mark

Additional information:
Also character ~ is spoken, but I have activated to filter out that characters: ~`!@#$^&*()_+-={}|[]\
Only ! is not spoken.

My version is: 3.0.49.
pblais
Posts: 6
Joined: Sat Oct 01, 2011 11:00 am
Contact:

Re: Don't speak some characters like _

Post by pblais »

You need to do ONE more step. From the screen where you add the characters you will see an unchecked box on the far left of the list. If you don't click it to add a check mark to the box it won't be active. You can have a lot of entries and then click to enable and disable them as you prefer.

There are a host of double byte extended characters as well. Some of these also come when working with text you cut and paste from the web. I get documents with a ton of euro's that get spoken.
Mark_TA
Posts: 14
Joined: Tue Aug 21, 2012 12:58 pm
Contact:

Re: Don't speak some characters like _

Post by Mark_TA »

Hi,

thanks, but the box is checked.

Regards,
Mark
PHenry1026
Posts: 231
Joined: Thu Jan 11, 2007 12:10 pm
Contact:

Re: Don't speak some characters like _

Post by PHenry1026 »

Greetings Mark,

You can also accomplish text skipping with simple regular expressions. Go to the Pronunciation Dictionary Maintenance and enter the following new dictionary entry.

Step 1: Choose Text Matching: Regular Expression and enter the following regular expression

(?#Skip_)(?m)^\s*?\K[_]{1,}(?=\s*?$)

Step 2: Choose Pronounce Using: Skip Text and save the entry.

;) Percy
RC Dictionaries

P.S. The above reg ex will only work if _ and spaces are the only characters on a line.
Last edited by PHenry1026 on Sun Jan 06, 2013 6:36 pm, edited 1 time in total.
Jim Bretti
Posts: 1558
Joined: Wed Oct 29, 2003 11:07 am
Contact:

Re: Don't speak some characters like _

Post by Jim Bretti »

Hi Mark,

If you want, send me a sample text file from an article where you're seeing this problem and I'll look at why the character filter isn't working. If you can duplicate with a small article, use File -> Save Article As Text File, and attach the text file to a reply.
Jim Bretti
NextUp.com
Post Reply