How to accurately detect the number of reflowable screens in the Current Page #698
Unanswered
ahmetfrkeken
asked this question in
Q&A
Replies: 1 comment
-
Hello, As you mentioned, this is not currently supported in the Kotlin toolkit. We have no short term plan to implement it. However, if you want to contribute this feature, it was recently added to the Swift toolkit, so you could take a look at the changes and try to port them to the Kotlin toolkit: readium/swift-toolkit#612 (in a later PR we moved from reading order indices to HREFs to be more consistent with the other APIs: readium/swift-toolkit#624) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm working a reading application with reflowable EPUB support.
I'm trying to determine how many actual reflowable screen pages are present in the currently displayed page (locator.locations.position)
The goal is to check whether a specific text (e.g., from a
Text.after
highlight) appears on the same visible screen as the user's current reading position.For example: if I'm on the 16th page (as determined by
publication.positions()
), I would like to calculate how many reflowable screen pages that logical page spans — which could be 1 on a tablet, but 2–3 on a phone with larger font settings.I understand that this is currently not officially supported, but I really need to implement this functionality. I would greatly appreciate any guidance or suggestions you can offer.
Beta Was this translation helpful? Give feedback.
All reactions