[annotator-dev] SVG annotations?

Simon Rainer Rainer.Simon at ait.ac.at
Mon Mar 5 18:02:14 UTC 2012

Hi Tracy (& thanks to Nick and Andrew!)

right now, yuma.js doesn't support SVG, unfortunately. But at least in theory, I think, the architecture should be able to accommodate an SVG "plugin". In terms of UI, this would then look identical to the image/zoomable image annotation examples shown at http://yuma-js.github.com/demos.html. The addressing of the annotated element in the data model could likewise be XPath-based. (But eventually I want to harmonize our model with Annotator, anyway).

I'd really need to check details (and possibly code a proof of concept) before I can assess the actual effort it would take. But it's true that this would be an interesting new Use Case! 


P.S.: BTW I've been skimming the Annotator Wiki a bit more over the last days - and was thinking whether yuma could exist as an Annotator plugin? Something that gets activated as soon as the user selects embedded media? Might be a stupid idea... But maybe we can discuss briefly during the Skype call!

Von: annotator-dev-bounces at lists.okfn.org [annotator-dev-bounces at lists.okfn.org] im Auftrag von Andrew at FinalsClub.org [andrew at finalsclub.org]
Gesendet: Montag, 05. März 2012 18:24
An: Nick Stenning
Cc: Tracy Atteberry; annotator-dev at lists.okfn.org
Betreff: Re: [annotator-dev] SVG annotations?

Hi Tracy and thanks Nick.

There is another annotation project called yuma-js<http://yuma-js.github.com/> that is focusing on multimedia annotation.  Yuma currently supports image and map annotation with audio and video coming soon.  Perhaps they plan to support SVG annotation as well.

Good luck,

On Mar 5, 2012, at 11:08 AM, Nick Stenning wrote:

Hi Tracy,

Copying this reply to our annotator-dev list; hope that's ok.

Thanks for your question. I'm not entirely sure what the user interface would look like for what you're describing, but if that's set to one side, the purely technical question of "does Annotator's annotation format make any sense for SVG documents?" is a bit easier to answer.

It's possible in principle, as an annotation is basically just some data attached to a pair of XPaths denoting the start and end of the annotated section of the document. There's nothing stopping these being SVG nodes, although I certainly haven't tested this application.

Do you envisage users being able to select specific SVG shapes and then annotate them? This might require a bit of additional work on the frontend, but, as I say, it's certainly possible in principle, and could be a rather cool use-case! I can't think offhand of any particular reasons we'd run into cross-browser issues beyond standard issues of SVG support (and support for W3C Range, which is already a hard requirement of Annotator).

Best wishes,

On 29 Feb 2012, at 18:38, Tracy Atteberry <tracy.atteberry at oracle.com<mailto:tracy.atteberry at oracle.com>> wrote:


I have a quick question.  Is it possible to use Annotator to annotate SVG documents in a cross-browser way?

If not, do you have any pointers on how to make this work (if indeed it's possible)?

Thank you so much for your time.


Tracy Atteberry | Technical Evangelist | 312.692.5305
Oracle Outside In Technology
330 N. Wabash, Suite 2400 | Chicago, IL 60611
annotator-dev mailing list
annotator-dev at lists.okfn.org<mailto:annotator-dev at lists.okfn.org>

More information about the annotator-dev mailing list