diff --git a/scour.inx b/scour.inx index 652e578..895f446 100644 --- a/scour.inx +++ b/scour.inx @@ -11,33 +11,33 @@ true true true - false - false true false false false true false - false + false 5 <_item value="space">Space <_item value="tab">Tab <_item value="none">None - false - false - false - + + false + false + false + + + + <_param name="instructions" type="description" xml:space="preserve">This extension optimizes the SVG file according to the following options: * Shorten color names: convert all colors to #RRGGBB or #RGB format. * Convert CSS attributes to XML attributes: convert styles from <style> tags and inline style="" declarations into XML attributes. * Group collapsing: removes useless <g> elements, promoting their contents up one level. Requires "Remove unused ID names for elements" to be set. * Create groups for similar attributes: create <g> elements for runs of elements having at least one attribute in common (e.g. fill color, stroke opacity, ...). - * Remove unused ID names for elements: remove all unreferenced ID attributes. - * Shorten IDs: reduce the length of all ID attributes, assigning the shortest to the most-referenced elements. For instance, #linearGradient5621, referenced 100 times, can become #a. * Embed rasters: embed raster images as base64-encoded data URLs. * Keep editor data: don't remove Inkscape, Sodipodi or Adobe Illustrator elements and attributes. * Remove metadata: remove <metadata> tags along with all the information in them, which may include license metadata, alternate versions for non-SVG-enabled browsers, etc. @@ -45,7 +45,12 @@ * 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. + + + <_param name="instructions" type="description" xml:space="preserve">Ids specific options: + * Remove unused ID names for elements: remove all unreferenced ID attributes. + * Shorten IDs: reduce the length of all ID attributes, assigning the shortest to the most-referenced elements. For instance, #linearGradient5621, referenced 100 times, can become #a. * 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.