
On Thu, 4 Nov 2004, bulia byak wrote:
I added manually
<g id="l1" title="Layer1" label="Layer1" inkscape:groupmode="layer"> ... </g>
around the content of a file.
That reminds me ... we could really use a "make sublayer from selection" action or something similar.
(I think if the selection is a single group, that would just make the group a layer; otherwise it'd group the objects first and then make a layer of that.)
Two problems:
- on open, it shows (root). I think we agreed that if there's a single
layer it must be entered on load if there's no current layer remembered in namedview?
Hmm. I recall implementing that; perhaps it has been broken at some point since?
- it shows #l1 so title and label are ignored. What is the way to set
the visible title apart from id?
<title> is an SVG element, not an attribute (I originally made that mistake myself), and label is not part of the SVG standard at all; it's an attribute in our own namespace. Try inkscape:label="Layer1"
FWIW, there's an important difference of purpose between <title> and inkscape:label...
<title> is an accessibility feature for end-users (e.g. to provide brief descriptions for folks using assistive technology) -- <desc> is its "longer" equivalent.
Conversely, inkscape:label is intended for names and annotations that need only be meaningful to the content author. You've probably seen the weird notations that some graphic designers like to use for their layer names in Gimp, Illustrator, or Photoshop. inkscape:label provides a place for that so they don't go trying to cram it into id or <title> instead.
-mental