|05-03-2012, 04:08 AM||#1|
Join Date: Apr 2012
I've been digging around in calibre>gui2>viewer to see how the EbookViewer works. I figured it would easier to come here and ask for an overview.
So I understand that there is an iterator that goes through and takes the original ebook in whatever form it may be in and converts it into (xhtml?), which is then used to populate a QWebPage. If I understand correctly the QWebPage is what you look at when you're reading the book. There's a bunch of other methods that control how you navigate, which I didn't get into.
What I would like to do, ultimately, is be able to right click on a chapter in the table of contents page and have the option to copy it to the clipboard. I use text to speech software and the way highlighting works now is very difficult for me to use. If you scroll past a chapter's end any section of text that you had highlighted gets cleared.
Here is an ordered list of things I'd like to attempt:
If you would provide me with a high level view of what I need to know and maybe where to get started I would be very grateful. Thank you very much for your help and the effort you have put into developing this wonderful application.
|05-03-2012, 04:19 AM||#2|
creator of calibre
Join Date: Oct 2006
Location: Mumbai, India
Simply add a select all action to the context menu. That will select all the text in the current chapter. Though a simpler way to do this is to convert the file to txt in calibre and open the txt file in your text to speech software.
Last edited by kovidgoyal; 05-03-2012 at 04:23 AM.
|05-09-2012, 06:16 PM||#3|
Join Date: Sep 2009
Device: Sony PRS-350, Kobo Glo/AuraHD/Aura6"/AuraH2O/GloHD
In addition, some Text-to-Speech software (TextAloud is the one I have) will read epub directly. Not by right-clicking on a particular chapter, however you can position the cursor at the start of a chapter before pressing the read-aloud button.
|design, development, ebookviewer, overview|
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc||kovidgoyal||Calibre||68||05-30-2011 08:46 PM|
|# user css for viewer.py/ ebook-viewer/ prs-650||tscamera||Calibre||0||01-02-2011 06:28 PM|
|ebook viewer||cpu533||General Discussions||3||12-24-2010 12:51 PM|
|ebook-viewer alone?||rogue_ronin||Calibre||7||10-22-2009 03:31 AM|
|columns in the ebook viewer||Nate the great||Calibre||3||08-27-2009 11:46 AM|