Attempt to fix bug 747698, "protect_ids options missing in scour.inkscape.py".
This commit is contained in:
parent
6c50c78d99
commit
ce735105d9
2 changed files with 16 additions and 1 deletions
|
|
@ -46,6 +46,15 @@ class ScourInkscape (inkex.Effect):
|
|||
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")
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
<_item value="tab">Tab</_item>
|
||||
<_item value="none">None</_item>
|
||||
</param>
|
||||
<param name="protect-ids-noninkscape" type="boolean" _gui-text="Preserve manually created ID names not ending with digits">false</param>
|
||||
<param name="protect-ids-list" type="boolean" _gui-text="Preserve these ID names, comma-separated">false</param>
|
||||
<param name="protect-ids-prefix" type="boolean" _gui-text="Preserve ID names starting with">false</param>
|
||||
</page>
|
||||
<page name="Help" _gui-text="Help">
|
||||
<_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.</_param>
|
||||
* 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.</_param>
|
||||
</page>
|
||||
</param>
|
||||
<output>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue