diff --git a/package.sh b/package.sh index 70eab69..1e374e6 100755 --- a/package.sh +++ b/package.sh @@ -1,5 +1,5 @@ #!/bin/bash -SCOURVER="0.18" +SCOURVER="0.19" cd .. zip scour/tarballs/scour-$SCOURVER.zip scour/scour.py scour/svg_regex.py scour/LICENSE scour/NOTICE scour/README.txt scour/release-notes.html cd scour diff --git a/scour.py b/scour.py index 78d972c..ba69e62 100755 --- a/scour.py +++ b/scour.py @@ -53,17 +53,17 @@ # # Next Up: -# + Remove some attributes that have default values -# + Convert c/q path segments into shorthand equivalents where possible: -# + custom serialization of SVG that prints out id/xml:id first (suggestion by Richard Hutch) -# + --indent option to specify how indent should work: space, tab, none -# - option to remove metadata +# - analyze all children of a group, if they have common attributes, then move them to the group +# - analyze a group and its children, if a group's attribute is not being used by any children +# (or descendants?) then remove it +# - crunch *opacity, offset values (remove trailing zeros, reduce prec, integerize) +# - add an option to remove ids if they match the Inkscape-style of IDs +# - investigate point-reducing algorithms # - parse transform attribute # - if a has only one element in it, collapse the (ensure transform, etc are carried down) -# - remove id if it matches the Inkscape-style of IDs (also provide a switch to disable this) +# - option to remove metadata # - prevent elements from being stripped if they are referenced in a