From c689c81d51d001ce11f23d8ae15f1a0ffafd0e9a Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Thu, 1 Dec 2022 21:08:35 +0100 Subject: [PATCH] add more templates to paper insert --- .../insert_paper_template/insert_paper_template.inx | 6 ++++++ .../insert_paper_template/insert_paper_template.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/extensions/fablabchemnitz/insert_paper_template/insert_paper_template.inx b/extensions/fablabchemnitz/insert_paper_template/insert_paper_template.inx index 70d3788..bead90f 100644 --- a/extensions/fablabchemnitz/insert_paper_template/insert_paper_template.inx +++ b/extensions/fablabchemnitz/insert_paper_template/insert_paper_template.inx @@ -3,12 +3,18 @@ Insert Paper Template fablabchemnitz.de.insert_paper_template + + + + + + diff --git a/extensions/fablabchemnitz/insert_paper_template/insert_paper_template.py b/extensions/fablabchemnitz/insert_paper_template/insert_paper_template.py index b348145..09ed0d4 100644 --- a/extensions/fablabchemnitz/insert_paper_template/insert_paper_template.py +++ b/extensions/fablabchemnitz/insert_paper_template/insert_paper_template.py @@ -38,12 +38,18 @@ class InsertPaperTemplate(inkex.EffectExtension): self.Group = etree.SubElement(self.svg.get_current_layer(), inkex.addNS('g','svg'), {} ) papertypes = {} + papertypes["A6"] = (105, 148, "#00ffff") # cyan papertypes["A5"] = (148, 210, "#ffeeaa") # yellow papertypes["A4"] = (210, 297, "#ffccaa") # orange papertypes["A3"] = (297, 420, "#afdde9") # blue papertypes["A2"] = (420, 594, "#ccaaff") # purple papertypes["A1"] = (594, 841, "#afe9c6") # green papertypes["A0"] = (841, 1189, "#ffd5d5") # red + papertypes["B6"] = (125, 176, "#ffccaa") # orange + papertypes["B5"] = (176, 250, "#afdde9") # blue + papertypes["C6"] = (114, 162, "#ccaaff") # purple + papertypes["C5"] = (162, 228, "#afe9c6") # green + papertypes["DIN_LANG"] = (110, 220, "#ffd5d5") # red papertypes["POKER"] = (63.5, 88, "#ffffff") # white papertypes["BRIDGE"] = (56, 88, "#ffffff") # white papertypes["MINI_US"] = (41, 63, "#ffffff") # white