From a7d2593a587e8820f29011a53c8eaaca3b312150 Mon Sep 17 00:00:00 2001 From: JSCHILL1 Date: Sun, 17 May 2009 14:34:08 -0500 Subject: [PATCH] Added code to convert colors to #RRGGBB format --- release-notes.html | 12 ++ scour.py | 238 ++++++++++++++++++++++++++++++++++-- testscour.py | 12 +- unittests/color-formats.svg | 6 +- 4 files changed, 250 insertions(+), 18 deletions(-) diff --git a/release-notes.html b/release-notes.html index 0183267..ecee485 100644 --- a/release-notes.html +++ b/release-notes.html @@ -9,6 +9,18 @@

Copyright 2009, Jeff Schiller

+
+
+

Version 0.12

+
+ + +
+

Version 0.11

diff --git a/scour.py b/scour.py index 518d1ce..c6168b1 100755 --- a/scour.py +++ b/scour.py @@ -30,9 +30,6 @@ # * Specify a limit to the precision of all positional elements. # * Clean up Definitions # * Collapse duplicate gradient definitions -# * Clean up CSS -# * Convert RGB colours from RGB(r,g,b) to #RRGGBB format -# * Convert RGB colours from #RRGGBB to #RGB if possible # * Clean up paths # * Eliminate last segment in a polygon # * Collapse straight curves. @@ -46,10 +43,10 @@ # Next Up: # + Up-revved enthought's path parser for integer coords with sci notation: # https://svn.enthought.com/enthought/changeset/23583?format=diff&new=23583 +# + Convert rgb() into #RRGGBB +# + Convert #RRGGBB into #RGB where possible # - prevent elements from being stripped if they are referenced in a