| 
			
			 | 
		#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!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 4 
				Karma: 10 
				Join Date: Apr 2018 
				
				
				
				Device: Calibre 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
   brainfart  ![]() @DescendingNerdli - see [Viewer Plugin] Text to Speech for example of a current Viewer plugin BR Last edited by BetterRed; 08-09-2018 at 12:41 AM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905 
				Karma: 47303824 
				Join Date: Jul 2011 
				Location: Sydney, Australia 
				
				
				Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | |
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
   But probably not too long as one of my main goals with the rewrite is to enable annotations.
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269 
				Karma: 16544702 
				Join Date: Sep 2009 
				Location: UK 
				
				
				Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 
				
				
				 | 
	
	
	
		
		
		
		
		 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.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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 04:44 AM | 
| Add Custom User Configuration Popup to Viewer Plugin | naveen.chandran | Development | 3 | 04-23-2015 03:07 AM | 
| Where is reading position in the calibre-viewer stored? | truth1ness | Calibre | 3 | 04-21-2015 11:43 PM | 
| Add dictionary to viewer? | Glorfindel | Calibre | 6 | 05-08-2014 10:17 AM | 
| Speed reading - does it add or detract for fiction reading? | kiwidude | General Discussions | 14 | 09-17-2011 04:25 PM |