From f37fef89dfe380df1584d8b033f787a2e306b7f9 Mon Sep 17 00:00:00 2001 From: JSCHILL1 Date: Tue, 28 Apr 2009 11:57:00 -0500 Subject: [PATCH] Fix bug in line-to-hz conversion. Remove empty line/curve segments. Handle svgz files on input/output. Added option to prevent style-to-xml conversion --- scour.py | 124 ++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 90 insertions(+), 34 deletions(-) diff --git a/scour.py b/scour.py index a21af7f..e8e5cd9 100755 --- a/scour.py +++ b/scour.py @@ -46,9 +46,18 @@ # * Put id attributes first in the serialization (or make the d attribute last) # Next Up: -# - deal with gradient stops with offsets in percentages -# - implement command-line option to output svgz -# - Remove unnecessary units of precision on attributes (use decimal: http://docs.python.org/library/decimal.html) +# + convert gradient stop offsets from percentages to float +# + convert gradient stop offsets to integers if possible (0 or 1) +# + fix bug in line-to-hz conversion +# + handle non-ASCII characters (Unicode) +# + remove empty line or curve segments from path +# + added option to prevent style-to-xml conversion +# + handle compressed svg (svgz) on the input and output +# - display how long it took to scour the file in the report +# - prevent elements from being stripped if they are referenced in a