From 37e0135daaaea02a5a019eee4fa1dfd6788a2bab Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Fri, 20 Oct 2023 00:40:31 +0200 Subject: [PATCH] add inkscape:page to element migrator --- .../ungrouper_and_element_migrator_filter.inx | 1 + .../ungrouper_and_element_migrator_filter.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.inx b/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.inx index 620adc0..7030f25 100644 --- a/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.inx +++ b/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.inx @@ -50,6 +50,7 @@ true true true + true diff --git a/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.py b/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.py index c6ba811..ab11c6a 100644 --- a/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.py +++ b/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.py @@ -73,6 +73,7 @@ class UngrouperAndElementMigratorFilter(inkex.EffectExtension): pars.add_argument("--pattern", type=inkex.Boolean, default=True) pars.add_argument("--rdfRDF", type=inkex.Boolean, default=True) pars.add_argument("--ccWork", type=inkex.Boolean, default=True) + pars.add_argument("--page", type=inkex.Boolean, default=True) def effect(self): @@ -110,6 +111,7 @@ class UngrouperAndElementMigratorFilter(inkex.EffectExtension): namespace.append("{http://www.w3.org/2000/svg}flowPara") if self.options.flowPara else "" namespace.append("{http://www.w3.org/2000/svg}marker") if self.options.marker else "" namespace.append("{http://www.w3.org/2000/svg}pattern") if self.options.pattern else "" + namespace.append("{http://www.inkscape.org/namespaces/inkscape}page") if self.options.page else "" namespace.append("{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}guide") if self.options.guide else "" namespace.append("{http://www.w3.org/1999/02/22-rdf-syntax-ns#}RDF") if self.options.rdfRDF else "" namespace.append("{http://creativecommons.org/ns#}Work") if self.options.ccWork else ""