=== modified file 'scour.inkscape.py'
--- scour.inkscape.py 2010-09-01 02:10:58 +0000
+++ scour.inkscape.py 2011-04-02 01:58:08 +0000
@@ -46,6 +46,15 @@
self.OptionParser.add_option("--indent",
action="store", type="string", dest="indent_type", default="space",
help="indentation of the output: none, space, tab (default: %default)")
+ self.OptionParser.add_option("--protect-ids-noninkscape", type="inkbool",
+ action="store", dest="protect_ids_noninkscape", default=False,
+ help="don't change IDs not ending with a digit")
+ self.OptionParser.add_option("--protect-ids-list",
+ action="store", type="string", dest="protect_ids_list", default=None,
+ help="don't change IDs given in a comma-separated list")
+ self.OptionParser.add_option("--protect-ids-prefix",
+ action="store", type="string", dest="protect_ids_prefix", default=None,
+ help="don't change IDs starting with the given prefix")
self.OptionParser.add_option("--enable-viewboxing", type="inkbool",
action="store", dest="enable_viewboxing", default=False,
help="changes document width/height to 100%/100% and creates viewbox coordinates")
=== modified file 'scour.inx'
--- scour.inx 2010-10-04 23:19:40 +0000
+++ scour.inx 2011-04-02 01:58:08 +0000
@@ -26,6 +26,9 @@
<_item value="tab">Tab
<_item value="none">None
+ false
+ false
+ false
<_param name="instructions" type="description" xml:space="preserve">This extension optimizes the SVG file according to the following options:
@@ -42,7 +45,10 @@
* Work around renderer bugs: emits slightly larger SVG data, but works around a bug in librsvg's renderer, which is used in Eye of GNOME and other various applications.
* Enable viewboxing: size image to 100%/100% and introduce a viewBox.
* Number of significant digits for coords: all coordinates are output with that number of significant digits. For example, if 3 is specified, the coordinate 3.5153 is output as 3.51 and the coordinate 471.55 is output as 472.
- * XML indentation (pretty-printing): either None for no indentation, Space to use one space per nesting level, or Tab to use one tab per nesting level.
+ * XML indentation (pretty-printing): either None for no indentation, Space to use one space per nesting level, or Tab to use one tab per nesting level.
+ * Preserve manually created ID names not ending with digits: usually, optimised SVG output removes these, but if they're needed for referencing (e.g. #middledot), you may use this option.
+ * Preserve these ID names, comma-separated: you can use this in conjunction with the other preserve options if you wish to preserve some more specific ID names.
+ * Preserve ID names starting with: usually, optimised SVG output removes all unused ID names, but if all of your preserved ID names start with the same prefix (e.g. #flag-mx, #flag-pt), you may use this option.