View Single Post
Old 03-04-2024, 01:05 PM   #1
Randrewy
Junior Member
Randrewy began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2024
Device: pocketbook 740
Bookmarks/Annotation import and epubcfi

Hello!
I'm currently working on a script to save all my bookmarks from a PocketBook reader to calibre database.

And I'm kinda stuck on getting 100% correct `start_cfi` and `end_cfi` values.
As far I understood calibre uses something different from EPUB Canonical Fragment Identifiers 1.1 as described here https://w3c.github.io/epub-specs/epub33/epubcfi/

Is it intended or a bug, or my understanding of epubcfi specification is incorrect? I think I have kinda working conversion algorithm but it's a little bit arcane and I'm afraid it will silently break at some annotations, and I dont have a way to test it beforehand.
Randrewy is offline   Reply With Quote