-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
group-collapsing #215
Comments
One group would be also ok. For groups and text there are much more optimizations possible, e.g. including anti-groups and full transformation resolution. |
Yes id love to see support for removing all groups where possible |
nthykier
added a commit
to nthykier/scour
that referenced
this issue
May 17, 2020
An optimization that prunes nested <g>-tags when they contain exactly one <g> and nothing else (except whitespace nodes). This looks a bit like `removeNestedGroups` except it only touches <g> tags without attributes (but can remove <g>-tags completely from a tree, whereas this optimization always leaves at least one <g> tag behind). Closes: scour-project#215 Signed-off-by: Niels Thykier <niels@thykier.net>
nthykier
added a commit
to nthykier/scour
that referenced
this issue
May 18, 2020
An optimization that prunes nested <g>-tags when they contain exactly one <g> and nothing else (except whitespace nodes). This looks a bit like `removeNestedGroups` except it only touches <g> tags without attributes (but can remove <g>-tags completely from a tree, whereas this optimization always leaves at least one <g> tag behind). Closes: scour-project#215 Signed-off-by: Niels Thykier <niels@thykier.net>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running scour for InputOutput.svg.txt does not collapse groups.
scour -i InputOutput.svg.txt -o InputOutput.svg.txt
If I understand
--disable-group-collapsing
correctly then it should collapse groups by default.Input=Output
InputOutput.svg.txt
desired output
whish.svg.txt
Or what does group collapsing mean? (maybe one example)
The text was updated successfully, but these errors were encountered: