I've been trying to do this for a while now, and I hoped that it'd be possible with the inkscape command line, but I'm new to this, so I can't see how.
I've got a .svg file that's from the OpenGroup's Archi application. It's got boxes and links with names.
What I'd like to do is make the names clickable. So, for example, the box:
---------------------- | | | my_label | | | ----------------------
Would be clickable, as a box, and go to:
This will work because I'm using a wiki, so the 'my_label' will become a page on the wiki.
Is there a way to get inkscape to add the link:
<a xlink:href="http://mywebsite.com/my_label"> box </a>
Or, in other words, to translate:
<a xlink:href="http://takingserviceforward.org/wiki/index.php?title=Service_agreement">
<text fill="black" x="332" xml:space="preserve" y="159" clip-path="url(#clipPath8)" stroke="none" id="text88738">My_Label</text> <rect x="1356" y="370" clip-path="url(#clipPath5)" fill="none" width="246" rx="27.5" ry="27.5" height="54" stroke="rgb(255,255,181)" id="rect88726" />
To: <a xlink:href="http://takingserviceforward.org/wiki/index.php?title=My_Label"> <text fill="black" x="332" xml:space="preserve" y="159" clip-path="url(#clipPath8)" stroke="none" id="text88738">My_Label</text> <rect x="1356" y="370" clip-path="url(#clipPath5)" fill="none" width="246" rx="27.5" ry="27.5" height="54" stroke="rgb(255,255,181)" id="rect88726" /> </a>
I'd be grateful for any suggestions - if there's something else that manipulates .svg files that could do this, it'd be good to know!