07-13-2021, 01:58 PM | #1 |
Junior Member
Posts: 3
Karma: 29060
Join Date: Jul 2021
Device: Kobo Forma
|
Script to import highlights from kobo device to Calibre reader
Hey everyone,
tl;dr I've written a script to import highlights from a kobo book to calibre app viewer; please go ahead and try it! My reading workflow is very much about the highlights, so I like to have them backed up, and easy to come back to in the future. The key point is to be able to see not only the highlight but also the concrete page in the book as if it's a note in a paper book. I use Calibre to manage my ebook library, and would love to keep using it for my highlights collection as well. I've recently got a Kobo Forma reader (which I love!) and was happy to find out that all highlights are stored in the SQLite database, with some precise location that looks like that: Code:
span#kobo\.46\.1 You can find the script here. So in a nutshell the script does the following:
I don't think that amending the original calibre DB is the best approach, but consider that a hacky solution before I find out the proper one Current limitations:
I've tested the script on ~10 epub books (in English and Russian), and it works well, I personally use it for each book I read now. I've only tested this on Mac Os manually, and I'm planning to add some proper tests later when other people also give it a try. Please make sure to backup your calibre library! I hope the script will work for you too, and looking forward to hear your opinion! |
07-14-2021, 06:48 PM | #2 |
Absentminded Reader
Posts: 1,287
Karma: 6916983
Join Date: Apr 2017
Device: Kobo Mini, Libra Colour & Elipsa; Kindle Paperwhite 3 & 4; iOS apps
|
I can't wait to try this! Does the sync go in the other direction? I'd love to be able to restore lost annotations on my Kobo if that happens.
Sent from my iPad using Tapatalk Pro |
07-14-2021, 08:45 PM | #3 |
Connoisseur
Posts: 59
Karma: 260632
Join Date: Apr 2012
Location: US
Device: Kobo HD, Kobo Aura H2O, Kobo Aura One, Kobo Forma, Kobo Elipsa
|
I will be trying this out too, I look forward to being able to restore lost highlights to my kobo devices as well.
Of course my use case is also to keep highlights in sync across all my kobo devices. |
07-15-2021, 07:57 AM | #4 | |
Junior Member
Posts: 3
Karma: 29060
Join Date: Jul 2021
Device: Kobo Forma
|
Quote:
|
|
07-16-2021, 06:02 AM | #5 |
Absentminded Reader
Posts: 1,287
Karma: 6916983
Join Date: Apr 2017
Device: Kobo Mini, Libra Colour & Elipsa; Kindle Paperwhite 3 & 4; iOS apps
|
|
07-16-2021, 06:22 AM | #6 |
Resident Curmudgeon
Posts: 76,465
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Can this be converted to a Calibre plugin?
|
07-16-2021, 06:31 PM | #7 |
Absentminded Reader
Posts: 1,287
Karma: 6916983
Join Date: Apr 2017
Device: Kobo Mini, Libra Colour & Elipsa; Kindle Paperwhite 3 & 4; iOS apps
|
I may have to experiment with this another time. I've got a big project this weekend, and I don't have poetry installed. I get that it's like homebrew or apt, but I only have a little window for playing this weekend, so I'll explore poetry another time, then revisit your script. Cheers!
Last edited by Cootey; 07-16-2021 at 06:34 PM. |
05-10-2024, 08:13 PM | #8 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jul 2020
Device: Kobo Glo HD
|
|
05-11-2024, 08:23 AM | #9 | |
the rook, bossing Never.
Posts: 12,368
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Also the optional menu item on MyBooks Book list. |
|
Tags |
cfi, highlights, kobo |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do i import/export highlights in Calibre? | Rbk95 | Calibre | 15 | 03-29-2024 10:10 PM |
Exporting highlights from Kobo - not using Kobo device | Docno | Windows Devices | 0 | 05-13-2021 02:50 AM |
Kobo Reader Device Interface in Calibre - Disable? | ZodWallop | Kobo Reader | 2 | 06-06-2020 05:21 PM |
PRS-T1 Is it possible to import highlights with Calibre? | diddy | Sony Reader | 53 | 01-13-2014 09:19 AM |
Script: store calibre ebooks as symlinks to existing lib; advanced CLI import | dancal | Calibre | 0 | 12-10-2012 08:09 PM |