View Single Post
Old 03-09-2021, 08:17 PM   #920
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by hollowpoint View Post
Ok thanks. I noticed both the Android and iOS Kindle apps have an export function for annotations that emails you an HTML file with the annotations data. It's pretty clean output, very predictable and compliant HTML. Plus the Kindle itself will email you the annotations in the form of CSV and PDF, as well.

Wonder if it'd almost be easier to write a plugin that consumes the HTML and CSV files, and import the annotations that way. Then you'd have no device connections to deal with, just the 2 file types for input options. One could use the Pandoc plugin to clean up the input or convert it to something else, before it gets stuffed into a Calibre custom column. As it's a one-way sync (it only imports the annotations to my knowledge, it doesn't look like they get synced back to connected devices), the option of importing file input only versus having to worry about app, device, and OS support, seems vastly simplified.

ETA: The problem with importing the HTML or CSV annotations output, I just remembered, is the fact that users can only export one book at a time. I haven't yet seen a way to "export all annotations from all books." If there was a way to do that, this would seem such a streamlined way to get annotations into Calibre.
The plugin already supports doing this. The annotations can be fetched from devices, files somewhere or via dialog. The only one currently in the plugin is for Goodreader. That works by pasting text from an email into a dialog. The full details are in the first post of the thread.

The issue, as always, is that someone needs to write the code to read the file. That needs someone with an interest in doing it and the appropriate skills or interest in acquiring the skills. I'm happy to help and add the code to the plugin. But, I'm not very interested in writing code for ereaders or apps that I do not personally use. Having someone who is interested works a lot better, and, honestly, which one would I start with?
davidfor is offline   Reply With Quote