Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to see how many pages you need to read to get to the next chapter. #7

Open
2 tasks
FlafyDev opened this issue Aug 10, 2022 · 0 comments
Open
2 tasks
Labels
enhancement New feature or request

Comments

@FlafyDev
Copy link
Owner

Title. Including sub chapters.

The problem is with anchors

1. What if the next chapter is in the same file but points to an anchor you haven't reached yet?

Right now the renderer is sending how many anchors you've currently passed in the current file. This is used by the reader app to correctly determine on which chapter you are in case there are multiple chapters pointing to the same file but different anchors).

My idea is instead of sending the passed anchors of the current file, send all of the anchors of the current file together with the inner page they are on. This way the reader app can compute on its own how many anchors have passed. And can also determine how many inner pages until the next chapter.

2. What if the next chapter is in a different file but points to an anchor?

You wouldn't be able to determine the percentage of how far an anchor is without having the file loaded.
This is solved by #6

Task list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant