Skip to content

Open epub to location with epubcfi #1011

Answered by johnfactotum
ondrejdyck asked this question in Q&A
Discussion options

You must be logged in to vote

See #997.

A hacky way would be to overwrite the current location store in the .json file with the quote location but then one would loose their position in the book. Oh, well, hmm. I guess the position in the book would be changed anyway because you scrolled to a new location.

Yeah, you would lose the location anyway, but you can store the location as a bookmark in the JSON file.

Maybe this is the way?

It does have some advantages:

  • Works right now with any version of Foliate.
  • Gives you control over whether or how to save the last location.

Cons:

  • Feels kind of hacky.
  • Requires additional disk read/write.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ondrejdyck
Comment options

@starise
Comment options

@ondrejdyck
Comment options

@starise
Comment options

Answer selected by ondrejdyck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants