Replies: 3 comments 2 replies
-
We can't use a Are you limiting the scope to primarily text-based publications? Because even for those, a user could annotate an image, audio or video resource.
In trade, no one seems to care about that, this goes well beyond Amazon. |
Beta Was this translation helpful? Give feedback.
-
The shorter the snippet, the more false positives we might get while looking for occurrences. I don't know what's the minimum snippet length to be safe. If we go down this way, I would separate into new properties Implementing this solution is more complex but doable. We will need to match two snippets instead of one and then merge the returned DOM ranges. But I would really avoid censoring the text snippet unless it's really a deal breaker:
Screen.Recording.2024-09-16.at.18.17.40.movMaybe an alternative could be to limit the length of the annotation to a reasonable size? |
Beta Was this translation helpful? Give feedback.
-
Note: the best practices for locators should be kept in sync with the annotations spec after we reach a consensus on the required locator for sharing purpose. https://readium.org/architecture/models/locators/best-practices/format.html |
Beta Was this translation helpful? Give feedback.
-
We need a selector that is a MUST for every implementation of the Annotation model. If not, interoperability will be totally broken.
Readium developers have either TextQuoteSelector and DomRange Selector as their preferred locator.
The big issue with TextQuoteSelector is that it contains a segment of the text of a publication. If the publication is protected by LCP, because this clear text can be quite large, we have an issue (even if other vendor like Amazon don't seem to care about too much about this).
A potential solution could be to limit the size of the text contained in the
exact
,prefix
andsuffix
properties. For instance with a limit to 10 characters + "..." + 10 characters forexact
, and at most 10 characters forprefix
andsuffix
. With such constraints, the managers of LCP could admit that it does not harm the protection given by the DRM.Is it something that could technically be efficient for locating annotations?
Beta Was this translation helpful? Give feedback.
All reactions