Quoting bulia byak <buliabyak@...400...>:
On 9/12/06, tavmjong@...8... <tavmjong@...8...> wrote:
A step in the proposed direction is to keep Inkscape from attaching style
values
to objects that are identical to the default values.
It already does that, sort of. It compares the style of the object to that of its parent and writes only the difference.
The SVG files are less verbose than I remembered but there are still many attributes being set unnecessarily. I checked with 0.44+SVN. Here are the attributes that are set even when they correspond to the SVG specified defaults or are not used (e.g. fill-rule for Freehand and Bezier tools). The objects' parent was "layer1" which had no attributes set.
Rectangle tool: stroke, stroke-opacity. (Stroke set to 'none'. Unsetting stroke removes attribute.) Ellipse tool: stroke, stroke-opacity. Star tool: stroke, stroke-opacity. Spiral tool: fill-rule, stroke-width, stroke-linecap, stroke-linejoin, stroke-opacity. Freehand tool: fill-rule, stroke-width, stroke-linecap, stroke-linejoin, stroke-opacity. Bezier tool: fill-rule, stroke-width, stroke-linecap, stroke-linejoin, stroke-opacity. Calligraphy tool: stroke-opacity. Text tool: font-style, font-weight, fill, fill-opacity, stroke, stroke-width, stroke-linecap, stroke-linejoin, stroke-opacity.