08-29-2014, 04:55 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2014
Device: Kindle Paperwhite 2
|
Starting Edit Book Plugin. Need idea
Hi everyone.
I want to develop edit book plugin to Calibre. I know Python as well and I read calibre plugin developing page and plugin API page. This is my plugin idea: https://www.mobileread.com/forums/sho...&postcount=631 And I want to make this. I have some epub and their clippings.txt files. 1) In edit book I will upload the clippings.txt own epub 2) I will pick highlighted word and their location information from clippings.txt 3) I will change those words background or change to bold those word in book edit section. So I have some question. 1) Is there any chance to find location with built-in Calibre API function? 2) If no how can I find those words? (Regex or built-in find/replace function) 3) Is possible to chance words background or something like this? Any other idea is appriciated. |
08-29-2014, 05:00 AM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There is no builtin calibre function for decoding a clippings.txt file. Not to mention that a clippings.txt file's location will be with reference to a MOBI file not an EPUB. You will need to use search and replace.
|
08-29-2014, 06:17 AM | #3 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2014
Device: Kindle Paperwhite 2
|
Quote:
Thank you for quick response. Yes, you are right. Not epub. It was mobi. I can decode clippings.txt not problem but how can I find and replace? With Regex or builtin Python functions? Which one is the best way to do? |
|
08-29-2014, 09:36 AM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not sure what you're asking, regex is a builtin python function.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import List plugin idea thread | kiwidude | Development | 45 | 08-13-2012 06:05 AM |
Pop Edit Metadata for New Book Created in Plugin? | JimmXinu | Plugins | 2 | 02-13-2012 01:24 AM |
Plugin for Edit Metadata | kcart1 | Calibre | 1 | 01-18-2012 01:07 PM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |
Idea for a "Bookit" Plugin -- Maybe Kovid? | dsuden | Sony Reader | 55 | 01-03-2009 11:22 AM |