| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Add test case for #198/#202 Signed-off-by: Niels Thykier <niels@thykier.net> | 6 年前 |
| Restore unittests from history | 10 年前 |
| Fix a unittest that failed due to the increased accuracy of paths after 29e005bf7b7212fb68b9058879c73a3e88bdb07f | 9 年前 |
| Improve and fix behaviour when collapsing straight paths segments (#146) * Do not collapse straight path segments in paths that have intermediate markers (see #145). The intermediate nodes might be unnecessary for the shape of the path, but their markers would be lost. * Collapse subpaths of moveto `m` and lineto `l` commands if they have the same direction (before we only collapsed horizontal/vertical `h`/`v` lineto commands) * Attempt to collapse lineto `l` commands into a preceding moveto `m` command (these are then called "implicit lineto commands") * Preserve empty path segments if they have `stroke-linecap` set to `round` or `square`. They render no visible line but a tiny dot or square. | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Add options to remove descriptive elements (#102) * --remove-titles (removes <title>) * --remove-descriptions (removes <desc>) * --remove-descriptive-elements (removes <title>, <desc> and <metadata>) | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Fix replacement of duplicate gradients if "fill/stroke" contains fallbacks (#109) (fixes #79) | 9 年前 |
| Add options to remove descriptive elements (#102) * --remove-titles (removes <title>) * --remove-descriptions (removes <desc>) * --remove-descriptive-elements (removes <title>, <desc> and <metadata>) | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Unittests: Add a test for proper decoding of ISO 8859-15 | 10 年前 |
| Unittests: Add a test for proper decoding of ISO 8859-15 | 10 年前 |
| tests: Add unit tests for the escaping of quote characters in attribute values | 8 年前 |
| Restore unittests from history | 10 年前 |
| add option to check and warn or bail out on flowtext | 10 年前 |
| add option to check and warn or bail out on flowtext | 10 年前 |
| Restore unittests from history | 10 年前 |
| Add options to remove descriptive elements (#102) * --remove-titles (removes <title>) * --remove-descriptions (removes <desc>) * --remove-descriptive-elements (removes <title>, <desc> and <metadata>) | 9 年前 |
| Add unittests for #66 | 9 年前 |
| Restore unittests from history | 10 年前 |
| Only attempt to group elements that the content model allows to be children of a <g> when `--create-groups` is specified. (#98) (before it could happen that e.g. `tspan` elements were grouped, which is invalid; fixes issues #96 and #97) | 9 年前 |
| Restore unittests from history | 10 年前 |
| scour: Fix another variant of the crash from #260 (#264) Signed-off-by: Niels Thykier <niels@thykier.net> | 5 年前 |
| scour: Fix another variant of the crash from #260 (#264) Signed-off-by: Niels Thykier <niels@thykier.net> | 5 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Add unittests for `--protect-ids-_` options | 9 年前 |
| Restore unittests from history | 10 年前 |
| Allow elements to be found via Document.getElementById() in the minidom document returned by scourXmlFile() (#68) | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Add unittests which emulate calling the scour module from command line | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Add unittests for whitespace handling in text node Also expand/fix the test for line endings | 8 年前 |
| Restore unittests from history | 10 年前 |
| Fix improper comparison of numeric default attribute values with textvalues resulting in wrongly removed attributes (#101) 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. | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Fix conversion of cubic Bézier "curveto" commands into "shorthand/smooth curveto" commands. (#110) 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). | 9 年前 |
| Implement a basic rewrite of redundant commands This basic implementation can drop and rewrite some cases of "m0 0" and "z" without triggering the issues experienced in #163. It works by analysing the path backwards and tracking "z" and "m" commands. Signed-off-by: Niels Thykier <niels@thykier.net> | 8 年前 |
| Fix handling of boolean flags in elliptical path commands (#183) * properly parse paths without space after boolean flags (fixes #161) * omit space after boolean flag to shave off a few bytes when not using renderer workarounds | 8 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Add a check to prevent we make path data longer by "optimization" | 9 年前 |
| Add unittest for `--set-c-precision` (7cb0d36d72e3fbef79e30fb744ea5f966051015c) | 9 年前 |
| Improve and fix behaviour when collapsing straight paths segments (#146) * Do not collapse straight path segments in paths that have intermediate markers (see #145). The intermediate nodes might be unnecessary for the shape of the path, but their markers would be lost. * Collapse subpaths of moveto `m` and lineto `l` commands if they have the same direction (before we only collapsed horizontal/vertical `h`/`v` lineto commands) * Attempt to collapse lineto `l` commands into a preceding moveto `m` command (these are then called "implicit lineto commands") * Preserve empty path segments if they have `stroke-linecap` set to `round` or `square`. They render no visible line but a tiny dot or square. | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Improve and fix behaviour when collapsing straight paths segments (#146) * Do not collapse straight path segments in paths that have intermediate markers (see #145). The intermediate nodes might be unnecessary for the shape of the path, but their markers would be lost. * Collapse subpaths of moveto `m` and lineto `l` commands if they have the same direction (before we only collapsed horizontal/vertical `h`/`v` lineto commands) * Attempt to collapse lineto `l` commands into a preceding moveto `m` command (these are then called "implicit lineto commands") * Preserve empty path segments if they have `stroke-linecap` set to `round` or `square`. They render no visible line but a tiny dot or square. | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| tests: Add unit tests for preservation of quotes in CSS styles These tests will ensure that issues #21 and #56 do not return. | 8 年前 |
| Add unittests for embedding rasters (and --disable-embed-rasters) | 9 年前 |
| Exclude (system specific) absolute paths from test file and add a unittest that creates/tests absolute paths on-the-fly | 9 年前 |
| Add unittests for embedding rasters (and --disable-embed-rasters) | 9 年前 |
| Add three images (for usage with a future unittest) | 9 年前 |
| Add three images (for usage with a future unittest) | 9 年前 |
| Add three images (for usage with a future unittest) | 9 年前 |
| remapNamespacePrefix: Preserve prefix of attribute names (#255) Preserve prefix of attribute names when copying them over to the new node. This fixes an unintentional rewrite of `xml:space` to `space` that also caused scour to strip whitespace that should have been preserved. Closes: #239 Signed-off-by: Niels Thykier <niels@thykier.net> | 6 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| test: Use number-optional-number variant of kernelUnitLength Signed-off-by: Niels Thykier <niels@thykier.net> | 8 年前 |
| Avoid crashing on stdDeviation attribute Signed-off-by: Niels Thykier <niels@thykier.net> | 8 年前 |
| Add test case for #203 Signed-off-by: Niels Thykier <niels@thykier.net> | 6 年前 |
| Fix replacement of duplicate gradients if "fill/stroke" contains fallbacks (#109) (fixes #79) | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| shortenID: Improve tracking of optimal ID lengths Signed-off-by: Niels Thykier <niels@thykier.net> | 8 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Add unittests for 1cde426009d802b98ecff7a4bcc71d559598870e and 641d2db08a392e4a7df20c700e1accb9cd8d1341 | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Throw some line breaks in there... | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Avoid crashing on "scale(1)" (short for "scale(1, 1)") The scale function on the transform attribute has a short form, where only the first argument is used. But optimizeTransform would always assume that there were two when checking for the identity scale. Closes: #190 Signed-off-by: Niels Thykier <niels@thykier.net> | 8 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Don't remove unreferenced defs if `--keep-unreferenced-defs` is specified (#62) * Don't remove unreferenced defs if `--keep-unreferenced-defs` is specified (fixes #18) * Add unittests for previous commit | 9 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Unittests for `--enable-viewboxing` | 9 年前 |
| Unittests for `--enable-viewboxing` | 9 年前 |
| Restore unittests from history | 10 年前 |
| Add unittests for whitespace handling in text node Also expand/fix the test for line endings | 8 年前 |
| Restore unittests from history | 10 年前 |
| Restore unittests from history | 10 年前 |
| Add unittest for `--strip-xml-space` | 9 年前 |
| Unittests: Account for b979fe19e563a559d03f15da818f95ddff00bc56 (fix one test and add two more) - Unused XML namespace declarations *are supposed* to be removed - XML namespace declarations that are used as prefix for elements/attributes *must not* be removed | 10 年前 |