Page 1 of 1

Don't speak some characters like _

Posted: Thu Nov 15, 2012 3:03 pm
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

Re: Don't speak some characters like _

Posted: Thu Nov 15, 2012 4:11 pm
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.

Re: Don't speak some characters like _

Posted: Sat Nov 17, 2012 5:02 am
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.

Re: Don't speak some characters like _

Posted: Mon Nov 19, 2012 9:04 pm
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.

Re: Don't speak some characters like _

Posted: Tue Nov 20, 2012 1:01 pm
by Mark_TA
Hi,

thanks, but the box is checked.

Regards,
Mark

Re: Don't speak some characters like _

Posted: Tue Nov 20, 2012 4:22 pm
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.

Re: Don't speak some characters like _

Posted: Tue Nov 20, 2012 5:26 pm
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.