Commit graph

  • 55581d38b1 Remove external dependency on "six" Eduard Braun 2015-11-15 15:52:55 +01:00
  • a5b09e3824 add notice of repo move Tobias Oberstein 2015-10-17 17:29:47 +02:00
  • 03f099a26e Merge pull request #8 from levisaya/master Tobias Oberstein 2015-05-20 19:25:25 +02:00
  • d1c66cc75b Python 3 Updates Andy Levisay 2015-04-28 15:26:55 -05:00
  • 85dff51cc9 fix ingoring of additional args when invoked from scons; bump version v0.30 Tobias Oberstein 2014-08-05 12:47:33 +02:00
  • 26a360a00c add option to ingore unknown cmd line opts; bump version v0.29 Tobias Oberstein 2014-07-26 17:20:47 +02:00
  • 43ee078ee6 Merge pull request #3 from flosse/master Tobias Oberstein 2014-03-10 00:22:47 +01:00
  • e01fac82a4 Merge pull request #2 from flosse/keep-unreferenced-defs Tobias Oberstein 2014-03-10 00:22:27 +01:00
  • e7332f6704 Merge pull request #5 from mdxs/patch-1 Tobias Oberstein 2014-03-10 00:20:05 +01:00
  • f7165f66a9 Small typo fix in doc string of parseListOfPoints mdxs 2014-03-09 23:44:06 +01:00
  • 9bb929d91e added option to keep elements within defs Markus Kohlhase 2014-01-12 17:10:02 +01:00
  • edcaeba905 fixed version string Markus Kohlhase 2014-01-12 16:56:56 +01:00
  • 2c979f6d30 bump version v0.28 Tobias Oberstein 2014-01-12 00:11:56 +01:00
  • c27ca4db8a Merge pull request #1 from flosse/id-prefix Tobias Oberstein 2014-01-10 14:52:15 -08:00
  • ae4d9303f1 support custom id prefixes Markus Kohlhase 2014-01-10 23:42:02 +01:00
  • 3353500845 allow direct calling of module v0.27 Tobias Oberstein 2013-10-26 17:47:42 +02:00
  • 8dc6137373 whitespace cleanup Tobias Oberstein 2013-10-26 16:43:39 +02:00
  • 0e35c9d40f more README, publish v0.26 Tobias Oberstein 2013-10-22 18:25:37 +02:00
  • 6372b8a2a7 initial source import (v0.26) and packaging Tobias Oberstein 2013-10-22 16:31:42 +02:00
  • 39fb9eee02 Prepare history merge Eduard Braun 2015-12-06 17:23:15 +01:00
  • f89b6bbf6a initial source import (v0.26) and packaging Tobias Oberstein 2013-10-22 16:31:42 +02:00
  • f3a7507d82 Initial commit Tobias Oberstein 2013-10-22 07:02:57 -07:00
  • 0d31f60b06 Fix the Inkscape module being unable to work on SVG documents that contain embedded images. JazzyNico 2012-11-16 18:59:29 -05:00
  • 58ddeb855b Fix bug 833666, "scour does not clean comments if file starts with a comment", by correctly and efficiently iterating over the elements of a live sequence. Unit tests are updated. Louis Simard 2012-05-03 15:33:11 -04:00
  • 4b10b6d627 Fix nested defs problem and add unit test Jeff Schiller 2012-03-26 23:33:27 -07:00
  • ac6d4529bd Remove namespaced attributes. Fix DOM element tagName parsing. Update HTML so that each scoured file links persist. Jeff Schiller 2011-12-29 22:31:48 -08:00
  • fbcbedef37 Add a starter JavaScript version of Scour Jeff Schiller 2011-12-29 16:11:55 -08:00
  • 60b48353b3 Apply a modified patch by Hungerburg to fix bugs 833666, "scour does not clean comments if file starts with a comment", and bug 804238, whereby Scour fails to correctly parse a polygon/polyline if its first coordinate is negative. Hungerburg 2011-08-25 22:26:05 -04:00
  • f8c88f0dfa Add release notes for version 0.26. Louis Simard 2011-05-11 01:04:10 -04:00
  • 63690b7c6c CONTRIBUTORS: Fix erroneous contributor name. It's Johan Sundström who contributed the transform matrix patches, not Ubuntu's Jamie Strandboge! Louis Simard 2011-05-10 16:50:16 -04:00
  • 4ae90d75cd Woops, forgot to update the version in the script Jeff Schiller 2011-05-09 21:54:51 -07:00
  • b35b74f70d Finalize scour 0.26 Jeff Schiller 2011-05-09 21:47:09 -07:00
  • e4f9b00f9c Apply the patch by JazzyNico in bug 748639, "Interface for saving to Optimized SVG too large". Louis Simard 2011-04-21 16:02:34 -04:00
  • ce735105d9 Attempt to fix bug 747698, "protect_ids options missing in scour.inkscape.py". Louis Simard 2011-04-01 21:58:08 -04:00
  • 6c50c78d99 Fix Bug 734933: Do not remove empty path segments if stroke-linecap is round Jeff Schiller 2011-03-15 08:16:16 -07:00
  • cd42752cad Merge from lp:~ecmanaut/scour/transform. Optimise negative 3-digit rotation angles to the positive form, and angles over positive 270 to the negative form. Also cath more angles outside of the range [-360, 360]. Louis Simard 2011-03-14 16:56:56 -04:00
  • 5987a9a271 Rotate transforms now optimize angles, and have test coverage. Johan Sundström 2011-03-12 03:35:13 -08:00
  • 45bc6c0fac Merge fixes from lp:~scouring/scour/transform, some sourced from lp:~ecmanaut/scour/transform. Louis Simard 2011-03-12 03:56:15 -05:00
  • 08fc009cba Add a modulo 360 for coalesced rotate() transformation angles. This allows rotate(-300) rotate(-60) from the unit test to be correctly made into rotate(0). Louis Simard 2011-03-12 03:51:04 -05:00
  • 9e49151ebf Fix a TypeError generated by Math.asin(), which doesn't accept Decimal arguments. Louis Simard 2011-03-12 03:35:33 -05:00
  • 437dbf991c Fix bug 702423, "Scour corrupts icons with gradients when --disable-style-to-xml is used". Add 2 more full tests gathered from the bug reports, as well as 1 more unit test. Louis Simard 2011-03-12 03:22:03 -05:00
  • fcbb2b0332 Apply a patch submitted by Jan Thor for the feature described in bug 492277, "Remove only auto generated id's". Louis Simard 2011-02-21 23:05:52 -05:00
  • ba3371e282 scour.py: Modify optimizeTransform to remove superfluous []s and ()s. Louis Simard 2011-02-21 20:51:35 -05:00
  • 338e56f1b1 A trig. improvement TODO I left by the wayside; Decimal seems very unhelpful here. :/ Johan Sundström 2011-02-21 03:01:05 -08:00
  • 5f18a23fd7 Remove skewX(0) and skewY(0) too. How do they stack? Johan Sundström 2011-02-21 02:48:07 -08:00
  • f45173f4ee Some transform test files in need of corresponding test code. Johan Sundström 2011-02-21 01:50:33 -08:00
  • 66ef44691b Tidied up more of the transform code for readability. Johan Sundström 2011-02-21 01:43:58 -08:00
  • c6a9336185 Fixed the transform optimizations, which were all broken (wrong arg order). Johan Sundström 2011-02-21 01:13:56 -08:00
  • 438fd06952 Add missing trailing newlines to unit test svgs. Johan Sundström 2011-02-20 18:13:23 -08:00
  • 48776271d7 Fix bug 717826, whereby newlines are output as CR CR LF by Scour on Inkscape/Windows when they should be LF or CR LF. Now they're output as CR LF, and standalone Scour outputs LF. Louis Simard 2011-02-16 12:27:23 -05:00
  • 4657cb7515 Apply a modified patch submitted by Jan Thor in bug 717254 to fix a bug whereby Scour would keep the <defs/> element if it was there but had only whitespace or unreferenced children. Louis Simard 2011-02-11 12:29:20 -05:00
  • bdae2bafae Apply the patches submitted by Jan Thor in bug 714731. These patches remove attributes whose value equals its default value per the SVG specification, except if an element's parent node defines a non-default value explicitly, and add unit tests. Louis Simard 2011-02-10 19:48:53 -05:00
  • 2b68c7ed37 Adjust the unit tests for revision 197/bug 714717 (Optimizing some cubic beziers away). The behavior of the unit test checking for "c<nonzero> <nonzero> <zero>" being removed is now correct again. Louis Simard 2011-02-09 16:11:33 -05:00
  • 04d72454c5 Fix bug 708515, whereby file:// URLs would not count as real references for raster image embedding. Louis Simard 2011-02-09 15:44:41 -05:00
  • a99b7e27ea Add a new piece of code proposed by Jan Thor in bug 714727 to remove text-based attributes from groups that only have non-text elements as descendants. Louis Simard 2011-02-09 15:04:42 -05:00
  • aee0804114 Add 'text-align' to the list of text properties that get removed on non-text elements. Fixes bug 714720. Louis Simard 2011-02-07 14:00:10 -05:00
  • da3c9f1d98 Apply a fix by Jan Thor to bug 714717, whereby Scour wrongly optimises away "0-length" Bézier curves if they have non-zero control points that actually create a curve. Louis Simard 2011-02-07 13:48:15 -05:00
  • 6dc2553bed Apply a fix proposed by Jan Thor in bug 702423, to correct a code error that may be part of a bug whereby non-duplicate gradients are removed when using --disable-style-to-xml. Louis Simard 2011-02-07 13:20:04 -05:00
  • cd63079879 Fix bug 638764: Error in rule_ellptical_arc crashes Scour, by applying the fix provided by Walther. Louis Simard 2010-11-14 23:19:51 -05:00
  • fee74ead24 Add the option --no-renderer-workaround, which disables renderer workarounds. Made --renderer-workaround the default, to avoid duplicate bugs reported against Scour instead of librsvg. Louis Simard 2010-10-04 19:19:40 -04:00
  • 52e86032fa Future-proof the Scour Inkscape plugin's method of acquiring the name of the file to optimise. Thanks to Bernd Feige for the patch. Bernd Feige 2010-08-31 22:10:58 -04:00
  • b7277e0877 Properly set the parentNode on created <g> elements and their children for --create-groups, to avoid trouble later on. Louis Simard 2010-08-11 23:25:06 -04:00
  • beccc7c577 Abuse "".join(list) some more, to replace string concatenation. On Python 2.6.5, 80% of the time spent serialising the output SVG file is saved with this change. Louis Simard 2010-08-11 23:05:00 -04:00
  • f00b1a24f8 Make the --create-groups option run faster. Louis Simard 2010-08-11 21:43:37 -04:00
  • 87b7908465 Move Tree_of_Life_SVG.svg (revision 188) from unittests to fulltests. Whoops! Louis Simard 2010-07-16 22:04:22 -04:00
  • 939c7e1b97 Add fulltests/Tree_of_life_SVG.svg from Wikipedia, as a large file benchmark in both time and file size. Louis Simard 2010-07-13 18:26:34 -04:00
  • 11a2e71096 Add Johan's Tree of Life as fulltests/tree-of-life.svg Louis Simard 2010-07-13 18:01:31 -04:00
  • b68f8483c7 Remove empty m0,0 segments Jeff Schiller 2010-07-13 09:14:17 -07:00
  • 5f8139a6e3 Add marker-start, marker-mid, marker-end to list of SVG properties that get converted to attributes Jeff Schiller 2010-07-11 22:48:40 -07:00
  • 3fc0877b7c Fix bug 603994, whereby a <style> stylesheet would not count as a reference towards gradients etc., if the stylesheet was a CDATA element surrounded by whitespace nodes. Hurr Durr 2010-07-11 16:16:45 -04:00
  • c17c689ae4 Fix Bug 604000: Correctly remove overflow attributes on marker, pattern, svg Jeff Schiller 2010-07-11 11:18:26 -07:00
  • b661e479ea Fix Bug 603988: do not commonize attributes if element is referenced elsewhere Jeff Schiller 2010-07-11 08:52:18 -07:00
  • 3559499321 Add some icons from Ubuntu to fulltests/. They have various rendering changes when Scoured with full optimisation options selected. Cynthia Gauthier 2010-07-10 08:09:13 -04:00
  • 404c013e5f Implement the feature described in bug 598976: Create a <g> with the common attributes of a run of elements if there are 3 or more elements in the run. Cynthia Gauthier 2010-07-02 05:35:31 -04:00
  • 2a6cfb6b2c More fixing for the --renderer-workaround option, after testing with files from Ubuntu 10.04. Cynthia Gauthier 2010-06-19 05:17:18 -04:00
  • c3982e28df Add unit tests for requiring a <g> in a <switch> if the original file has one. Cynthia Gauthier 2010-06-16 03:49:46 -04:00
  • 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. Cynthia Gauthier 2010-06-16 02:29:01 -04:00
  • 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. Cynthia Gauthier 2010-06-15 22:20:03 -04:00
  • 2d28a5991d Fix bug 576958 "Viewbox option doesn't work when units are set", when renderer workarounds are disabled. Cynthia Gauthier 2010-06-15 22:18:11 -04:00
  • f2285145d6 Quick fix for url() replacement in shortenIds: it should be url("#xyz") getting replaced, not url(#"xyz"). Cynthia Gauthier 2010-06-15 21:55:38 -04:00
  • fdabe02701 Update push.sh with the new branch location for the trunk. Update package.sh, adding the newly-required file svg_transform.py. Cynthia Gauthier 2010-06-15 21:40:08 -04:00
  • f4cca44faf Merge branch lp:~louis-simard/scour/rework. Summary of changes: Cynthia Gauthier 2010-06-15 20:58:57 -04:00
  • 00804fb833 Remove escaped angle-brackets from inx file schiller 2010-05-12 15:58:52 -05:00
  • 27b9683279 Update release notes schiller 2010-05-09 15:48:57 -05:00
  • 5ad1ba6e8a Fix Issue 562784 schiller 2010-05-09 15:36:01 -05:00
  • 40aa6cd54a Fix Bug 577940 schiller 2010-05-09 15:32:21 -05:00
  • 5e97247f98 Add logos and statistics spreadsheet JSCHILL1 2010-04-25 21:58:03 -05:00
  • 9042bbae31 Fix Bug 519698: Do not collapse move commands together because they may have line segments JSCHILL1 2010-03-27 11:41:19 -05:00
  • 05e73f11c3 Fix Bug 541889: Properly parse polygon/polyline points missing whitespace/comma for negative attributes JSCHILL1 2010-03-25 17:48:15 -07:00
  • fd82967bbc Add a couple minor tests for the CSS parser JSCHILL1 2010-02-07 08:49:38 -06:00
  • 7957dcd7c4 Add test script for yocto_css and call it from testscour.py JSCHILL1 2010-02-07 08:45:57 -06:00
  • 34b06e310a Add test script for yocto_css and call it from testscour.py JSCHILL1 2010-02-07 08:44:49 -06:00
  • 2275c46569 Final scour 0.24 JSCHILL1 2010-02-05 16:28:24 -06:00
  • c00bc8b70c Fix bug when DOCTYPE is present. Big performance improvement to makeWellFormed() function JSCHILL1 2010-02-05 16:28:13 -06:00
  • c835423e8f Fix Bug 511186: Preserve comments surround <svg> root node JSCHILL1 2010-02-04 19:31:54 -06:00
  • 6147bb2085 Fix Bug 517064: Make XML well-formed again by properly translating the 5 XML entities JSCHILL1 2010-02-04 09:30:22 -06:00
  • 6230682a01 Fix Bug 503750: Update inkscape extension to include new --enable-viewboxing option JSCHILL1 2010-01-08 22:24:08 -06:00
  • 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 JSCHILL1 2010-01-04 12:55:23 -06:00
  • 22fd47ab23 Added --enable-viewboxing option and stop setting width/height to 100% by default JSCHILL1 2009-12-31 13:59:54 -06:00
  • 8caa66edf9 Update unittest harness script so that things pass in Windows JSCHILL1 2009-11-13 12:59:06 -06:00