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.

This commit is contained in:
Cynthia Gauthier 2010-07-02 05:35:31 -04:00
parent 2a6cfb6b2c
commit 404c013e5f
6 changed files with 162 additions and 7 deletions

View file

@ -19,6 +19,9 @@ class ScourInkscape (inkex.Effect):
self.OptionParser.add_option("--group-collapsing", type="inkbool",
action="store", dest="group_collapse", default=True,
help="won't collapse <g> elements")
self.OptionParser.add_option("--create-groups", type="inkbool",
action="store", dest="group_create", default=False,
help="create <g> elements for runs of elements with identical attributes")
self.OptionParser.add_option("--enable-id-stripping", type="inkbool",
action="store", dest="strip_ids", default=False,
help="remove all un-referenced ID attributes")