Commit graph

118 commits

Author SHA1 Message Date
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
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
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
JSCHILL1
9f47a59a30 Update scour to change curve segments into shorthand curves where possible 2009-08-05 17:48:04 -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
96d9edad78 Up the rev num on scour script 2009-08-03 19:24:34 -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
a1d9afb12f Remove all empty path segments. Scour polyline coordinates 2009-08-03 08:50:48 -05:00
JSCHILL1
46f86a0978 Prevent scour from trying to remove a duplicate gradient more than once 2009-08-01 11:59:54 -05:00
Jeff Schiller
9ade298cd6 Also cover quoted forms of url(#grad) for removing duplicate gradients 2009-08-01 10:48:55 -05:00
Jeff Schiller
37cfec8098 Remove duplicate gradients 2009-08-01 10:43:25 -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
b16629795e Final Scour 0.16 check-in 2009-07-30 00:12:59 -05:00
JSCHILL1
7e7ac31540 Fixes for polygon coord processing. Add --strip-xml-prolog option 2009-07-29 13:42:04 -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
8f50f0d509 Fix Bug 405744: Keep namespace declarations when --keep-editor-data. Add tests. 2009-07-28 08:33:30 -05:00
JSCHILL1
759924fe72 Make report into a separate function in scour. Remove getReport call from scra.py 2009-07-11 07:57:14 -05:00
JSCHILL1
06f008a908 Tentative fix for Bug 395647, closepath path segments are preserved 2009-07-05 00:46:06 -05:00
JSCHILL1
6e68896d1f Fix for Bug 395645, patch sent by Frederik Elwert 2009-07-05 00:42:51 -05:00
JSCHILL1
e9f1e07a02 Update for 0.15: --keep-editor-data command-line option to keep Adobe, Inkscape, Sodipodi elements and attributes 2009-06-24 10:00:49 -05:00
JSCHILL1
8e589a80b4 Final 0.14: --disable-embed-rasters and fix embedding raster bug caused by restructuring of command-line option parser 2009-06-10 13:56:10 -05:00
JSCHILL1
a4dbc37ba9 Only process points if there is an even number. Update web-based scour script to process options and rename to scra.py 2009-06-05 09:21:23 -05:00
JSCHILL1
b9a9020feb Add Martin's patch for rewrite of command-line option parsing. Add CGI and mod_python versions of a web interface. 2009-05-22 09:04: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
78eb4e5e82 Fix bug with consecutive coords in path commands 2009-05-20 20:49:27 -05:00
Martin
d8ffea56e5 Rewrite to use optparse for user interface, picking up a few minor bug fixes and improvements in the process, but trying to keep otherwise unchanged. 2009-05-20 19:22:57 +01:00
JSCHILL1
4bbb5923b3 Started 0.14 2009-05-19 22:10:57 -05:00
JSCHILL1
ec3e857c53 Change default precision to 5 digits, updated release notes and statistics 2009-05-19 22:05:03 -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
Martin
92fc7ec6aa Remove use of string module, and other minor pokes, no changes to functionality. 2009-05-19 01:44:38 +01:00
JSCHILL1
9375bd69a9 Fixed scour to handle entities in url references 2009-05-17 23:07:22 -05:00
JSCHILL1
a03439573e Remove TODOs accomplished in 0.12 2009-05-17 14:40:29 -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
56ebc67491 Finish 0.11. Checked in SVG version of the scour logo. 2009-04-28 17:21:55 -05:00
JSCHILL1
02602edde0 Remove XML pretty printing due to erroneous injection of whitespace on text nodes 2009-04-28 13:18:29 -05:00
JSCHILL1
f37fef89df Fix bug in line-to-hz conversion. Remove empty line/curve segments. Handle svgz files on input/output. Added option to prevent style-to-xml conversion 2009-04-28 11:57:00 -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