~louis-simard-deactivatedaccount/scour/rework

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<!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 2010, Jeff Schiller</p>

<section id="0.25">
	<header>
		<h2><a href="#0.25">Version 0.25</a></h2>
	</header>
	<p>2010-05-09</p>
	<ul>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/541889">Bug 541889</a> to parse polygon/polyline points missing whitespace/comma separating a negative value.  Always output points attributes as comma-separated.</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/519698">Bug 519698</a> to properly parse move commands that have line segments.</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/577940">Bug 577940</a> to include stroke-dasharray into list of style properties turned into XML attributes.</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/562784">Bug 562784</a>, typo in Inkscape description</li>
	</ul>
</section>

<section id="0.24">
	<header>
		<h2><a href="#0.24">Version 0.24</a></h2>
	</header>
	<p>2010-02-05</p>
	<ul>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/517064">Bug 517064</a> to make XML well-formed again</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/503750">Bug 503750</a> fix Inkscape extension to correctly pass --enable-viewboxing</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/511186">Bug 511186</a> to allow comments outside of the root &lt;svg&gt; node</li>
	</ul>
</section>

<section id="0.23">
	<header>
		<h2><a href="#0.23">Version 0.23</a></h2>
	</header>
	<p>2010-01-04</p>
	<ul>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/482215">Bug 482215</a> by using os.linesep to end lines</li>
		<li>Fix unittests to run properly in Windows</li>
		<li>Removed default scaling of image to 100%/100% and creating a viewBox.  Added --enable-viewboxing option to explicitly turn that on</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/503034">Bug 503034</a> by only removing children of a group if the group itself has not been referenced anywhere else in the file</li>
	</ul>
</section>

<section id="0.22">
	<header>
		<h2><a href="#0.22">Version 0.22</a></h2>
	</header>
	<p>Nov 9th, 2009</p>
	<ul>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/449803">Bug 449803</a> by ensuring input and output filenames differ.</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/453737">Bug 453737</a> by updated Inkscape's scour extension with a UI</li>
		<li>Fix whitespace collapsing on non-textual elements that had xml:space="preserve"</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/479669">Bug 479669</a> to handle empty &lt;style&gt; elements.</li>
	</ul>
</section>

<section id="0.21">
	<header>
		<h2><a href="#0.21">Version 0.21</a></h2>
	</header>
	<p>Sep 27th, 2009</p>
	<ul>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/427309">Bug 427309</a> by updated Scour inkscape extension file to include yocto_css.py</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/435689">Bug 435689</a> by properly preserving whitespace in XML serialization</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/436569">Bug 436569</a> by getting xlink:href prefix correct with invalid SVG</li>
	</ul>
</section>

<section id="0.20">
	<header>
		<h2><a href="#0.20">Version 0.20</a></h2>
	</header>
	<p>Aug 31st, 2009</p>
	<ul>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/368716">Bug 368716</a> by implementing a really tiny CSS parser to find out if any style element have rules referencing gradients, filters, etc</li>
		<li>Remove unused attributes from parent elements</li>
		<li>Fix a bug with polygon/polyline point parsing if there was whitespace at the end</li>
	</ul>
</section>

<section id="0.19">
	<header>
		<h2><a href="#0.19">Version 0.19</a></h2>
	</header>
	<p>Aug 13th, 2009</p>
	<ul>
		<li>Fix XML serialization bug: xmlns:XXX prefixes not preserved when not in default namespace</li>
		<li>Fix XML serialization bug: remapping to default namespace was not actually removing the old prefix</li>
		<li>Move common attributes to ancestor elements</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/401628">Bug 412754</a>: Elliptical arc commands must have comma/whitespace separating the coordinates</li>
		<li>Scour lengths for svg x,y,width,height,*opacity,stroke-width,stroke-miterlimit</li>
	</ul>
</section>

<section id="0.18">
	<header>
		<h2><a href="#0.18">Version 0.18</a></h2>
	</header>
	<p>Aug 9th, 2009</p>
	<ul>
		<li>Remove attributes of gradients if they contain default values</li>
		<li>Reduce bezier/quadratic (c/q) segments to their shorthand equivalents (s/t)</li>
		<li>Move to a custom XML serialization such that id/xml:id is printed first (Thanks to Richard Hutch for the suggestion)</li>
		<li>Added --indent option to specify indentation type (default='space', other options: 'none', 'tab')</li>
	</ul>
</section>

<section id="0.17">
	<header>
		<h2><a href="#0.17">Version 0.17</a></h2>
	</header>
	<p>Aug 3rd, 2009</p>
	<ul>
		<li>Only convert to #RRGGBB format if the color name will actually be shorter</li>
		<li>Remove duplicate gradients</li>
		<li>Remove empty q,a path segments</li>
		<li>Scour polyline coordinates just like path/polygon</li>
		<li>Scour lengths from most attributes</li>
		<li>Remove redundant SVG namespace declarations and prefixes</li>
	</ul>
</section>

<section id="0.16">
	<header>
		<h2><a href="#0.16">Version 0.16</a></h2>
	</header>
	<p>July 30th, 2009</p>
	<ul>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/401628">Bug 401628</a>: Keep namespace declarations when using --keep-editor-data (Thanks YoNoSoyTu!)</li>
		<li>Remove trailing zeros after decimal places for all path coordinates</li>
		<li>Use scientific notation in path coordinates if that representation is shorter</li>
		<li>Scour polygon coordinates just like path coordinates</li>
		<li>Add XML prolog to scour output to ensure valid XML, added --strip-xml-prolog option</li>
	</ul>
</section>

<section id="0.15">
	<header>
		<h2><a href="#0.15">Version 0.15</a></h2>
	</header>
	<p>July 5th, 2009</p>
	<ul>
		<li>added --keep-editor-data command-line option</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/395645">Bug 395645</a>: Keep all identified children inside a defs (Thanks Frederik!)</li>
		<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/395647">Bug 395647</a>: Do not remove closepath (Z) path segments</li>
	</ul>
</section>

<section id="0.14">
	<header>
		<h2><a href="#0.14">Version 0.14</a></h2>
	</header>
	<p>June 10th, 2009</p>
	<ul>
		<li>Collapse adjacent commands of the same type</li>
		<li>Convert straight curves into line commands</li>
		<li>Eliminate last segment in a polygon</li>
		<li>Rework command-line argument parsing</li>
		<li>Fix bug in embedRasters() caused by new command-line parsing</li>
		<li>added --disable-embed-rasters command-line option</li>
	</ul>
</section>

<section id="0.13">
	<header>
		<h2><a href="#0.13">Version 0.13</a></h2>
	</header>
	<p>May 19th, 2009</p>
	<ul>
		<li>properly deal with fill="url(&amp;quot;#foo&amp;quot;)"</li>
		<li>properly handle paths with more than 1 pair of coordinates in the first Move command</li>
		<li>remove font/text styles from shape elements (font-weight, font-size, line-height, etc)</li>
		<li>remove -inkscape-font-specification styles</li>
		<li>added --set-precision argument to set the number of significant digits (defaults to 5 now)</li>
		<li>collapse consecutive h,v coords/segments that go in the same direction</li>
	</ul>
</section>

<section id="0.12">
	<header>
		<h2><a href="#0.12">Version 0.12</a></h2>
	</header>
	<p>May 17th, 2009</p>
	<ul>
		<li>upgraded enthought's path parser to handle scientific notation in path coordinates</li>
		<li>convert colors to #RRGGBB 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>
	<p>April 28th, 2009</p>
	<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>
	<p>April 27th, 2009</p>
	<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>
	<p>April 25th, 2009</p>
	<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>
	<p>April 22nd, 2009</p>
	<ul>
		<li>Remove unnecessary nested &lt;g&gt; elements</li>
		<li>Remove duplicate gradient stops (same offset, stop-color, stop-opacity)</li>
		<li>Always keep fonts inside &lt;defs&gt;, 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>
	<p>April 15th, 2009</p>
	<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>
	<p>April 13th, 2009</p>
	<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>
	<p>April 7th, 2009</p>
	<ul>
		<li>Removes unreferenced elements in a &lt;defs&gt;</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 &lt;defs&gt;, &lt;metadata&gt;, or &lt;g&gt; 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>