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, 01: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, 08: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, 09: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,307
Karma: 53944634
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-02-2023, 12:45 AM   #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: 20,009
Karma: 25139362
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 online now   Reply With Quote
Old 06-03-2023, 07: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: 43,285
Karma: 21696336
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
Old 10-02-2023, 07:46 AM   #1146
TheReignOfChaos
Junior Member
TheReignOfChaos began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2023
Device: Kobo Clara
Unhappy Annotations randomly coming in unchronological order for one book

Hi team, love the plug-in and don't know why it isn't a core feature.

Having a random issue pop up where for one of my books the annotations are in the body of the text in unchronoligcal order. This is a nightmare for me. It doesn't appear to be doing it on any other book right now; I remember this happening once before and it was no issue to manually sort them in a word processor that time, but this time it's 200+ annotations and it's quite jumbled...

Is this an easy fix somewhere on my end? The metadata is all there, all correct, but they are still out of order! Would love some advice. Thanks!

Imgur album just to give you an idea:
https://imgur.com/a/PxkLjVG
TheReignOfChaos is offline   Reply With Quote
Old 10-06-2023, 06:31 AM   #1147
Noirtier
Member
Noirtier began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jan 2021
Device: Kobo Forma
Quote:
Originally Posted by TheReignOfChaos View Post
Having a random issue pop up where for one of my books the annotations are in the body of the text in unchronological order.
I have always had issues with the ordering on some books with this plugin too. I reported it and provided more details and examples earlier in this thread when David was still with us. He did look into it, but never was never completely solved for me.
However I have found a workaround that often helps:
  1. Select "Fetch annotations from selected device" to open the overlay window open with list of books to select.
  2. Instead of just importing, select the book that you want and click on 'Preview'.
  3. Then copy and paste the annotations from this preview display.
I find that the ordering shown in this preview display is more usually correct compared to what gets imported.
Noirtier is offline   Reply With Quote
Old 10-18-2023, 06:49 AM   #1148
TheReignOfChaos
Junior Member
TheReignOfChaos began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2023
Device: Kobo Clara
Quote:
Originally Posted by Noirtier View Post
  1. Select "Fetch annotations from selected device" to open the overlay window open with list of books to select.
  2. Instead of just importing, select the book that you want and click on 'Preview'.
  3. Then copy and paste the annotations from this preview display.
Unfortunately in this case they are still out of order, but I appreciate this workaround suggestion and will keep it in mind if I have a similar error in the future!
TheReignOfChaos 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 09:00 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 09:13 AM
[GUI Plugin] Annotations (closed) GRiker Plugins 68 06-17-2014 07:11 AM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 07:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


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


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