From 56cc8fd15a2accacc98c7261bf79cb4a8431f59b Mon Sep 17 00:00:00 2001 From: JSCHILL1 Date: Tue, 19 May 2009 21:30:50 -0500 Subject: [PATCH] Collapse consecutive h,v segments/coords where possible --- release-notes.html | 1 + scour.py | 102 ++++++++++++++++++++++++------- testscour.py | 19 ++++++ unittests/consecutive-hlines.svg | 5 ++ 4 files changed, 106 insertions(+), 21 deletions(-) create mode 100644 unittests/consecutive-hlines.svg diff --git a/release-notes.html b/release-notes.html index f9dbea1..bc0d5b0 100644 --- a/release-notes.html +++ b/release-notes.html @@ -20,6 +20,7 @@
  • remove font/text styles from shape elements (font-weight, font-size, line-height, etc)
  • remove -inkscape-font-specification styles
  • added --set-precision argument to set the number of significant digits (defaults to 6)
  • +
  • collapse consecutive h,v coords/segments that go in the same direction
  • diff --git a/scour.py b/scour.py index 2da0787..ac95491 100755 --- a/scour.py +++ b/scour.py @@ -46,6 +46,7 @@ # + 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) +# + collapse unnecessary consecutive horizontal/vertical line segments # - prevent elements from being stripped if they are referenced in a