Cynthia Gauthier
c3982e28df
Add unit tests for requiring a <g> in a <switch> if the original file has one.
2010-06-16 03:49:46 -04:00
Cynthia Gauthier
bb1a38a7ad
(Partial?) fix for bug 594930: In a <switch>, require one level of <g> if there was a <g> in the file already. Otherwise, only the first subelement of the <g> is chosen and rendered.
2010-06-16 02:29:01 -04:00
Cynthia Gauthier
26d90a7529
Fix a bug whereby a polyline's last segment could be removed from an SVG document if it was closing the polyline into a polygon.
2010-06-15 22:20:03 -04:00
Cynthia Gauthier
2d28a5991d
Fix bug 576958 "Viewbox option doesn't work when units are set", when renderer workarounds are disabled.
2010-06-15 22:18:11 -04:00
Cynthia Gauthier
f2285145d6
Quick fix for url() replacement in shortenIds: it should be url("#xyz") getting replaced, not url(#"xyz").
2010-06-15 21:55:38 -04:00
Cynthia Gauthier
fdabe02701
Update push.sh with the new branch location for the trunk. Update package.sh, adding the newly-required file svg_transform.py.
2010-06-15 21:40:08 -04:00
Cynthia Gauthier
f4cca44faf
Merge branch lp:~louis-simard/scour/rework. Summary of changes:
...
scour.py, scour.inkscape.py, scour.inx:
* Add options --quiet, --enable-comment-stripping, --shorten-ids, --remove-metadata, --renderer-workaround.
scour.py:
* Optimisations in time (so Scour runs faster) and space (so Scour allocates less memory, less often).
* Change #E+# to #e#, #E-# to #e-#, 0.# to .# and -0.# into -.# in path/polygon/polyline data + lengths, if renderer workarounds are disabled. Use spaces instead of commas in path/polygon/polyline data. Use lower-case #rrggbb and #rgb instead of upper-case. All of this makes gzip work better, since the rest of SVG documents mostly has lower-case letters in tag names and spaces to separate XML attributes etc.
* Fix a bug whereby an SVG document would become filled with black if all elements had the same fill color.
* Fix a bug whereby a path's second command would not start at the right coordinates if the first command was a relative moveto 'm' with at least 1 implied lineto.
* Fix a bug whereby a path's absolute lineto 'L' commands would not become the right relative lineto 'l' commands.
* Allow the implicit linetos after a path's moveto 'M'/'m' to be converted into relative horizontal linetos 'h' and vertical 'v' too.
scour.inx:
* Fix help typos. Make options more descriptive in the plugin option window. Add something about enable-group-collapsing requiring enable-id-stripping.
testscour.py:
* Rework tests that relied on #E+#, #E-#, 0.# and -0.# so that they accept the changes to scour.py. Add unit tests for strip-xml-prolog, enable-comment-stripping and remove-metadata.
2010-06-15 20:58:57 -04:00
schiller
00804fb833
Remove escaped angle-brackets from inx file
2010-05-12 15:58:52 -05:00
schiller
27b9683279
Update release notes
2010-05-09 15:48:57 -05:00
schiller
5ad1ba6e8a
Fix Issue 562784
2010-05-09 15:36:01 -05:00
schiller
40aa6cd54a
Fix Bug 577940
2010-05-09 15:32:21 -05:00
JSCHILL1
5e97247f98
Add logos and statistics spreadsheet
2010-04-25 21:58:03 -05:00
JSCHILL1
9042bbae31
Fix Bug 519698: Do not collapse move commands together because they may have line segments
2010-03-27 11:41:19 -05:00
JSCHILL1
05e73f11c3
Fix Bug 541889: Properly parse polygon/polyline points missing whitespace/comma for negative attributes
2010-03-25 17:48:15 -07:00
JSCHILL1
fd82967bbc
Add a couple minor tests for the CSS parser
2010-02-07 08:49:38 -06:00
JSCHILL1
7957dcd7c4
Add test script for yocto_css and call it from testscour.py
2010-02-07 08:45:57 -06:00
JSCHILL1
34b06e310a
Add test script for yocto_css and call it from testscour.py
2010-02-07 08:44:49 -06:00
JSCHILL1
2275c46569
Final scour 0.24
2010-02-05 16:28:24 -06:00
JSCHILL1
c00bc8b70c
Fix bug when DOCTYPE is present. Big performance improvement to makeWellFormed() function
2010-02-05 16:28:13 -06:00
JSCHILL1
c835423e8f
Fix Bug 511186: Preserve comments surround <svg> root node
2010-02-04 19:31:54 -06:00
JSCHILL1
6147bb2085
Fix Bug 517064: Make XML well-formed again by properly translating the 5 XML entities
2010-02-04 09:30:22 -06:00
JSCHILL1
6230682a01
Fix Bug 503750: Update inkscape extension to include new --enable-viewboxing option
2010-01-08 22:24:08 -06:00
JSCHILL1
ed1c522caf
Fix Bug 503034 by only removing children of a group in a defs if the group itself is not referenced anywhere else in the file
2010-01-04 12:55:23 -06:00
JSCHILL1
22fd47ab23
Added --enable-viewboxing option and stop setting width/height to 100% by default
2009-12-31 13:59:54 -06:00
JSCHILL1
8caa66edf9
Update unittest harness script so that things pass in Windows
2009-11-13 12:59:06 -06:00
JSCHILL1
4198961174
Attempt to handle line endings in a cross-platform manner
2009-11-13 10:44:18 -06:00
JSCHILL1
de6c2eb924
Update release notes, add some misc unit tests I missed
2009-11-09 21:59:32 -06:00
JSCHILL1
7e8d777639
Fix Issue 479669: Handle empty styl elements
2009-11-09 21:27:26 -06:00
JSCHILL1
99dfb0f819
Fix whitespace collapsing when it shouldn't on non-textual elements that have xml:space=preserve
2009-11-06 17:21:57 -06:00
JSCHILL1
6482314390
Bug 453737: Update Inkscape extension to provide a GUI for the options
2009-10-19 12:47:50 -05:00
JSCHILL1
4b96613a5d
Merge patch from Bug 449803 so that input and output filenames must be different
2009-10-15 13:48:29 -05:00
JSCHILL1
20fe836041
Fix Bug 436569: Get xlink:href prefix right in case of duplicate gradient
2009-09-27 19:53:34 -05:00
JSCHILL1
7e483ce92f
Another fix for xml:space=preserve
2009-09-24 18:14:30 -05:00
JSCHILL1
e0aacf646d
Fix XML serialization when xml:space=preserve
2009-09-24 10:37:09 -05:00
JSCHILL1
7652fbc76c
Fix removal of common attributes if parent has non-whitespace text nodes
2009-09-24 09:54:56 -05:00
JSCHILL1
473e18500a
Fix Bug 427309: Add yocto_css.py to scour.inx (Inkscape extension)
2009-09-10 07:29:00 -05:00
JSCHILL1
7fcc125286
Fix bug with polygon point parsing. Fix bug 368716: tiny CSS parser to find referenced elements in style element
2009-08-31 00:11:34 -05:00
JSCHILL1
d9e3e2436b
Remove unused attributes from parent elements
2009-08-13 08:18:49 -05:00
JSCHILL1
cf5fb8a37d
Fix Bug 412754: Elliptical arc commands must have comma or whitespace separating
2009-08-12 23:41:09 -05:00
JSCHILL1
d519dae9db
Ignore set/animate elements when finding common attributes
2009-08-12 14:33:12 -05:00
JSCHILL1
2342830671
Ensure depth-first analysis of common attributes so they bubble up to the top
2009-08-12 14:18:08 -05:00
JSCHILL1
b0788ba18a
Get all elements of tag name from the default namespace now
2009-08-12 10:17:03 -05:00
JSCHILL1
0bf1e8942c
Fix bug in remapping of namespace prefixes (was not actually remapping child elements of replaced elements
2009-08-12 10:04:40 -05:00
JSCHILL1
d8b2497d91
Another unit test for namespace declaration
2009-08-12 09:51:18 -05:00
JSCHILL1
d4747e2bd7
Fix prefixing namespace prefix declarations when not using the default namespace (XML serialization bug)
2009-08-12 09:49:22 -05:00
JSCHILL1
eb2a7a05ac
Final scour 0.18: more fixes to XML serialization (wellformedness), some unit tests, update to package script to use zip file and to package the inkscape extension
2009-08-09 22:25:20 -05:00
JSCHILL1
5f5c8a431d
Fix Bug 411062: typo of 'true'. Modify unit test to cover exercising the code. Update testscour.py for new indent_type option.
2009-08-09 15:04:50 -05:00
JSCHILL1
e17d3b8526
Added unit test for CDATA nodes
2009-08-05 22:53:51 -05:00
JSCHILL1
bac229dd14
Add hand-rolled XML serialization function to improve XML output. Added --indent option to choose indentation mechanism (space, tab, none)
2009-08-05 22:53:31 -05:00
JSCHILL1
04487ed1ec
Ensure all consecutive commands are collapsed where possible
2009-08-05 20:53:42 -05:00