From 78eb4e5e82efb8b93379c16e52bff7ef30a25b66 Mon Sep 17 00:00:00 2001 From: JSCHILL1 Date: Wed, 20 May 2009 20:49:27 -0500 Subject: [PATCH] Fix bug with consecutive coords in path commands --- fulltests/pear.svg | 123 +++++++++++++++++++++++++++++++++++++ scour.py | 148 +++++++++++++++++++++++++++++---------------- 2 files changed, 220 insertions(+), 51 deletions(-) create mode 100644 fulltests/pear.svg diff --git a/fulltests/pear.svg b/fulltests/pear.svg new file mode 100644 index 0000000..12e1988 --- /dev/null +++ b/fulltests/pear.svg @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scour.py b/scour.py index 99f71a6..a7affe5 100755 --- a/scour.py +++ b/scour.py @@ -42,8 +42,10 @@ # This would require my own serialization fo the DOM objects # Next Up: +# + fix bug with consecutive path coordinates not being translated properly to relative commands # - eliminate last segment in a polygon # - collapse straight curves +# - 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