On 02/23/2011 10:53 PM, Tavmjong Bah wrote:
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.
Yes I realized it just after I set the email.
For all practical purposes display:none and visibility:hidden. The gui implementation is fine I just missed it.
I'm not overly trilled that it's part of the style, mean I have to change my javascript code. :) But I supposed this would be the sane way to do it.
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:
Wow. That is some strange gymnastic. That could be simplified a bit.
But thanks for the info.
Both could be easily implemented with a small box in the object properties.
Adding visibility would be easy... once Inkscape actually supports the property.
Yes but as I said above in my case display:none; will do just fine. I just want something to go away when I click somewhere.
Last id like to be able to specify alternate language for the text. Basically something that builds the switch for me.
[...]
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
yes. I would imagine it would be a massive amount of work. Considering you'd have to create something to handle the text, style and positioning of each separate language.