Commit graph

66 commits

Author SHA1 Message Date
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
c00bc8b70c Fix bug when DOCTYPE is present. Big performance improvement to makeWellFormed() function 2010-02-05 16:28:13 -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
20fe836041 Fix Bug 436569: Get xlink:href prefix right in case of duplicate gradient 2009-09-27 19:53:34 -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
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
2342830671 Ensure depth-first analysis of common attributes so they bubble up to the top 2009-08-12 14:18:08 -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
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
61a7265ecf Add unit tests to reduce to shorthand curve path segments. Updated test script 2009-08-05 17:05:27 -05:00
JSCHILL1
94a1e28a57 Added inkscape extension files 2009-08-04 14:39:04 -05:00
JSCHILL1
a93c626ab6 Add XML prolog to all unittests 2009-08-03 19:23:57 -05:00
JSCHILL1
c9ecfc05a7 Remove redundant SVG namespace declarations and prefixes 2009-08-03 17:44:40 -05:00
JSCHILL1
6fce13b84f Scour length values for most attributes. Fix removal of duplicate gradients again. Two more unittests 2009-08-03 12:23:41 -05:00
JSCHILL1
3371177b80 Add polyline unittest 2009-08-03 09:21:37 -05:00
JSCHILL1
46f86a0978 Prevent scour from trying to remove a duplicate gradient more than once 2009-08-01 11:59:54 -05:00
JSCHILL1
b119af0499 Added unittest for not converting short color names 2009-08-01 10:53:17 -05:00
Jeff Schiller
9ade298cd6 Also cover quoted forms of url(#grad) for removing duplicate gradients 2009-08-01 10:48:55 -05:00
JSCHILL1
9bec4cc4d0 Only convert color names to #RRGGBB if it will actually be shorter 2009-08-01 07:23:24 -05:00
JSCHILL1
b28ae6ec8d Remove trailing zeros from path coordinates. Use scientific notation in path coords if shorter. Scour polygon coordinates just like path coordinates. Added tests 2009-07-29 12:27:51 -05:00
JSCHILL1
f1f0aab965 Add closepath test 2009-07-05 08:14:40 -05:00
JSCHILL1
e163fb348c Implemented converted straight curves into lines. Remove last point from polygon data if possible 2009-05-21 21:32:44 -05:00
JSCHILL1
56cc8fd15a Collapse consecutive h,v segments/coords where possible 2009-05-19 21:30:50 -05:00
JSCHILL1
49b35bf6d1 Remove text styles from shapes. Remove --inkscape styles. Fix path handling for multiple coords in first Move command. Add --set-precision N argument 2009-05-19 10:02:47 -05:00
JSCHILL1
9375bd69a9 Fixed scour to handle entities in url references 2009-05-17 23:07:22 -05:00
JSCHILL1
a7d2593a58 Added code to convert colors to #RRGGBB format 2009-05-17 14:34:08 -05:00
JSCHILL1
823c8c45e3 Added unit tests for color conversion 2009-05-17 09:27:33 -05:00
JSCHILL1
d242407701 Handle unicode characters. Specify utf-8 encoding on python scripts. Added unit test for non-ASCII characters. 2009-04-28 08:57:40 -05:00
JSCHILL1
321f16c46d Handle stop offsets in percentages. Convert stop offsets into floating point (or integer if possible) 2009-04-27 19:19:05 -05:00
JSCHILL1
3dfb1f8068 Version 0.10 not complete! Remove empty path segments. Convert lines to H/V where possible. Remove some default styles. 2009-04-27 18:20:16 -05:00
JSCHILL1
784b8efb2b Add path data bytes saved to report. Added input filename to report. Removed last of the useless files in fulltests. 2009-04-27 11:43:11 -05:00
JSCHILL1
29fdd5ba66 Use decimals for path data and limit to 6 digits of precision 2009-04-27 11:19:34 -05:00
JSCHILL1
ec4e7b3594 Unit test for abs-to-rel path data conversion. 2009-04-27 10:03:39 -05:00
JSCHILL1
90e3ce1a02 Fix path parsing for all path subcommand types. Remove unnecessary whitespace. 2009-04-27 00:04:51 -05:00
JSCHILL1
d6d4d3d027 Unit tests for removing trailing zeroes and removing whitespace/commas before negative coords in path data 2009-04-26 20:38:22 -05:00
JSCHILL1
5d7e3a075c Add SVG Path parser from enthought. Added reserialization of path. 2009-04-26 16:37:57 -05:00
JSCHILL1
9f38caabaa Removal of stroke:none. Prevent groups from being collapsed if title/desc present. Add option to prevent groups from being collapsed. Unit tests. Started release notes HTML. 2009-04-25 02:09:08 -05:00
JSCHILL1
8e9683f648 Remove gradients singly referenced from another gradient 2009-04-24 17:01:43 -05:00
JSCHILL1
f6f98580c7 Begin unittesting converting style properties into XML attributes 2009-04-24 14:00:38 -05:00
JSCHILL1
0f1d0b104d Add unit tests for removing fill attributes when fill=none 2009-04-24 09:42:23 -05:00