ettoolong / TTSFox

Text to Speech on Firefox. It use OS build-in TTS engines.
https://addons.mozilla.org/firefox/addon/ttsfox/
Mozilla Public License 2.0
16 stars 6 forks source link

moz-extension speech window textarea isn't rewind friendly #19

Closed pal1000 closed 6 years ago

pal1000 commented 6 years ago

At the moment the speech window textarea isn't rewind friendly at all.

Consider this scenario: I selected a large chunk of text, often large enough to generate scroll bars to the textarea element; this chunk of text is comprised of multiple paragraphs; let's assume external noise disturbs me and I want to rewind to the beginning of the current paragraph. This is easier said than done. If I pause the reading task, there is no cursor to use "Start from cursor position". If I stop it, the textarea is scrolled if it is the case so that the cursor lands either at the begging or at the end of the entire textarea.

There are multiple ways to deal with this:

ettoolong commented 6 years ago

Good, idea.

rewind to the beginning of the current paragraph

I will implement this.

Have any other idea about this plan?

when stop reading move the cursor at the beginning of the current word or paragraph instead of the end of the entire chunk of text

I will not implement this. Move the cursor will cancel the textarea selection text. You need re-selection them. I think keeping the cursor position(or selection range) is better.

ettoolong commented 6 years ago

I add 4 new buttons(previous paragraph/previous sentence/next sentence/next paragraph). 2017-12-12 8 12 07

After few days of trial, I remove these buttons. I found some problems:

Finally, I changed my design: After pause reading:

pal1000 commented 6 years ago

I like the solution you chose, really clever.