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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-29-2014, 04:55 AM   #1
ulotrix
Junior Member
ulotrix began at the beginning.
 
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.
ulotrix is offline   Reply With Quote
Old 08-29-2014, 05:00 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: 37,034
Karma: 16422171
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-29-2014, 06:17 AM   #3
ulotrix
Junior Member
ulotrix began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2014
Device: Kindle Paperwhite 2
Quote:
Originally Posted by kovidgoyal View Post
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.

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?
ulotrix is offline   Reply With Quote
Old 08-29-2014, 09:36 AM   #4
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: 37,034
Karma: 16422171
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not sure what you're asking, regex is a builtin python function.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 05:17 PM.


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