diff --git a/scour.py b/scour.py index 96157b9..017843a 100755 --- a/scour.py +++ b/scour.py @@ -31,15 +31,38 @@ # * Process quadratic Bezier curves # * Collapse all group based transformations +# Even more ideas here: http://esw.w3.org/topic/SvgTidy +# * namespace cleanup -> +# * removal of more default attribute values (gradientUnits, spreadMethod, x1, y1, etc) +# * analysis of path elements to see if rect can be used instead? +# * removal of unused attributes in groups: +# +# +# +# +# +# in this case, fill="blue" should be removed +# * Move common attributes up to a parent group: +# +# +# +# +# +# becomes: +# +# +# +# +# + # Suggestion from Richard Hutch: # * Put id attributes first in the serialization (or make the d attribute last) # This would require my own serialization of the DOM objects (not impossible) # Next Up: # + remove duplicate gradients -# - scour polyline coordinates just like path coordinates -# - if after reducing precision we have duplicate path segments, then remove the duplicates and -# leave it as a straight line segment +# + remove all empty path segments +# + scour polyline coordinates just like path coordinates # - enable the precision argument to affect all numbers: polygon points, lengths, coordinates # - remove id if it matches the Inkscape-style of IDs (also provide a switch to disable this) # - prevent elements from being stripped if they are referenced in a