Textaloud for firefox does not stop after paragraph end, reads dot

Forum for TextAloud version 3

Moderator: Jim Bretti

Post Reply
zwastik
Posts: 2
Joined: Thu Jun 30, 2016 10:11 pm
Contact:

Textaloud for firefox does not stop after paragraph end, reads dot

Post by zwastik »

Textaloud for firefox reads the final dot in a paragraph end and does not pause. The standalone textaloud application does not have this issue.
For example, the following text is read properly in textaloud but when it is read from the original source in firefox https://msdn.microsoft.com/en-us/library/ttw7t8t6.aspx# it does not make a little pause at the end of each paragraph and also reads the "." literally.

The foreach statement repeats a group of embedded statements for each element in an array or an object collection that implements the System.Collections.IEnumerable or System.Collections.Generic.IEnumerable<T> interface. The foreach statement is used to iterate through the collection to get the information that you want, but can not be used to add or remove items from the source collection to avoid unpredictable side effects. If you need to add or remove items from the source collection, use a for loop.

The embedded statements continue to execute for each element in the array or collection. After the iteration has been completed for all the elements in the collection, control is transferred to the next statement following the foreach block.

At any point within the foreach block, you can break out of the loop by using the break keyword, or step to the next iteration in the loop by using the continue keyword.

A foreach loop can also be exited by the goto, return, or throw statements.
Jim Bretti
Posts: 1558
Joined: Wed Oct 29, 2003 11:07 am
Contact:

Re: Textaloud for firefox does not stop after paragraph end, reads dot

Post by Jim Bretti »

Thanks for reporting this, I see what is happening. When we extract text from that page we're not handling html paragraph tags correctly. The result is that each paragraph runs together, with no separating space after the last period of a paragraph. So we're sending text like this to the speech engine:

... use a for loop.The embedded statements ...

We'll fix this in a future version of the toolbar.

For now, you should be able to work around the problem with a pronunciation dictionary entry. You can use a regular expression to look for patterns that look like the end of a sentence followed immediately by an upper case character, and insert a space.

Here are instructions:

From the TextAloud Tools menu, click Pronunciation Dictionary Maintenance. Create a new dictionary entry. For the Text Matching dropdown, select "Regular Expression", and you can start with this simple expression:

([a-z][.?!])([A-Z])

Set the Pronounce Using dropdown to "Respell", and for the respell field use

$1 $2

Also, the Case Sensitive checkbox should be selected.

You may need to tweak the regular expression to handle more complex sentence patterns, but that should give you the general idea.
Jim Bretti
NextUp.com
zwastik
Posts: 2
Joined: Thu Jun 30, 2016 10:11 pm
Contact:

Re: Textaloud for firefox does not stop after paragraph end, reads dot

Post by zwastik »

Thanks for the pronunciation dictionary workaround, it fixes the issue.
Maybe you could also consider for a future version of the toolbar to add a pause after a html <h></h> tag, and a <a></a> one. This would make listening websites with textaloud more natural. Maybe even add the word "url" or "link" before reading the url text field.
Post Reply