[annotator-dev] Overlapping highlights
Michael Widner
mikewidner at stanford.edu
Fri Sep 12 23:28:51 UTC 2014
Nevermind. I figured it out. I just needed to iterate over the
highlights attribute of the annotation object.
Mike
On 9/12/14, 3:47 PM, Michael Widner wrote:
> Hi all,
>
> First: thanks for all the work you've put in on Annotator. It's great
> stuff.
>
> Second: I've noticed that when two highlights overlap a section of
> text, Annotator creates three new spans. I understand that this is a
> limitation of HTML and so can't be changed
>
> Is there some easy utility function in Annotator that I can call in a
> plugin that will allow me to select all relevant spans for a specific
> annotation?
>
> Many thanks,
>
> Mike
>
> P.S. I'm wearing my iAnnotator t-shirt today, by chance.
>
--
Michael Widner, Ph.D.
Academic Technology Specialist
Division of Literatures, Cultures, and Languages
Stanford University Libraries
Pigott Hall, Room 108
450 Serra Mall
Stanford, CA 94305
t: 650-798-9485
More information about the annotator-dev
mailing list