SVG for annotations added
Created by: roewenstrunk
Besides SVG for overlays, now there is support for SVG for annotations.
@bwbohl and @nikobeer could you please check, if this works with existing editions?
In the MEI source file put an SVG into an <surface>
element:
<surface` n="1" xml:id="facsimile-0102001">
<graphic target="image.jpg" type="facsimile" width="3780" height="2952"/>
<svg id="svg-annotation-100002" xmlns="http://www.w3.org/2000/svg" fill="none" width="3780"
height="2952" viewBox="0 0 3780 2952" style="fill:none">
<rect x="2646" y="1350" fill="red" fill-opacity="0.3" stroke="red" width="66" height="87"/>
</svg>
</surface>
In the MEI work file add an annotation as follows:
<annot xml:id="annotation-100002" type="editorialComment" plist="xmldb:exist:///db/apps/.../source.xml#svg-annotation-100002">
<title>SVG Annotation</title>
<p>SVG Annotation</p>
<ptr type="priority" target="#ediromAnnotPrio1"/>
<ptr type="categories" target=""/>
</annot>