Hi Benjamin,

thanks for the quick answer. I wish I knew how to write up such a demo!
I was hoping you could point me to an example from which I could learn ;)

Just to make sure again we have a similar thing in mind. I am looking
for something similar to the brat embedding feature [1], just using
annotatorjs instead of brat. Are we talking about the same thing?

I am not very familiar with the DOM Selection API, but I thought that
it controls text selection, e.g. for copy-paste operations. Is that
at all usable for rendering annotations? 

I mean, can you create multiple selections with different colorings and that
don't go away when the user manually click-drags a new selection, e.g. to copy
a piece of text? 

Also, does that actually support events such as on-mouse-over popups that would
show additional information about an annotated piece of text? 

I had a brief look of how annotatorjs rendered highlights, and at least
in the version I tried, it was using span elements. Is that going to change now?

Best,

-- Richard

[1] http://brat.nlplab.org/embed.html#embedding-event-example

> On 10.05.2017, at 15:40, Benjamin Young <[email protected]> wrote:
> 
> Hey Richard!
> 
> Thanks for writing. There are exactly such things in the works. I've seen an 
> in-progress demo from Randall (when we were hanging out at I Annotate) that 
> uses fragment selectors to highlight (via the DOM Selection API).
> 
> Here's W3C Note that defines the fragment selector format:
> 
> http://w3c.github.io/web-annotation/selector-note/#frags
> 
> We also discussed a demo pretty similar to what you describe that has a Web 
> Annotation Data Model document shown in a textarea (perhaps) that is also 
> used to highlight a thing on the page.
> 
> At any rate, these exact things are in progress. :)
> 
> If you'd like to write-up a demo page and a Web Annotation Data Model 
> annotation (or a few) that highlight some stuff, that'd be a great help to 
> demo on.
> 
> We also plan to make the fragment selector thing (at least) usable on the 
> http://annotator.apache.org/ site for demoing there.
> 
> Thanks again for writing!
> 
> Benjamin

Reply via email to