|07-24-2013, 07:29 AM||#1|
Join Date: Jul 2013
Comment injection plugin
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?
|07-24-2013, 08:43 AM||#2|
creator of calibre
Join Date: Oct 2006
Location: Mumbai, India
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.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|[GUI Plugin] KindleUnpack - The Plugin||DiapDealer||Plugins||402||03-05-2017 10:31 AM|
|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|