On Wed, 2011-02-23 at 11:41 +1100, Sébastien Lanteigne wrote:
Hi does anyone know of an easy way to set the visibility of an item within Inkscape?
visibility="hidden"
Inkscape doesn't seem to support visibility="hidden" (which would be shifted into the "style" attribute by Inkscape). It does support display:none in the Object properties dialog (Hide check box). It shouldn't be too hard to add support for visibility.
Also to set an anchor.
add xmlns:xlink="http://www.w3.org/1999/xlink" to the SVG tag plus <a> </a> to wrap a specific element or group.
I know I can do it with the inkscape xml editor but at that point I may as well use vi or bluefish.
This can already be done using the "Links attributes" dialog. See:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Web-Links.html
Both could be easily implemented with a small box in the object properties.
Adding visibility would be easy... once Inkscape actually supports the property.
Last id like to be able to specify alternate language for the text. Basically something that builds the switch for me.
<text systemLanguage="en" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Circle</text>
<switch> <text systemLanguage="fr" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Cercle</text>
<text systemLanguage="sp" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Círculo</text>
<text systemLanguage="it" xml:space="preserve" style="font-size:120px;font-family:FreeSans;" x="91.221046" y="31.230213" id="text5420">Cerchio</text>
</switch>
Adding <switch> to Inkscape would be non-trivial. You would probably want to have to have a mechanism to choose which branch is selected from within Inkscape (i.e. choose between French, Spanish, and Italian in the above example) so that you can edit on-screen each separately. It would be nice but I don't see this happening soon.
Tav