diff --git a/package.sh b/package.sh index ae1fec5..67bd6d2 100755 --- a/package.sh +++ b/package.sh @@ -1,5 +1,5 @@ #!/bin/bash -SCOURVER="0.17" +SCOURVER="0.18" cd .. 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 diff --git a/release-notes.html b/release-notes.html index f07cc09..8424c5e 100644 --- a/release-notes.html +++ b/release-notes.html @@ -9,6 +9,16 @@

Copyright 2009, Jeff Schiller

+
+
+

Version 0.18

+
+

Aug 3rd, 2009

+ +
+

Version 0.17

diff --git a/scour.inkscape.py b/scour.inkscape.py new file mode 100755 index 0000000..531dfb4 --- /dev/null +++ b/scour.inkscape.py @@ -0,0 +1,8 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +import sys +from scour import scourString +input = file(sys.argv[1], "r") +sys.stdout.write(scourString(input.read()).encode("UTF-8")) +input.close() +sys.stdout.close() diff --git a/scour.inx b/scour.inx new file mode 100644 index 0000000..30c948c --- /dev/null +++ b/scour.inx @@ -0,0 +1,16 @@ + + + <_name>Scoured SVG Output + org.inkscape.output.scour + scour.py + svg_regex.py + + .svg + image/svg+xml + <_filetypename>Scoured SVG (*.svg) + <_filetypetooltip>Scalable Vector Graphics + + + diff --git a/scour.py b/scour.py index 9939567..01c01a8 100755 --- a/scour.py +++ b/scour.py @@ -59,6 +59,7 @@ # This would require my own serialization of the DOM objects (not impossible) # Next Up: +# - add an option for svgweb compatible markup (no self-closing tags)? # - if a has only one element in it, collapse the (ensure transform, etc are carried down) # - 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