139 lines
No EOL
4.4 KiB
HTML
139 lines
No EOL
4.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Scour Release Notes</title>
|
|
</head>
|
|
<body>
|
|
|
|
<h1><a href="http://codedread.com/scour/">Scour</a> Release Notes</h1>
|
|
|
|
<p>Copyright 2009, Jeff Schiller</p>
|
|
|
|
<section id="0.12">
|
|
<header>
|
|
<h2><a href="#0.12">Version 0.12</a></h2>
|
|
</header>
|
|
|
|
<ul>
|
|
<li>upgraded enthought's path parser to handle scientific notation in path coordinates</li>
|
|
<li>convert colors to #RGGBB format</li>
|
|
<li>added option to disable color conversion</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section id="0.11">
|
|
<header>
|
|
<h2><a href="#0.11">Version 0.11</a></h2>
|
|
</header>
|
|
|
|
<ul>
|
|
<li>convert gradient stop offsets from percentages to float</li>
|
|
<li>convert gradient stop offsets to integers if possible (0 or 1)</li>
|
|
<li>fix bug in line-to-hv conversion</li>
|
|
<li>handle non-ASCII characters (Unicode)</li>
|
|
<li>remove empty line or curve segments from path</li>
|
|
<li>added option to prevent style-to-xml conversion</li>
|
|
<li>handle compressed svg (svgz) on the input and output</li>
|
|
<li>added total time taken to the report</li>
|
|
<li>Removed XML pretty printing because of <a href="http://ronrothman.com/public/leftbraned/xml-dom-minidom-toprettyxml-and-silly-whitespace/">this problem</a>.</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section id="0.10">
|
|
<header>
|
|
<h2><a href="#0.10">Version 0.10</a></h2>
|
|
</header>
|
|
|
|
<ul>
|
|
<li>Remove path with empty d attributes</li>
|
|
<li>Sanitize path data (remove unnecessary whitespace)</li>
|
|
<li>Convert from absolute to relative path data</li>
|
|
<li>Remove trailing zeroes from path data</li>
|
|
<li>Limit to no more than 6 digits of precision</li>
|
|
<li>Remove empty line segments</li>
|
|
<li>Convert lines to horiz/vertical line segments where possible</li>
|
|
<li>Remove some more default styles (display:none, visibility:visible, overflow:visible,
|
|
marker:none)</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section id="0.09">
|
|
<header>
|
|
<h2><a href="#0.09">Version 0.09</a></h2>
|
|
</header>
|
|
|
|
<ul>
|
|
<li>Fix bug when removing stroke styles</li>
|
|
<li>Remove gradients that are only referenced by one other gradient</li>
|
|
<li>Added option to prevent group collapsing</li>
|
|
<li>Prevent groups with title/desc children from being collapsed</li>
|
|
<li>Remove stroke="none"</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section id="0.08">
|
|
<header>
|
|
<h2><a href="#0.08">Version 0.08</a></h2>
|
|
</header>
|
|
|
|
<ul>
|
|
<li>Remove unnecessary nested <g> elements</li>
|
|
<li>Remove duplicate gradient stops (same offset, stop-color, stop-opacity)</li>
|
|
<li>Always keep fonts inside <defs>, always keep ids on fonts</li>
|
|
<li>made ID stripping optional (disabled by default)</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section id="0.07">
|
|
<header>
|
|
<h2><a href="#0.07">Version 0.07</a></h2>
|
|
</header>
|
|
|
|
<ul>
|
|
<li>moved all functionality into a module level function named 'scour' and began adding unit tests</li>
|
|
<li>prevent metadata from being removed if they contain only text nodes</li>
|
|
<li>Remove unreferenced pattern and gradient elements outside of defs</li>
|
|
<li>Removal of extra whitespace, pretty printing of XML</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section id="0.06">
|
|
<header>
|
|
<h2><a href="#0.06">Version 0.06</a></h2>
|
|
</header>
|
|
|
|
<ul>
|
|
<li>Prevent error when stroke-width property value has a unit</li>
|
|
<li>Convert width/height into a viewBox where possible</li>
|
|
<li>Convert all referenced rasters into base64 encoded URLs if the files can be found</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section id="0.05">
|
|
<header>
|
|
<h2><a href="#0.05">Version 0.05 and earlier</a></h2>
|
|
</header>
|
|
|
|
<ul>
|
|
<li>Removes unreferenced elements in a <defs></li>
|
|
<li>Removes all inkscape, sodipodi, adobe elements</li>
|
|
<li>Removes all inkscape, sodipodi, adobe attributes</li>
|
|
<li>Remove all unused namespace declarations on the document element</li>
|
|
<li>Removes any empty <defs>, <metadata>, or <g> elements</li>
|
|
<li>Style fix-ups:
|
|
<ul><li>Fixes any style properties like this: <code>style="fill: url(#linearGradient1000) rgb(0, 0, 0);"</code></li>
|
|
<li>Removes any style property of: <code>opacity: 1;</code></li>
|
|
<li>Removes any stroke properties when stroke=none or stroke-opacity=0 or stroke-width=0</li>
|
|
<li>Removes any fill properties when fill=none or fill-opacity=0</li>
|
|
<li>Removes all fill/stroke properties when opacity=0</li>
|
|
<li>Removes any <code>stop-opacity: 1</code></li>
|
|
<li>Removes any <code>fill-opacity: 1</code></li>
|
|
<li>Removes any <code>stroke-opacity: 1</code></li>
|
|
</ul></li>
|
|
<li>Convert style properties into SVG attributes</li>
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
</body>
|
|
</html> |