audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

Add highlight annotations to ebooks

Open MxMarx opened this issue 1 year ago • 1 comments

This pull request adds the ability to highlight and save text in epubs. Saved bookmarks reuse the existing "search book" ui.

image

To accomplish this, I used the existing bookmark schema, with the time property storing the CFI of the highlighted text. This posed a dilemma if a library item has both an audiobook and an ebook because they share the same id, so I extended the bookmark schema and api with a type property, which defaults to audio. This could cause problems if the ebook file changes after bookmarks are added, but that could probably be solved with some type of fingerprinting.

resolves #1558 resolves #1709

Should be compatible with #2584, but if not, I'll resolve any conflicts.

MxMarx avatar Feb 11 '24 00:02 MxMarx

Hey, quick question, What's the state of this PR?

I found this PR a while ago and was looking forward for it to be merged.

Hutch79 avatar May 28 '24 07:05 Hutch79