scour.inx revision 77dae8b0ae204855f29e1acb5105295dcacd710e
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller<?xml version="1.0" encoding="UTF-8"?>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
1298782991860e0fa520aac3222e0da0fd299a29helix <_name>Optimized SVG Output</_name>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller <id>org.inkscape.output.scour</id>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller <dependency type="executable" location="extensions">scour.py</dependency>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller <dependency type="executable" location="extensions">svg_regex.py</dependency>
dae6f8bc7f695949560f0ae37c783a9cd91f1b50jeff_schiller <dependency type="executable" location="extensions">yocto_css.py</dependency>
b6a977ede002f585667208a8730b00835944e954JazzyNico <param name="tab" type="notebook">
b6a977ede002f585667208a8730b00835944e954JazzyNico <page name="Options" _gui-text="Options">
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="simplify-colors" type="boolean" _gui-text="Shorten color values">true</param>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="style-to-xml" type="boolean" _gui-text="Convert CSS attributes to XML attributes">true</param>
b6a977ede002f585667208a8730b00835944e954JazzyNico <param name="group-collapsing" type="boolean" _gui-text="Group collapsing">true</param>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="create-groups" type="boolean" _gui-text="Create groups for similar attributes">true</param>
b6a977ede002f585667208a8730b00835944e954JazzyNico <param name="embed-rasters" type="boolean" _gui-text="Embed rasters">true</param>
b6a977ede002f585667208a8730b00835944e954JazzyNico <param name="keep-editor-data" type="boolean" _gui-text="Keep editor data">false</param>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="remove-metadata" type="boolean" _gui-text="Remove metadata">false</param>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="enable-comment-stripping" type="boolean" _gui-text="Remove comments">false</param>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="renderer-workaround" type="boolean" _gui-text="Work around renderer bugs">true</param>
88586058c92ee50b59ba15a0eda1abc2dc640d34JazzyNico <param name="enable-viewboxing" type="boolean" _gui-text="Enable viewboxing">false</param>
ec83cb14dc4c432bc6e42c821df73c10e5d15b9bJazzyNico <param name="strip-xml-prolog" type="boolean" _gui-text="Remove the xml declaration">false</param>
77dae8b0ae204855f29e1acb5105295dcacd710eKris <param name="set-precision" type="int" _gui-text="Number of significant digits for coords:">5</param>
77dae8b0ae204855f29e1acb5105295dcacd710eKris <param name="indent" type="enum" _gui-text="XML indentation (pretty-printing):">
b6a977ede002f585667208a8730b00835944e954JazzyNico <_item value="space">Space</_item>
b6a977ede002f585667208a8730b00835944e954JazzyNico <_item value="tab">Tab</_item>
b6a977ede002f585667208a8730b00835944e954JazzyNico <_item value="none">None</_item>
b6a977ede002f585667208a8730b00835944e954JazzyNico </param>
b6a977ede002f585667208a8730b00835944e954JazzyNico </page>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <page name="Ids" _gui-text="Ids">
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="enable-id-stripping" type="boolean" _gui-text="Remove unused ID names for elements">false</param>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="shorten-ids" type="boolean" _gui-text="Shorten IDs">false</param>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="protect-ids-noninkscape" type="boolean" _gui-text="Preserve manually created ID names not ending with digits">false</param>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="protect-ids-list" type="string" _gui-text="Preserve these ID names, comma-separated:"></param>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <param name="protect-ids-prefix" type="string" _gui-text="Preserve ID names starting with:"></param>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico </page>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <page name="OptionHelp" _gui-text="Help (Options)">
22cf5eb6bd4cb3c7376269c819b333761a41ebe9JazzyNico <_param name="instructions" type="description" xml:space="preserve">This extension optimizes the SVG file according to the following options:
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * Shorten color names: convert all colors to #RRGGBB or #RGB format.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * Convert CSS attributes to XML attributes: convert styles from &lt;style&gt; tags and inline style="" declarations into XML attributes.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * Group collapsing: removes useless &lt;g&gt; elements, promoting their contents up one level. Requires "Remove unused ID names for elements" to be set.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * Create groups for similar attributes: create &lt;g&gt; elements for runs of elements having at least one attribute in common (e.g. fill color, stroke opacity, ...).
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * Embed rasters: embed raster images as base64-encoded data URLs.
b6a977ede002f585667208a8730b00835944e954JazzyNico * Keep editor data: don't remove Inkscape, Sodipodi or Adobe Illustrator elements and attributes.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * Remove metadata: remove &lt;metadata&gt; tags along with all the information in them, which may include license metadata, alternate versions for non-SVG-enabled browsers, etc.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * Remove comments: remove &lt;!-- --&gt; tags.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * 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.
22cf5eb6bd4cb3c7376269c819b333761a41ebe9JazzyNico * Enable viewboxing: size image to 100%/100% and introduce a viewBox.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * 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.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * 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>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico </page>
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <page name="IdHelp" _gui-text="Help (Ids)">
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico <_param name="instructions" type="description" xml:space="preserve">Ids specific options:
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * Remove unused ID names for elements: remove all unreferenced ID attributes.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * 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.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * 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.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * 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.
2843dd8f06ff576409c19fe85c8fcacd7181baebJazzyNico * 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>
b6a977ede002f585667208a8730b00835944e954JazzyNico </page>
b6a977ede002f585667208a8730b00835944e954JazzyNico </param>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller <output>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller <extension>.svg</extension>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller <mimetype>image/svg+xml</mimetype>
1298782991860e0fa520aac3222e0da0fd299a29helix <_filetypename>Optimized SVG (*.svg)</_filetypename>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller <_filetypetooltip>Scalable Vector Graphics</_filetypetooltip>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller </output>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller <script>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller <command reldir="extensions" interpreter="python">scour.inkscape.py</command>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller </script>
29ed3ddde7ac0c63786946b42e478f24554085d5jeff_schiller</inkscape-extension>