Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] export annotation set [Round 2] #2704

Open
wants to merge 28 commits into
base: develop
Choose a base branch
from

Conversation

panaC
Copy link
Member

@panaC panaC commented Dec 11, 2024

This PR allows :

For the CFI Selector : vivliostyle-cfi doesn't support CFI Range with the comma separator cf (only position supported)

This PR is on a blocking state as long as the CFI library issue is not resolved.

We leave the choice to use CFI for the moment
for the benefice to use a CssSelector refined by TextPositionSelector

Cf the spec made by Laurent : https://github.com/readium/annotations

I reintroduced the ProgressionSelector to keep this information across export/import in thorium annotation format. Progression is generated from the r2-navigator to chrome ui and not from the ui to the r2-navigator.

@panaC panaC self-assigned this Dec 11, 2024
@danielweck
Copy link
Member

yes I would also use the HTML body as the DOM tree root to compute text position and quote.
though interestingly, in principle anyway, the head could be omitted and the body in CFI and other indexed node path notations would be shifted ... which of course is not an issue in real world EPUB publications where the head pretty much exists all the time, especially as that's where the reading system injects stylesheets etc. :)

@panaC panaC requested a review from danielweck December 18, 2024 14:21
@panaC
Copy link
Member Author

panaC commented Dec 18, 2024

Hello @danielweck, I let you review this PR for the import/export annotationSet part

@panaC panaC marked this pull request as ready for review December 30, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants