Skip to content

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

Description

@FlafyDev

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions