Commit graph

  • 312936523f fixed side effect --set-precision 6 pborunda 2017-02-10 13:56:19 -07:00
  • 262b37a0f9 code cleanup pborunda 2017-02-10 09:04:03 -07:00
  • 66f1e7884e code cleanup pborunda 2017-02-10 08:53:28 -07:00
  • fe98270715 code cleanup pborunda 2017-02-10 08:39:43 -07:00
  • d1c347365b code cleanup pborunda 2017-02-10 08:34:40 -07:00
  • c9a2d26918 Shortened some help message pborunda 2017-02-10 08:29:45 -07:00
  • f5ad0f4988 Improve precision options for smaller output size pborunda 2017-02-08 14:08:04 -07:00
  • 210c5f64ab Update HISTORY.md Eduard Braun 2016-11-27 19:10:29 +01:00
  • 25549b35d3 Some whitespace fixes to make newer versions of flake8 happy Eduard Braun 2016-11-27 18:47:17 +01:00
  • 6cf8c2b7d9 call sanitizeOptions() in start() to prevent a third-party breakage Eduard Braun 2016-11-27 18:38:29 +01:00
  • e77a4481f8 Some whitespace fixes to make newer versions of flake8 happy Eduard Braun 2016-11-27 18:47:17 +01:00
  • 26abe21486 call sanitizeOptions() in start() to prevent a third-party breakage Eduard Braun 2016-11-27 18:38:29 +01:00
  • c45f050fe6 Update HISTORY.md (0.35 has been released) Eduard Braun 2016-10-25 23:16:47 +02:00
  • f3c25fd27a Declare public API in __init__.py and add __main__.py Eduard Braun 2016-09-25 17:33:15 +02:00
  • d9b369864d Reimplement generateDefaultOptions() by simply calling sanitizeOptions() Eduard Braun 2016-09-25 19:02:19 +02:00
  • 49cb542689 Make sanitizeOptions() work with an empty parameter list Eduard Braun 2016-09-25 18:49:05 +02:00
  • 285d73e5a6 Fix statistics out put for "Number of comments removed" Eduard Braun 2016-09-25 15:44:07 +02:00
  • 2fe7152a1e Fix logic from 4a5b924d37 (which was still wrong after 4410f91dad) Eduard Braun 2016-09-25 15:34:28 +02:00
  • 91ee9d2112 Merge pull request #120 from Ede123/raster_images Eduard Braun 2016-09-23 23:23:21 +02:00
  • de1441fd58 Exclude (system specific) absolute paths from test file and add a unittest that creates/tests absolute paths on-the-fly Eduard Braun 2016-09-23 23:16:19 +02:00
  • 902e112a96 Add unittests for embedding rasters (and --disable-embed-rasters) Eduard Braun 2016-09-23 22:33:01 +02:00
  • 8cc97601c4 scourXmlFile(): Set specified 'filename' as input filename so relative references will work Eduard Braun 2016-09-23 22:32:32 +02:00
  • 462460a512 Fix embedRasters() function. It was not Python 3 compatible and usually would not have worked with local files. Eduard Braun 2016-09-23 00:20:14 +02:00
  • 8d20805976 Add three images (for usage with a future unittest) Eduard Braun 2016-09-18 22:41:24 +02:00
  • 7e2b5e43df Add CONTRIBUTING.md with some (hopefully) useful pointers Eduard Braun 2016-09-18 22:36:21 +02:00
  • 284beae36c Merge pull request #117 from Ede123/unittests Eduard Braun 2016-09-18 18:33:14 +02:00
  • 45a2869a17 Add unittests for --protect-ids-_ options Eduard Braun 2016-09-18 18:25:18 +02:00
  • 829b630d64 Add unittests which emulate calling the scour module from command line Eduard Braun 2016-09-17 23:40:53 +02:00
  • 47cfb9aa0e Add unittest for --strip-xml-space Eduard Braun 2016-09-17 17:11:44 +02:00
  • 24c8087bd4 minor whitespace fix Eduard Braun 2016-09-18 17:12:33 +02:00
  • 2487f4433b Fixes to globals used for tracking statistics (#118) Eduard Braun 2016-09-18 16:23:00 +02:00
  • 4ae7e93d7e More fixes for globals used for statistics - harmonize names - adjust according to PEP 8 while at it including leading underscore to mark as non-public - include one missing variable in statistics output (number of comments removed) Eduard Braun 2016-09-18 16:05:11 +02:00
  • 47bc477cd1 Collect globals for tracking statistics in scourString() and make sure they're all properly initialized to zero. Before statistics were wrong when scouring multiple files/strings because initialization was only done once when loading the module. Eduard Braun 2016-09-18 15:47:07 +02:00
  • 4410f91dad Fix logic in previous commit Eduard Braun 2016-09-18 03:25:19 +02:00
  • 4a5b924d37 Do not attempt to close stdin/stdout file objects Eduard Braun 2016-09-18 03:07:51 +02:00
  • 8ac344daf2 Update Makefile - add make target to run unittests - add a convenience check target (that runs unittests and flake8 for now) - remove test_error_on_flowtext target (we have unittests for that now) Eduard Braun 2016-09-17 17:09:35 +02:00
  • 18970e0ba1 Update README.md Eduard Braun 2016-09-17 16:28:13 +02:00
  • e1e3051de0 Merge pull request #115 from Ede123/coverage Eduard Braun 2016-09-17 15:53:10 +02:00
  • 582c2dd9b7 Add coverage to Makefile and improve clean target Eduard Braun 2016-09-17 02:26:13 +02:00
  • 42dc70874c Automate coverage via Travis and Codecov Eduard Braun 2016-09-17 01:18:37 +02:00
  • 79390dc0e4 Add flake8 to automated tests Eduard Braun 2016-09-16 02:03:03 +02:00
  • fb9ffb3dbd Merge pull request #113 from Ede123/pep8 Eduard Braun 2016-09-15 23:05:10 +02:00
  • f27ad1e416 add flake8 to Makefile Eduard Braun 2016-09-15 22:15:10 +02:00
  • d9198d7872 Order imports as suggested by PEP 8 Eduard Braun 2016-09-15 21:56:36 +02:00
  • 99363c9089 Fix all issues detected by pyflakes Eduard Braun 2016-09-15 21:31:34 +02:00
  • 82df0d2327 More PEP 8 cleanup (solves all issues reported by pycodestyle) Eduard Braun 2016-09-15 21:02:15 +02:00
  • fc356815a2 Some reformatting and manually break all long lines at column 119 Eduard Braun 2016-09-15 01:54:19 +02:00
  • 0f1974c1e2 Consistent whitespace across source files according to PEP 8 (mostly automated by using autopep8, fixes #69) Eduard Braun 2016-09-15 00:35:13 +02:00
  • 943319b710 bump version v0.35 Tobias Oberstein 2016-09-14 12:10:57 +02:00
  • 9b80fc55a2 Update HISTORY.md Eduard Braun 2016-09-11 14:10:24 +02:00
  • 9629e87f37 Throw some line breaks in there... Eduard Braun 2016-09-11 14:03:31 +02:00
  • 082b579410 We don't want spaces in the serialized value of style attributes. Add a unittest that should catch this and other issues with parsing/serializing the style attribute Eduard Braun 2016-09-11 14:01:04 +02:00
  • b065137187 Whitespace fix Eduard Braun 2016-09-11 01:09:30 +02:00
  • cd8b723fed Merge pull request #111 from Ede123/property_inheritance Eduard Braun 2016-09-11 00:19:38 +02:00
  • 10e687b887 Add unittests for 1cde426009 and 641d2db08a392e4a7df20c700e1accb9cd8d1341 Eduard Braun 2016-09-11 00:16:17 +02:00
  • 0b5bb5184c Do not remove stroke:none; if a differing value would be inherited from a parent (fixes rest of #22) Eduard Braun 2016-09-10 22:59:29 +02:00
  • 0b5eab7f2f Avoid removal of some additional styles if they might be inherited by a child Eduard Braun 2016-09-10 22:13:02 +02:00
  • 1cde426009 Do not remove stroke-related styles if they might be inherited by a child (partially fixes #22) Eduard Braun 2016-09-10 22:08:49 +02:00
  • 600ec2868c Update HISTORY.mdUpdate HISTORY.md Eduard Braun 2016-09-06 01:49:14 +02:00
  • 1aa5722c6a Fix conversion of cubic Bézier "curveto" commands into "shorthand/smooth curveto" commands. (#110) Eduard Braun 2016-09-06 01:43:36 +02:00
  • e721c1fa7f Add unittests Eduard Braun 2016-09-06 01:39:47 +02:00
  • 2e6d34aa5a Fix conversion of cubic Bézier "curveto" commands into "shorthand/smooth curveto" commands. When the preceeding path segment is a Bézier curve, too, the first control point of the shorthand defaults to the mirrored version of the second control point of this preceeding path segment. Scour always assumed (0,0) as the control point in this case which could result in modified path data (e.g. #91). Eduard Braun 2016-09-06 01:39:30 +02:00
  • 0fac95ee09 Update HISTORY.md Eduard Braun 2016-09-05 22:46:11 +02:00
  • ec855211de Fix replacement of duplicate gradients if "fill/stroke" contains fallbacks (#109) Eduard Braun 2016-09-05 22:44:55 +02:00
  • eba21ce89f Update unittests Eduard Braun 2016-09-05 22:41:11 +02:00
  • 9dd0d2ab49 Fix replacement of duplicate gradients if "fill/stroke" contains fallbacks. (fixes #79) Eduard Braun 2016-09-05 22:40:37 +02:00
  • 564367f886 Update HISTORY.md Eduard Braun 2016-08-31 22:46:48 +02:00
  • 25c05d99d8 Merge pull request #108 from Ede123/precision Eduard Braun 2016-08-31 22:29:51 +02:00
  • dc3f66ed0f Sort declarations in style attribute (#107) Dirk Thomas 2016-08-31 13:29:01 -07:00
  • 0c63344ea4 Add a check to prevent we make path data longer by "optimization" Eduard Braun 2016-08-31 07:06:42 +02:00
  • 21e6c7491b Fix a unittest that failed due to the increased accuracy of paths after 29e005bf7b Eduard Braun 2016-08-31 06:32:05 +02:00
  • 29e005bf7b Improve handling of scientific vs. non-scientific notation * Negative exponents were not handled in a reasonable way (e.g. 0.000001 remained unchanged) * Trailing zeroes were not always properly removed Eduard Braun 2016-08-31 06:29:01 +02:00
  • 9e4b9d6f5e Improve behaviour of numerial precision reduction * Previously all calculations were immediately done with the precision specified by the user, resulting in accumulation of numerical errors and in some cases very discernible abberations from the initial image (e.g. #80) * Now all calculations are done with default precision (the module "decimal" uses a whopping 28 signifigant digits initially!) and only at the very end coordinates are rounded to the desired precision. Eduard Braun 2016-08-31 00:04:19 +02:00
  • ec2a533a35 sort style declarations Dirk Thomas 2016-08-30 15:55:46 -07:00
  • 3929426a5a Add some attributes that fit into the list of the previous commit, too Eduard Braun 2016-08-30 22:32:57 +02:00
  • e76da093ea Try to always order attributes intuitively based on a list of select attributes, order other attributes alphabetical (#105) Dirk Thomas 2016-08-30 13:30:29 -07:00
  • a08814b459 always order attributes based on defined order of known attributes, otherwise alphabetical Dirk Thomas 2016-08-29 15:46:19 -07:00
  • bf4fc1b70e Linkify HISTORY.md Eduard Braun 2016-08-30 00:17:33 +02:00
  • e57adf0c96 Fix HISTORY.md Eduard Braun 2016-08-30 00:15:09 +02:00
  • fa17e6655a Update HISTORY.md Eduard Braun 2016-08-30 00:13:37 +02:00
  • 3b68fdacf8 Fix removal rules for the overflow attribute (#104) Eduard Braun 2016-08-30 00:05:52 +02:00
  • 36f7cc6ee4 Fix removal rules for the overflow attribute (fixes #92) Eduard Braun 2016-08-30 00:03:55 +02:00
  • aa48c90d56 Add options to remove descriptive elements (#102) Eitot 2016-08-29 21:05:12 +02:00
  • aa1842fa45 Add unit tests for new options Eitot 2016-08-29 11:24:29 +02:00
  • 5f2dd101df Add options to remove descriptive elements Eitot 2016-08-29 07:58:33 +02:00
  • 842123a393 Fix improper comparison of numeric default attribute values with textvalues resulting in wrongly removed attributes (#101) Eduard Braun 2016-08-29 06:37:28 +02:00
  • db49a9f915 Add unittest for previous commit Eduard Braun 2016-08-29 06:34:44 +02:00
  • 2e84d57efa Fix improper comparison of numeric default attribute values with text values resulting in wrongly removed attributes For example for orient="auto" SVGLength() returns (value=0, units=Unit.INVALID); since the default value for orient is zero it was removed as there was check for a valid unit. Eduard Braun 2016-08-29 06:25:05 +02:00
  • 3511c05298 Remove obsolete Psyco dependency (#100) Eitot 2016-08-29 04:32:54 +02:00
  • 15b1921f0a Remove obsolete Psyco dependency Eitot 2016-08-29 04:12:18 +02:00
  • beea442fce Update HISTORY.md Eduard Braun 2016-08-29 03:39:49 +02:00
  • 0314070363 Fix/update list of SVG presentation attributes (#99) Eduard Braun 2016-08-29 03:30:33 +02:00
  • 1d20688cdc Fix/update list of SVG presentation attributes (fixes #94) Eduard Braun 2016-08-29 03:24:53 +02:00
  • 5844076258 Only attempt to group elements that the content model allows to be children of a <g> when --create-groups is specified. (#98) Eduard Braun 2016-08-29 02:33:13 +02:00
  • 33423ea7d5 Update HISTORY.md Eduard Braun 2016-08-29 02:31:39 +02:00
  • ff7a45d136 Add unittests for previous commit Eduard Braun 2016-08-29 02:28:02 +02:00
  • d477518188 Only attempt to group elements that the content model allows to be children of a <g> when --create-groups is specified. (before it could happen that e.g. tspan elements were grouped, which is invalid, see issues #96 and #97) Eduard Braun 2016-08-29 02:13:09 +02:00
  • 419f41cb48 Add links to issues in release notes Eduard Braun 2016-08-28 20:07:51 +02:00
  • c433077e6f Add release notes for all releases since 0.26 Eduard Braun 2016-08-28 19:54:46 +02:00
  • fbf4e13e8d Restore release notes (converted to Markdown) Eduard Braun 2016-08-28 17:22:46 +02:00