Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-24-2013, 07:29 AM   #1
dannyb2
Junior Member
dannyb2 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2013
Device: Android
Comment injection plugin

Hi all,

I'm looking to write a plugin that injects predefined comments into the HTML code of an epub book, upon selection of a paragraph in the Calibre viewer (UI plugin).

I'm pretty much a newbie to calibre plugin API.
Is there a class or something that I can use to connect to the viewer's paragraph selection functionality?
Can I add a toolbar to the viewer by writing a plugin?

Thanks,
Danny
dannyb2 is offline   Reply With Quote
Old 07-24-2013, 08:43 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,749
Karma: 4998511
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is no plugin api for the viewer, apart from a very basic one that allows you to create a plugin that can run code on viewer start and document open.

What you wan to do sounds like you want to edit a book, you should use Tweak Book to explode the book into its constituent html and then use whatever html editing tool you like.
kovidgoyal is online now   Reply With Quote
 
Enthusiast
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 257 08-23-2014 10:38 PM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 02:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM
Who needs a Karma injection? Logseman Lounge 25 12-22-2010 01:19 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 12:11 PM


All times are GMT -4. The time now is 05:04 AM.


MobileRead.com is a privately owned, operated and funded community.