annotator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerben <>
Subject Precise-links browser extension
Date Mon, 29 May 2017 19:20:28 GMT
Hi all,

I have been silent here so far, but have been working a bit with Randall
& Benjamin on our shared webby ambitions, and thought I'll share this
one for your interests. At the I Annotate <>
conference last month I made a simple browser extension to support Web
Annotation Selectors in fragment identifiers, as specified in this W3C
note <>.
A location such
will scroll to the words /fluffy ears/ and select them.


The extension currently only supports TextQuoteSelectors using
<>, which I abstracted
through a minimal library I dub dom-anchor-selector
<>, with the intention of
adding support for other selector types. I would be glad to have this
library moved or rewritten under the Apache Annotator umbrella if there
is interest.

The conversion between the selector as a javascript object and as a
fragment identifier is done by code borrowed from Ivan Herman's
<>, packaged
as a module first by me here
<>, and again by Randall
under the Apache Annotator project.

*Try it:*

For Firefox, available here

For Chromium, I yet only published it on my own server, here
<> for now. To install,
download it and drag&drop the file to your list of extensions

To create link to a segment of text, right-click the selection and
choose 'Copy link to selected text'.

*Improve it:*

Extension code is here <>, though
most improvements are to be done in the dependencies mentioned above.

It may be nice to also create a version of this code that people can
easily include in their web pages, something I did previously with
quoteurl <>.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message