Less verbose markup, dont write unnecessary styles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Low
|
Unassigned |
Bug Description
inkscape markup
I had previously noticed that Sodipodi added a whole
lot of unnecessary extra markup and I decided to see if
Inkscape did the same and to document what I found.
Looking at the markup of icons.svg
(having first converted it to Standard SVG)
I noticed quite a lot of extra markup.
if
stop-opacity:1;
then
why write it, unless explicitly set?
if fill:none;
then
why write
it or why also write 'fill-rule:
many font styles are being set over and over again for
groups that dont actually contain any text.
although it doesn't occur in the icons.svg document the
same goes for
stroke:
no need to stroke-width if there is no stroke.
the icons.svg file also contains a lot of unnecessary
blank gradients but this may just be due to the artist
using inkscape in a particular way, but it would be
helpful if there were easier wasy to determine which
gradients were unused and remove them.
I also considered that this information might be useful
for Undoing changes but when I thought about it some
more I figured the Undo system should be able to keep
track without cluttering the markup with redundant
information.
Changed in inkscape: | |
status: | Incomplete → Invalid |
Also, it would be good to have a cleanup SVG command to get
rid of unneccesary definitions, gradients, styles, markers
from a document.
Might even be good to have the option in preferences to
prune out unnecessary on leaving the app. A toggle switch.
Jon