Open DrymarchonShaun opened 1 year ago
It might be useful context for this to know how Librera currently handles Bookmarks. I wonder if the files could be made cross-compatible somehow. Librera stores Bookmarks and Quick Bookmarks in "app-Bookmarks.json". Here's one bookmark line for reference.
"1694142910667":{"isF":false,"p":0.36120403,"path":"/storage/3132-3733/Books/Fiction/Crooked_House.epub","t":1694142910667,"text":"Quick Bookmark"}
Also notable: Librera's bookmark function anchors to "page" rather than paragraph. I suspect this means bookmarks in Librera are not currently compatible with Calibre even if they were run through an encoder, because different screens will have different text on the 50th page of a file. See issue #1144 to discuss bookmark anchoring.
"app-Progress.json" seems to use the same file structure as "app-Bookmarks.json". Here's an example of the same book file and position as the quick bookmark I posted before.
From app-Progress.json
"Crooked_House.epub":{"cp":false,"d":0,"dc":false,"dp":false,"lk":1,"p":0.36120403,"s":120,"sp":false,"t":1694142906650,"x":0,"y":0,"z":100}
Just adding that it would be fantastic to have more Calibre integration in Librera, I suspect that most serious ebook readers use it to organize and manage their libraries.
In epub files Calibre uses a
last-read
entry inMETA-INF/calibre-bookmarks.txt
to save reading location.for whatever reason its encoded as base64 -- (Example)
decoded it becomes --
Is it feasible to add the ability to use this file for current reading position? As it is now there is no way to sync reading position between Calibre and Librera, in theory this would make it possible with something like Syncthing.