nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

An annotation API?

Open Ambrevar opened this issue 2 years ago • 3 comments

Currently it seems we don't have a good way to handle annotations beyond link hinting.

By annotation, I mean a way to display contextual information on specific parts of a document. Example: hover or click on a highlighted word to get its definition / translation.

@hendursaga mentioned two resources worth exploring:

  • https://www.w3.org/TR/annotation-model/
  • https://annotator.apache.org/

Ambrevar avatar May 12 '22 07:05 Ambrevar

It would be really nice if Nyxt would display the annotations I made using annotate-highlighted-text in the page itself (or a local copy, since the page may change and the annotations might be orphaned).

hover or click on a highlighted word to get its definition / translation.

That's something I'd love to have, to have a bare-bones yomichan in Nyxt.

PS: as of 3.9.2 (installed via flathub), show-annotations-for-current-url doesn't seem to work, it gives me a Page could not be loaded. error.

odanoburu avatar Dec 06 '23 14:12 odanoburu

@odanoburu I'm able to reproduce the bug. I'll open a PR fixing it.

aadcg avatar Dec 06 '23 17:12 aadcg

@odanoburu thanks for reporting and please open issues whenever you find more!

aadcg avatar Dec 06 '23 18:12 aadcg