08-08-2018, 05:42 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Calibre
|
add reading training to viewer
Training the eyes to move fluidly across a page has proven to be effective in remediating many reading issues, not the least of which is dislexia.
I would like to add this functionality to the Calibre viewer, but, as a novice in every respect, I need help to get started, at the very least. My approach is to change the foreground color of the page to the background color and restore the foreground color one word at a time, or even one syllable at a time if selected, at a selectable speed. Then, restore the colors to normal at the end of the piece. Cursor controls would be used to back up and move ahead, etc. I wrote a macro in MSWord once to do this that was effective, but Calibre seems an ideal medium for the functionality. As I said, I am a novice with both Calibre and Python and I would appreciate your help. Thank you! |
08-08-2018, 07:22 PM | #2 |
null operator (he/him)
Posts: 20,553
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@DescendingNerdli - the calibre viewer is currently being rewritten, it will be part of Calibre 4. I'm not sure if the new implementation will have a plugin interface, AFAIK the current viewer does not support plugins.
Accordingly I'm moving this thread into the main calibre forum where Kovid will probably add his wisdom to the thread BR |
08-08-2018, 10:58 PM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Calibre
|
Thanks!
|
08-08-2018, 11:03 PM | #4 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The viewer does support plugins, I think there are even some existing plugins for it, such as the text to speech plugin.
But, as BR said, the viewer is being re-written. Once that rewrite is done and calibre 4 is released, feel free to ping me and we can discuss the requires API for plugins in the new viewer. The bonus is that if you write a plugin fo rthe new viewer you will be able to adadpt it to the in-browser viewer that is part of the calibre content server relatively easily as well. |
08-08-2018, 11:19 PM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Calibre
|
do you know when that might happen? or is it possible to get in on the rewrite and perhaps add the functionality there.
|
08-08-2018, 11:27 PM | #6 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Probably the next month or two. I'm afraid this feature is not suitable for inclusion in the core. But if you wish to get started right away you can look at the current calibre browser viewer via the calibre content server and contribute the needed plugin hooks for it, which the main calibre viewer will then automatically inherit.
And the viewer development is happening in the engine branch of the calibre github repository. |
08-08-2018, 11:35 PM | #7 | |
null operator (he/him)
Posts: 20,553
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
@DescendingNerdli - see [Viewer Plugin] Text to Speech for example of a current Viewer plugin BR Last edited by BetterRed; 08-08-2018 at 11:41 PM. |
|
08-09-2018, 04:05 AM | #8 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
08-09-2018, 12:01 PM | #9 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Dont worry, the rewrite will be basically feature equivalent to the current viewer. I will add annotations after 4, so you still have some time left But probably not too long as one of my main goals with the rewrite is to enable annotations.
|
08-09-2018, 01:25 PM | #10 | |
Grand Sorcerer
Posts: 6,206
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
The freeware Balabolka program is mainly a text-to-speech program but it does also contain a Spritz-Reader tool. You can use Balabolka with calibre's 'Open With' feature to open any epub (maybe other formats, too) then use Spritz-Reader to display one word at a time. You can configure the words-per-minute speed and the background/foreground colours. |
|
08-12-2018, 01:15 AM | #11 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Calibre
|
Thanks Jackie!
I found Easy eBook Viewer by Michal Daniel on github. It is a very limited viewer, but has a small code base that will be easier to get my head around. I plan to encapsulate the trainer in that so it will be easy to move to Calibre later. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add a book from ebook viewer to library? | m.s | Calibre | 4 | 04-15-2016 03:44 AM |
Add Custom User Configuration Popup to Viewer Plugin | naveen.chandran | Development | 3 | 04-23-2015 02:07 AM |
Where is reading position in the calibre-viewer stored? | truth1ness | Calibre | 3 | 04-21-2015 10:43 PM |
Add dictionary to viewer? | Glorfindel | Calibre | 6 | 05-08-2014 09:17 AM |
Speed reading - does it add or detract for fiction reading? | kiwidude | General Discussions | 14 | 09-17-2011 03:25 PM |