Skip to content

Is there any way to obtain currently visible text? #714

@Mordtimer

Description

@Mordtimer

Is there any way to retrive text that is currently visible on screen? The closest solution we found while working with readium android/ios toolkit is to refer to EpubNavigatorFragment.firstVisibleElementLocator() but it is not precise considering our needs, as it usually includes to much text from previous page.

We would like to know is there is a ready to go solution to retrive visible/on tap text. If not can we get any hints how to approach this problem in possible contribution from out side? What can be the biggest problem (if any) to implement similar solution that we may not see yet?

My own first try js injections were giving inconsistent results, and feeling that I need to interact deeper with the redium toolkit. I saw some approach with geting locator from tap like this:
readium/swift-toolkit@6bf37fd

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