|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2017
Device: iBooks and Kindle and Calibre
|
![]()
Hello
I have a list of highlights from Apple Books app, and am trying to move them all to an open format. The opf file in the Calibre directories looked promising but I'm told these files are not the Way as it is only used to restore the database, which never gets corrupted (q.v. https://www.mobileread.com/forums/sh...15&postcount=5). Is there a way to use a shell script and cram my highlights into Calibre from the command line? :-). Thanks And conversely can they be easily exported? My goal here is to own my own data. Thank you! |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,968
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The first question that comes to mind is what format are the exported hightlights in?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,209
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you want to export calibre highlights you can do so in multiple formats including markdown and json. As for importing highlights, you would first need to write code to convert the highlights from whatever format they are to the format calibre uses, which will be a pretty non-trivial exercise.
|
![]() |
![]() |
![]() |
#4 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2017
Device: iBooks and Kindle and Calibre
|
Quote:
I think I just want a spec for the format, the conversion is probably not that difficult using something like python. It seems to me that having my highlights in Calibre will allow a more rich exploration and integration with my other tools than Apple's proprietary approach. |
|
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2017
Device: iBooks and Kindle and Calibre
|
Quote:
My thinking for storing the highlights in Calibre instead of Apple Books are: 1. I want to own my data 2. I want to use the data in other tools like Obsidian.md and bash scripts The hard part is figuring out page numbers or file locations for the highlights, because Apple does not store that(!) |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
For what you want, the Annotations plugin possibly would work. This import annotations from some devices and export files, builds a bit of HTML and stores it in a column in calibre against a book. It doesn't attempt to match the the location of the annotations within the book, just shows them with the information available. The plugin is extendible with reader code for the device or export format. It should be fairly simple for what you want. The complexity in the code tends to be when matching the book on the device to books in the library, but, the format you describe sounds like the file is for a single book. |
||
![]() |
![]() |
![]() |
Tags |
mac os |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
When you look at a list of your highlights in Books, does it go to beginning of book? | 2scre | Apple Devices | 2 | 10-24-2020 03:41 PM |
Custom columns not being set when adding books programmatically | Howlingwolf | Development | 4 | 12-10-2014 07:45 AM |
Imported books | faithify | Kobo Tablets | 0 | 04-02-2014 02:50 AM |
Programmatically detecting B&N DRM in books | chrisridd | ePub | 13 | 02-14-2012 01:10 AM |
Books imported as articles | Deciderization | Library Management | 4 | 12-29-2011 04:04 PM |