diff --git a/crunch.sh b/crunch.sh
new file mode 100755
index 0000000..5f053b2
--- /dev/null
+++ b/crunch.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+mkdir $1
+for FILE in `ls fulltests`
+do
+ ./scour.py -i fulltests/$FILE -o $1/$FILE >> $1/report.txt
+done
+
\ No newline at end of file
diff --git a/fulltests/acid.svg b/fulltests/acid.svg
new file mode 100644
index 0000000..5b12c90
--- /dev/null
+++ b/fulltests/acid.svg
@@ -0,0 +1,58 @@
+
+
+
\ No newline at end of file
diff --git a/package.sh b/package.sh
index ac24f64..e417883 100755
--- a/package.sh
+++ b/package.sh
@@ -1,6 +1,6 @@
#!/bin/bash
SCOURVER="0.10"
cd ..
-tar cvf scour/tarballs/scour-$SCOURVER.tar scour/scour.py scour/LICENSE scour/NOTICE scour/README.txt scour/release-notes.html
+tar cvf scour/tarballs/scour-$SCOURVER.tar scour/scour.py scour/svg_regex.py scour/LICENSE scour/NOTICE scour/README.txt scour/release-notes.html
gzip scour/tarballs/scour-$SCOURVER.tar
cd scour
diff --git a/release-notes.html b/release-notes.html
index e86aedc..6d0cf0d 100644
--- a/release-notes.html
+++ b/release-notes.html
@@ -20,6 +20,10 @@
Convert from absolute to relative path data
Remove trailing zeroes from path data
Limit to no more than 6 digits of precision
+ Remove empty line segments
+ Convert lines to horiz/vertical line segments where possible
+ Remove some more default styles (display:none, visibility:visible, overflow:visible,
+ marker:none)
diff --git a/scour.py b/scour.py
index d1357c2..38492ab 100755
--- a/scour.py
+++ b/scour.py
@@ -45,8 +45,8 @@
# * Put id attributes first in the serialization (or make the d attribute last)
# Next Up:
+# - implement command-line option to output svgz
# - Remove unnecessary units of precision on attributes (use decimal: http://docs.python.org/library/decimal.html)
-# - Remove unnecessary units of precision on path coordinates
# - Convert all colors to #RRGGBB format
# - Reduce #RRGGBB format to #RGB format when possible
# https://bugs.edge.launchpad.net/ubuntu/+source/human-icon-theme/+bug/361667/
@@ -96,6 +96,7 @@ unwanted_ns = [ NS['SODIPODI'], NS['INKSCAPE'], NS['ADOBE_ILLUSTRATOR'],
svgAttributes = [
'clip-rule',
+ 'display',
'fill',
'fill-opacity',
'fill-rule',
@@ -107,7 +108,9 @@ svgAttributes = [
'font-variant',
'font-weight',
'line-height',
+ 'marker',
'opacity',
+ 'overflow',
'stop-color',
'stop-opacity',
'stroke',
@@ -117,6 +120,7 @@ svgAttributes = [
'stroke-miterlimit',
'stroke-opacity',
'stroke-width',
+ 'visibility'
]
def findElementById(node, id):
@@ -187,6 +191,7 @@ numIDsRemoved = 0
numElemsRemoved = 0
numAttrsRemoved = 0
numRastersEmbedded = 0
+numPathSegmentsReduced = 0
numBytesSavedInPathData = 0
# removes all unreferenced elements except for