As I've lost my annotations and reading progress too many times (mostly due to playing around with scripts, installing stuff, automatic import etc.), and I don't use Calibre, I've hacked together a small script that exports my annotations, bookmarks and reading progress to Markdown files.
Currently I'm using it via NickelMenu like this:
Code:
menu_item :main :Sync Annotations :nickel_wifi :autoconnect
chain_success :cmd_spawn :quiet:/mnt/onboard/.adds/notes/notes.sh
chain_success :dbg_toast :Syncing Notes
I've also added a sqlite3 binary to extract all the information I need from the Kobo database.
If you want to use it, extract the zip file to /mnt/onboard/.adds/notes/ and adjust the directory you want your notes exported to.
Feedback welcome!
Changelog:
2022-10-13:
2022-10-14:
- Fix libsqlite.so.0 typo
- Export file to /mnt/onboard/Exported Annotations/Notes.md
- Add current date/time to the file
- Only show not hidden bookmarks
- Show chapter in highlights
- Show chapter in dogear bookmarks
2022-10-15:
- Combine highlights and dogears to a single list
- Add created date to each highlight
- Add an icon showing whether an entry is a dogear, note or highlight
- Fix compatibility with epub highlights
- Add note regarding export location when not using English as default language
2022-10-16:
- Change document icon in order to support Android
- Add current chapter name to current reads
- Add newlines between headings and quotes (not required by Markdown, but by pandoc)
2022-10-17:
- Order bookmarks by title, chapter, chapter progress and then date
- Simplify upload filename to "notes-%Y-%m-%d.md"
2022-10-17:
- Removed the dependency to KoboCloud
- Removed the Nextcloud Curl command
- Exported notes are now named with their current date (e.g. notes-2023-02-17.md)
- Notes are rotated and 21 notes are kept (can be configured)
2023-02-17:
- Remove KoboCloud dependency
- Rename notes with their current date
2023-08-04:
- Export book progress of PDFs as well
2023-10-16:
- Fix a bug in reading progress that didn't list a book when it doesn't have any chapter titles (e.g. PDFs or automatically generated Epubs)
2024-03-26:
- Simplify SQL query and don't exclude bookmarks if Epub is partially broken or has no chapter titles