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 05-26-2023, 12:33 AM   #1141
tsundoku
Junior Member
tsundoku began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2023
Location: PNW
Device: Kindle Oasis
Actually, I just found another workaround that works even better in my case. Sharing it here in case it helps anyone else. The problem with getting annotations from Amazon's https://read.amazon.com/notebook page is that they only include annotations from books bought from Amazon. Annotations for "personal documents" (i.e. any content added to your Kindle account that wasn't bought from Amazon) don't appear, although Amazon does capture them and synchronize them between your devices. If you run the Kindle iOS app, it now has a new feature that allows you to export your "Notebook" (all the notes and annotations for a given book/document across devices) and send it as an .html file in email. (I'm guessing we have the new Kindle Scribe to thank for this.) This file opens in the browser and contains all your annotations for a given book which can be easily copy/pasted into Calibre.
tsundoku is offline   Reply With Quote
Old 06-01-2023, 07:04 PM   #1142
Bunker D
Junior Member
Bunker D began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2022
Device: Onyx Boox Nova 2
So… Any new alternative existing or on it's way?

From what I understand (correct me if I'm mistaking), this extension is not working with the native annotation system of Calibre. It also seem to suffer from maintenance issue and be on it's way to deprecation.

I am looking for an alternative to import annotations within the Calibre annotation system itself. Is there anything doing that at this point?
Or do you know if there is work done on the topic?

I'm not opposed to programming some stuff by myself. That being said, I don't know where to start. Is there an API to add annotations, or should I directly edit the
Code:
metadata.opf
to add the annotations there? I'd have to compute the EPUB CFI for each highlights. Is there an API to search through the book, or should I crack open the EPUB? How? Any lead to compute the CFI then?

All in all, if you have some pointers, thank you.
Bunker D is offline   Reply With Quote
Old 06-01-2023, 08:25 PM   #1143
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,099
Karma: 53103620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Metadata.opf is just a BACKUP of what you see in the Library view for a book.
Making changes to that does NOT change the DB
and
Any change that affects the library entry will result in that file being replaced.

It has no effect on the book without further processing
theducks is offline   Reply With Quote
Old 06-01-2023, 11:45 PM   #1144
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 19,735
Karma: 25064168
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Bunker D View Post
So… Any new alternative existing or on it's way?

From what I understand (correct me if I'm mistaking), this extension is not working with the native annotation system of Calibre. It also seem to suffer from maintenance issue and be on it's way to deprecation.

I am looking for an alternative to import annotations within the Calibre annotation system itself. Is there anything doing that at this point?
Or do you know if there is work done on the topic?

I'm not opposed to programming some stuff by myself. That being said, I don't know where to start. Is there an API to add annotations, or should I directly edit the
Code:
metadata.opf
to add the annotations there? I'd have to compute the EPUB CFI for each highlights. Is there an API to search through the book, or should I crack open the EPUB? How? Any lead to compute the CFI then?

All in all, if you have some pointers, thank you.
Start here ==>> Customizing calibre with plugins

That'll lead you to an overview, walkthroughs of the different types of plugins, and eventually to the calibre API.

BR
BetterRed is offline   Reply With Quote
Old 06-03-2023, 06:09 AM   #1145
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: 42,960
Karma: 20900374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
grep the source code for cfi and annotations you will find the existing code for parsing/creating/updating them. If you have questions about the code feel free to ask and I will try to answer.
kovidgoyal is offline   Reply With Quote
Reply

Tags
sampleexportingapp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 401 01-03-2023 08:00 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 08:13 AM
[GUI Plugin] Annotations (closed) GRiker Plugins 68 06-17-2014 06:11 AM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 06:04 PM.


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