Commit graph

  • 4198961174 Attempt to handle line endings in a cross-platform manner JSCHILL1 2009-11-13 10:44:18 -06:00
  • de6c2eb924 Update release notes, add some misc unit tests I missed JSCHILL1 2009-11-09 21:59:32 -06:00
  • 7e8d777639 Fix Issue 479669: Handle empty styl elements JSCHILL1 2009-11-09 21:27:26 -06:00
  • 99dfb0f819 Fix whitespace collapsing when it shouldn't on non-textual elements that have xml:space=preserve JSCHILL1 2009-11-06 17:21:57 -06:00
  • 6482314390 Bug 453737: Update Inkscape extension to provide a GUI for the options JSCHILL1 2009-10-19 12:47:50 -05:00
  • 4b96613a5d Merge patch from Bug 449803 so that input and output filenames must be different JSCHILL1 2009-10-15 13:48:29 -05:00
  • 20fe836041 Fix Bug 436569: Get xlink:href prefix right in case of duplicate gradient JSCHILL1 2009-09-27 19:53:34 -05:00
  • 7e483ce92f Another fix for xml:space=preserve JSCHILL1 2009-09-24 18:14:30 -05:00
  • e0aacf646d Fix XML serialization when xml:space=preserve JSCHILL1 2009-09-24 10:37:09 -05:00
  • 7652fbc76c Fix removal of common attributes if parent has non-whitespace text nodes JSCHILL1 2009-09-24 09:54:56 -05:00
  • 473e18500a Fix Bug 427309: Add yocto_css.py to scour.inx (Inkscape extension) JSCHILL1 2009-09-10 07:29:00 -05:00
  • 7fcc125286 Fix bug with polygon point parsing. Fix bug 368716: tiny CSS parser to find referenced elements in style element JSCHILL1 2009-08-31 00:11:34 -05:00
  • d9e3e2436b Remove unused attributes from parent elements JSCHILL1 2009-08-13 08:18:49 -05:00
  • cf5fb8a37d Fix Bug 412754: Elliptical arc commands must have comma or whitespace separating JSCHILL1 2009-08-12 23:41:09 -05:00
  • d519dae9db Ignore set/animate elements when finding common attributes JSCHILL1 2009-08-12 14:33:12 -05:00
  • 2342830671 Ensure depth-first analysis of common attributes so they bubble up to the top JSCHILL1 2009-08-12 14:18:08 -05:00
  • b0788ba18a Get all elements of tag name from the default namespace now JSCHILL1 2009-08-12 10:17:03 -05:00
  • 0bf1e8942c Fix bug in remapping of namespace prefixes (was not actually remapping child elements of replaced elements JSCHILL1 2009-08-12 10:04:40 -05:00
  • d8b2497d91 Another unit test for namespace declaration JSCHILL1 2009-08-12 09:51:18 -05:00
  • d4747e2bd7 Fix prefixing namespace prefix declarations when not using the default namespace (XML serialization bug) JSCHILL1 2009-08-12 09:49:22 -05:00
  • 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 JSCHILL1 2009-08-09 22:25:20 -05:00
  • 5f5c8a431d Fix Bug 411062: typo of 'true'. Modify unit test to cover exercising the code. Update testscour.py for new indent_type option. JSCHILL1 2009-08-09 15:04:50 -05:00
  • e17d3b8526 Added unit test for CDATA nodes JSCHILL1 2009-08-05 22:53:51 -05:00
  • bac229dd14 Add hand-rolled XML serialization function to improve XML output. Added --indent option to choose indentation mechanism (space, tab, none) JSCHILL1 2009-08-05 22:53:31 -05:00
  • 04487ed1ec Ensure all consecutive commands are collapsed where possible JSCHILL1 2009-08-05 20:53:42 -05:00
  • 9f47a59a30 Update scour to change curve segments into shorthand curves where possible JSCHILL1 2009-08-05 17:48:04 -05:00
  • 61a7265ecf Add unit tests to reduce to shorthand curve path segments. Updated test script JSCHILL1 2009-08-05 17:05:27 -05:00
  • 94a1e28a57 Added inkscape extension files JSCHILL1 2009-08-04 14:39:04 -05:00
  • 96d9edad78 Up the rev num on scour script JSCHILL1 2009-08-03 19:24:34 -05:00
  • a93c626ab6 Add XML prolog to all unittests JSCHILL1 2009-08-03 19:23:57 -05:00
  • c9ecfc05a7 Remove redundant SVG namespace declarations and prefixes JSCHILL1 2009-08-03 17:44:40 -05:00
  • 6fce13b84f Scour length values for most attributes. Fix removal of duplicate gradients again. Two more unittests JSCHILL1 2009-08-03 12:23:41 -05:00
  • 3371177b80 Add polyline unittest JSCHILL1 2009-08-03 09:21:37 -05:00
  • a1d9afb12f Remove all empty path segments. Scour polyline coordinates JSCHILL1 2009-08-03 08:50:48 -05:00
  • 46f86a0978 Prevent scour from trying to remove a duplicate gradient more than once JSCHILL1 2009-08-01 11:59:54 -05:00
  • b119af0499 Added unittest for not converting short color names JSCHILL1 2009-08-01 10:53:17 -05:00
  • 9ade298cd6 Also cover quoted forms of url(#grad) for removing duplicate gradients Jeff Schiller 2009-08-01 10:48:55 -05:00
  • 37cfec8098 Remove duplicate gradients Jeff Schiller 2009-08-01 10:43:25 -05:00
  • 9bec4cc4d0 Only convert color names to #RRGGBB if it will actually be shorter JSCHILL1 2009-08-01 07:23:24 -05:00
  • b16629795e Final Scour 0.16 check-in JSCHILL1 2009-07-30 00:12:59 -05:00
  • 908e8ee401 Added several new fulltests JSCHILL1 2009-07-30 00:04:23 -05:00
  • 7e7ac31540 Fixes for polygon coord processing. Add --strip-xml-prolog option JSCHILL1 2009-07-29 13:42:04 -05:00
  • b28ae6ec8d Remove trailing zeros from path coordinates. Use scientific notation in path coords if shorter. Scour polygon coordinates just like path coordinates. Added tests JSCHILL1 2009-07-29 12:27:51 -05:00
  • 8f50f0d509 Fix Bug 405744: Keep namespace declarations when --keep-editor-data. Add tests. JSCHILL1 2009-07-28 08:33:30 -05:00
  • 4ee372f561 Add keep_editor_data to scra.py JSCHILL1 2009-07-16 00:15:40 -05:00
  • 759924fe72 Make report into a separate function in scour. Remove getReport call from scra.py JSCHILL1 2009-07-11 07:57:14 -05:00
  • 9dd7f08231 Update scra.py for embed rasters, styled form JSCHILL1 2009-07-10 22:11:13 -05:00
  • f1f0aab965 Add closepath test JSCHILL1 2009-07-05 08:14:40 -05:00
  • 06f008a908 Tentative fix for Bug 395647, closepath path segments are preserved JSCHILL1 2009-07-05 00:46:06 -05:00
  • 6e68896d1f Fix for Bug 395645, patch sent by Frederik Elwert JSCHILL1 2009-07-05 00:42:51 -05:00
  • e9f1e07a02 Update for 0.15: --keep-editor-data command-line option to keep Adobe, Inkscape, Sodipodi elements and attributes JSCHILL1 2009-06-24 10:00:49 -05:00
  • 8e589a80b4 Final 0.14: --disable-embed-rasters and fix embedding raster bug caused by restructuring of command-line option parser JSCHILL1 2009-06-10 13:56:10 -05:00
  • a4dbc37ba9 Only process points if there is an even number. Update web-based scour script to process options and rename to scra.py JSCHILL1 2009-06-05 09:21:23 -05:00
  • b9a9020feb Add Martin's patch for rewrite of command-line option parsing. Add CGI and mod_python versions of a web interface. JSCHILL1 2009-05-22 09:04:40 -05:00
  • e163fb348c Implemented converted straight curves into lines. Remove last point from polygon data if possible JSCHILL1 2009-05-21 21:32:44 -05:00
  • 78eb4e5e82 Fix bug with consecutive coords in path commands JSCHILL1 2009-05-20 20:49:27 -05:00
  • 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. Martin 2009-05-20 19:22:57 +01:00
  • 4bbb5923b3 Started 0.14 JSCHILL1 2009-05-19 22:10:57 -05:00
  • ec3e857c53 Change default precision to 5 digits, updated release notes and statistics JSCHILL1 2009-05-19 22:05:03 -05:00
  • 56cc8fd15a Collapse consecutive h,v segments/coords where possible JSCHILL1 2009-05-19 21:30:50 -05:00
  • 49b35bf6d1 Remove text styles from shapes. Remove --inkscape styles. Fix path handling for multiple coords in first Move command. Add --set-precision N argument JSCHILL1 2009-05-19 10:02:47 -05:00
  • dcb6ed414c Merge in Martin's bundle on better string handling and some other ideas JSCHILL1 2009-05-18 22:23:59 -05:00
  • 92fc7ec6aa Remove use of string module, and other minor pokes, no changes to functionality. Martin 2009-05-19 01:44:38 +01:00
  • 9375bd69a9 Fixed scour to handle entities in url references JSCHILL1 2009-05-17 23:07:22 -05:00
  • a03439573e Remove TODOs accomplished in 0.12 JSCHILL1 2009-05-17 14:40:29 -05:00
  • a7d2593a58 Added code to convert colors to #RRGGBB format JSCHILL1 2009-05-17 14:34:08 -05:00
  • 823c8c45e3 Added unit tests for color conversion JSCHILL1 2009-05-17 09:27:33 -05:00
  • 56ebc67491 Finish 0.11. Checked in SVG version of the scour logo. JSCHILL1 2009-04-28 17:21:55 -05:00
  • 02602edde0 Remove XML pretty printing due to erroneous injection of whitespace on text nodes JSCHILL1 2009-04-28 13:18:29 -05:00
  • 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 JSCHILL1 2009-04-28 11:57:00 -05:00
  • d242407701 Handle unicode characters. Specify utf-8 encoding on python scripts. Added unit test for non-ASCII characters. JSCHILL1 2009-04-28 08:57:40 -05:00
  • 321f16c46d Handle stop offsets in percentages. Convert stop offsets into floating point (or integer if possible) JSCHILL1 2009-04-27 19:19:05 -05:00
  • efbdd3a027 Now version 0.10 complete JSCHILL1 2009-04-27 18:20:42 -05:00
  • 3dfb1f8068 Version 0.10 not complete! Remove empty path segments. Convert lines to H/V where possible. Remove some default styles. JSCHILL1 2009-04-27 18:20:16 -05:00
  • 19ed9e57a4 Updated release notes. Updated package script to tar file unrolls into a scour directory. Version 0.10 complete JSCHILL1 2009-04-27 12:00:51 -05:00
  • 784b8efb2b Add path data bytes saved to report. Added input filename to report. Removed last of the useless files in fulltests. JSCHILL1 2009-04-27 11:43:11 -05:00
  • 29fdd5ba66 Use decimals for path data and limit to 6 digits of precision JSCHILL1 2009-04-27 11:19:34 -05:00
  • ec4e7b3594 Unit test for abs-to-rel path data conversion. JSCHILL1 2009-04-27 10:03:39 -05:00
  • f196f82115 Convert absolute to relative path data. Remove path elements with empty d attribute JSCHILL1 2009-04-27 07:27:35 -05:00
  • 90e3ce1a02 Fix path parsing for all path subcommand types. Remove unnecessary whitespace. JSCHILL1 2009-04-27 00:04:51 -05:00
  • d6d4d3d027 Unit tests for removing trailing zeroes and removing whitespace/commas before negative coords in path data JSCHILL1 2009-04-26 20:38:22 -05:00
  • 5d7e3a075c Add SVG Path parser from enthought. Added reserialization of path. JSCHILL1 2009-04-26 16:37:57 -05:00
  • 8ba1dfaf47 Added some reminders. Fixed a typo. JSCHILL1 2009-04-25 16:44:42 -05:00
  • 446e5de77d Restore accidentally deleted README file JSCHILL1 2009-04-25 02:39:14 -05:00
  • 12ba6000ea Starting on version 0.10, minor comment cleanup JSCHILL1 2009-04-25 02:33:13 -05:00
  • 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. JSCHILL1 2009-04-25 02:09:08 -05:00
  • 8e9683f648 Remove gradients singly referenced from another gradient JSCHILL1 2009-04-24 17:01:43 -05:00
  • f6f98580c7 Begin unittesting converting style properties into XML attributes JSCHILL1 2009-04-24 14:00:38 -05:00
  • 0f1d0b104d Add unit tests for removing fill attributes when fill=none JSCHILL1 2009-04-24 09:42:23 -05:00
  • d9866c99e9 More unit tests for removing stroke properties (for stroke-width=0 or stroke=none) JSCHILL1 2009-04-23 08:12:46 -05:00
  • f4b328ea4b Another large, real-world SVG file in fulltests, plus a readme for that directory JSCHILL1 2009-04-22 22:38:50 -05:00
  • 64ee621aa6 A few more unit tests for removing stroke properties JSCHILL1 2009-04-22 22:32:19 -05:00
  • d09903fe39 Fix removal of stroke properties when stroke is transparent JSCHILL1 2009-04-22 22:26:40 -05:00
  • 26d6eea674 Start 0.09 JSCHILL1 2009-04-22 22:00:54 -05:00
  • 472688d12b Minor update to comments JSCHILL1 2009-04-19 22:37:36 -05:00
  • 28cc0d59fb Refactor command-line argument parsing. Only strip IDs if option is enabled. Added some unit tests for the new functionality JSCHILL1 2009-04-19 22:26:26 -05:00
  • 9f1a88ba3a Correct file size reporting (kb = bytes) JSCHILL1 2009-04-19 08:15:58 -05:00
  • 6d76766fc4 Always keep ids on <font> elements by default JSCHILL1 2009-04-19 08:12:42 -05:00
  • 3beab0744f Remove test for deleting unreferenced fonts JSCHILL1 2009-04-19 08:09:33 -05:00
  • 8d0bb8fe55 Prevent fonts from being removed inside a <defs> JSCHILL1 2009-04-19 08:08:37 -05:00