Skip to content

Display a position as bookmarked to user #601

Closed

Description

@vedat73

Hi, when a user tapped bookmark icon within an epub, I save "progression" and "totalProgression" values of tapped position. And these values were stored on remote server. So user can get these infos in different devices in different screen sizes. (iPhone, iPad) .
Imagine the same user reads the same epub and moves between pages.
I want to display a position of an epub as bookmarked whenever the current page info is matched with the previously saved bookmarked info. Is it possible to achieve that with only previously saved "progression" and "totalProgression" values ?
Thanks in advance...

Activity

  1. changed the title [-]Display a page as bookmarked to user[/-] [+]Display a position as bookmarked to user[/+] on Jun 2, 2025
  2. mickael-menu commented on Jun 2, 2025

    @mickael-menu
    Member

    Instead of checking if ⁠your progression and ⁠currentLocator.locations.progression are exactly the same, you can check if they're close enough to each other (within a small tolerance range).

  3. vedat73 commented on Jun 3, 2025

    @vedat73
    Author

    hi @mickael-menu , thanks for your reply. Got it, so there is no need to keep extra parameter like "position" to achieve the goal I mentioned above right?

  4. mickael-menu commented on Jun 3, 2025

    @mickael-menu
    Member

    No you can and probably should use position. I thought you were stuck with progression and totalProgression.

    Is it possible to achieve that with only previously saved "progression" and "totalProgression" values ?

  5. vedat73 commented on Jun 4, 2025

    @vedat73
    Author

    Actually I've previously saved data in remote server. Those data do not contains "position" parameter. Only "progression" and "totalProgression". It is important to handle the operation for the previously saved data as well. I do not know whether it is possible to calculate position value out of progression and totalProgression parameters manually. I mean parsing epub files and calculating position value based on progression.

  6. locked and limited conversation to collaborators on Jun 4, 2025
  7. converted this issue into a discussion #604 on Jun 4, 2025
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions