Exactly what is the attribute inkscape:label for anyway?
Exactly what is the attribute inkscape:label for anyway?
What is inkscape:label for, if there is already an ID attribute?
Re: Exactly what is the attribute inkscape:label for anyway?
I can't answer this directly. But looking at the XML Editor, it looks like it's associated with Layers (layers are special groups, since there is no SVG standard for layers).
Maybe this could help? https://inkscape.org/en/learn/faq/#What ... ain_SVG%22?
Maybe this could help? https://inkscape.org/en/learn/faq/#What ... ain_SVG%22?
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Exactly what is the attribute inkscape:label for anyway?
heyzeuss wrote:What is inkscape:label for, if there is already an ID attribute?
They don't serve the same purpose - the 'id' is a common XML attribute: it has to be unique in the current document (Inkscape ensures that), and has restrictions wrt allowed characters (see SVG and XML spec). The 'label' attribute is defined in a custom namespace ('inkscape'), does not have to be unique, and allows spaces as well as special characters without restrictions. The 'label' attribute can be added to any SVG element in the current document (see menu 'Object > Object Properties').
Inkscape makes use of it for example to store layer names: using the custom 'inkscape:label' attribute to store the layer name string which is displayed in the GUI (Layers dialog, status bar, etc.) gives users more freedom to name layers (e.g. allow repeated usage of the same layer name within one document, support spaces and special characters in layer names).