From 49b35bf6d1dfc3584e16fbd3e1040f0f1da32ce3 Mon Sep 17 00:00:00 2001 From: JSCHILL1 Date: Tue, 19 May 2009 10:02:47 -0500 Subject: [PATCH] Remove text styles from shapes. Remove --inkscape styles. Fix path handling for multiple coords in first Move command. Add --set-precision N argument --- CONTRIBUTORS | 3 + fulltests/boom.svg | 360 +++++++++++++++++++++++++++++++++++++ logo.svg => logos/logo.svg | 0 release-notes.html | 4 + scour.py | 79 ++++++-- statistics.html | 16 ++ testscour.py | 5 + unittests/font-styles.svg | 3 + 8 files changed, 455 insertions(+), 15 deletions(-) create mode 100644 fulltests/boom.svg rename logo.svg => logos/logo.svg (100%) create mode 100644 unittests/font-styles.svg diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 03221ae..ea94cbd 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -5,3 +5,6 @@ Thanks to the following contributors to scour: - report file size reduction - prettied up the report +* Martin: + - better methods of handling string-to-float conversions in Python + - document functions in the traditional Python way diff --git a/fulltests/boom.svg b/fulltests/boom.svg new file mode 100644 index 0000000..d418952 --- /dev/null +++ b/fulltests/boom.svg @@ -0,0 +1,360 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/logo.svg b/logos/logo.svg similarity index 100% rename from logo.svg rename to logos/logo.svg diff --git a/release-notes.html b/release-notes.html index a5b3a16..f9dbea1 100644 --- a/release-notes.html +++ b/release-notes.html @@ -16,6 +16,10 @@ diff --git a/scour.py b/scour.py index 5b24ccd..2da0787 100755 --- a/scour.py +++ b/scour.py @@ -42,6 +42,10 @@ # Next Up: # + recognize that fill="url("#grd1")" is legal and do not remove grd1 gradient +# + properly handle paths with more than 1 pair of coordinates in the first Move command +# + remove font/text styles from non-text elements +# + remove -inkscape-font-specification styles +# + added --set-precision argument to set the number of significant digits (defaults to 6) # - prevent elements from being stripped if they are referenced in a