diff --git a/extensions/fablabchemnitz/generate_palette/.editorconfig b/extensions/fablabchemnitz/generate_palette/.editorconfig
new file mode 100644
index 00000000..4a7ea303
--- /dev/null
+++ b/extensions/fablabchemnitz/generate_palette/.editorconfig
@@ -0,0 +1,12 @@
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.md]
+trim_trailing_whitespace = false
diff --git a/extensions/fablabchemnitz/generate_palette/generate_palette.inx b/extensions/fablabchemnitz/generate_palette/generate_palette.inx
new file mode 100644
index 00000000..78519e95
--- /dev/null
+++ b/extensions/fablabchemnitz/generate_palette/generate_palette.inx
@@ -0,0 +1,40 @@
+
+
+ Generate Palette
+ fablabchemnitz.de.generate_palette
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+
+
+
+
+
+
+
+
+
+ info.svg
+
+
+
+ all
+
+
+
+
+
+
\ No newline at end of file
diff --git a/extensions/fablabchemnitz/generate_palette/generate_palette.py b/extensions/fablabchemnitz/generate_palette/generate_palette.py
new file mode 100644
index 00000000..c6c40d71
--- /dev/null
+++ b/extensions/fablabchemnitz/generate_palette/generate_palette.py
@@ -0,0 +1,180 @@
+#! /usr/bin/env python3
+
+import os
+import sys
+import inkex
+
+def log(text):
+ inkex.utils.debug(text)
+
+
+def abort(text):
+ inkex.errormsg(_(text))
+ exit()
+
+
+class GeneratePalette(inkex.EffectExtension):
+
+
+ def add_arguments(self, pars):
+ pars.add_argument('--name', help='Palette name')
+ pars.add_argument('--property', help='Color property')
+ pars.add_argument('--default', type=inkex.Boolean, help='Default grays')
+ pars.add_argument('--sort', help='Sort type')
+ pars.add_argument('--replace', type=inkex.Boolean, dest='replace', help='Replace existing')
+
+
+ def get_palettes_path(self):
+ if sys.platform.startswith('win'):
+ path = os.path.join(os.environ['APPDATA'], 'inkscape', 'palettes')
+ else:
+ path = os.environ.get('XDG_CONFIG_HOME', '~/.config')
+ path = os.path.join(path, 'inkscape', 'palettes')
+
+ return os.path.expanduser(path)
+
+
+ def get_file_path(self):
+ name = str(self.options.name).replace(' ', '-')
+ return "%s/%s.gpl" % (self.palettes_path, name)
+
+
+ def get_default_colors(self):
+ colors = [
+ " 0 0 0 Black",
+ " 26 26 26 90% Gray",
+ " 51 51 51 80% Gray",
+ " 77 77 77 70% Gray",
+ "102 102 102 60% Gray",
+ "128 128 128 50% Gray",
+ "153 153 153 40% Gray",
+ "179 179 179 30% Gray",
+ "204 204 204 20% Gray",
+ "230 230 230 10% Gray",
+ "236 236 236 7.5% Gray",
+ "242 242 242 5% Gray",
+ "249 249 249 2.5% Gray",
+ "255 255 255 White"
+ ]
+
+ return colors if self.options.default else []
+
+
+ def get_node_prop(self, node, property):
+ attr = node.attrib.get('style')
+ style = dict(inkex.Style.parse_str(attr))
+
+ return style.get(property, 'none')
+
+
+ def get_node_index(self, item):
+ node = item[1]
+ id = node.attrib.get('id')
+
+ return self.options.ids.index(id)
+
+
+ def get_node_x(self, item):
+ node = item[1]
+ return node.bounding_box().center_x
+
+
+ def get_node_y(self, item):
+ node = item[1]
+ return node.bounding_box().center_y
+
+
+ def get_formatted_color(self, color):
+ rgb = inkex.Color(color).to_rgb()
+
+ if self.options.sort == 'hsl':
+ key = inkex.Color(color).to_hsl()
+ key = "{:03d}{:03d}{:03d}".format(*key)
+ else:
+ key = "{:03d}{:03d}{:03d}".format(*rgb)
+
+ rgb = "{:3d} {:3d} {:3d}".format(*rgb)
+ color = str(color).upper()
+ name = str(inkex.Color(color).to_named()).upper()
+
+ if name != color:
+ name = "%s (%s)" % (name.capitalize(), color)
+
+ return "%s %s %s" % (key, rgb, name)
+
+
+ def get_selected_colors(self):
+ colors = []
+ selected = list(self.svg.selected.items())
+
+ if self.options.sort == 'y_location':
+ selected.sort(key=self.get_node_x)
+ selected.sort(key=self.get_node_y)
+ elif self.options.sort == 'x_location':
+ selected.sort(key=self.get_node_y)
+ selected.sort(key=self.get_node_x)
+ else:
+ selected.sort(key=self.get_node_index)
+
+ for id, node in selected:
+ if self.options.property in ['fill', 'both']:
+ fill = self.get_node_prop(node, 'fill')
+
+ if inkex.colors.is_color(fill):
+ if fill != 'none' and fill not in colors:
+ colors.append(fill)
+
+ if self.options.property in ['stroke', 'both']:
+ stroke = self.get_node_prop(node, 'stroke')
+
+ if inkex.colors.is_color(stroke):
+ if stroke != 'none' and stroke not in colors:
+ colors.append(stroke)
+
+ colors = list(map(self.get_formatted_color, colors))
+
+ if self.options.sort == 'hsl' or self.options.sort == 'rgb':
+ colors.sort()
+
+ return list(map(lambda x : x[11:], colors))
+
+
+ def write_palette(self):
+ file = open(self.file_path, 'w')
+ try:
+ file.write("GIMP Palette\n")
+ file.write("Name: %s\n" % self.options.name)
+ file.write("#\n# Generated with Inkscape Generate Palette\n#\n")
+
+ for color in self.default_colors:
+ file.write("%s\n" % color)
+
+ for color in self.selected_colors:
+ if color[:11] not in list(map(lambda x : x[:11], self.default_colors)):
+ file.write("%s\n" % color)
+ finally:
+ file.close()
+
+
+ def effect(self):
+ self.palettes_path = self.get_palettes_path()
+ self.file_path = self.get_file_path()
+ self.default_colors = self.get_default_colors()
+ self.selected_colors = self.get_selected_colors()
+
+ if not self.options.replace and os.path.exists(self.file_path):
+ abort('Palette already exists!')
+
+ if not self.options.name:
+ abort('Please enter a palette name.')
+
+ if len(self.options.ids) < 2:
+ abort('Please select at least 2 objects.')
+
+ if not len(self.selected_colors):
+ abort('No colors found in selected objects!')
+
+ self.write_palette()
+
+if __name__ == '__main__':
+ GeneratePalette().run()
diff --git a/extensions/fablabchemnitz/generate_palette/info.svg b/extensions/fablabchemnitz/generate_palette/info.svg
new file mode 100644
index 00000000..2fafe0ab
--- /dev/null
+++ b/extensions/fablabchemnitz/generate_palette/info.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/extensions/fablabchemnitz/inklin/inklin.glade b/extensions/fablabchemnitz/inklin/inklin.glade
new file mode 100644
index 00000000..a9e8bdd9
--- /dev/null
+++ b/extensions/fablabchemnitz/inklin/inklin.glade
@@ -0,0 +1,421 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/extensions/fablabchemnitz/inklin/inklin.inx b/extensions/fablabchemnitz/inklin/inklin.inx
new file mode 100755
index 00000000..3ca8db5b
--- /dev/null
+++ b/extensions/fablabchemnitz/inklin/inklin.inx
@@ -0,0 +1,16 @@
+
+
+ Inklin
+ fablabchemnitz.de.inklin
+
+ path
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/extensions/fablabchemnitz/inklin/inklin.py b/extensions/fablabchemnitz/inklin/inklin.py
new file mode 100644
index 00000000..9a8dee3a
--- /dev/null
+++ b/extensions/fablabchemnitz/inklin/inklin.py
@@ -0,0 +1,251 @@
+#!/usr/bin/env python3
+#
+# Copyright (C) [2021] [Matt Cottam], [mpcottam@raincloud.co.uk]
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+
+##############################################################################
+# Inklin - a collection of things I 'ave an inkling might be useful to someone.
+##############################################################################
+
+
+import inkex
+from inkex import Group
+import random
+from lxml import etree
+import math
+import gi
+import io
+
+gi.require_version("Gtk", "3.0")
+from gi.repository import Gtk
+from gi.repository import Gtk, GdkPixbuf, Gdk
+from gi.repository.GdkPixbuf import Pixbuf, InterpType
+
+
+def group_wrapper(self, my_objects):
+ group_id = 'g' + str(random.randrange(100000, 1000000))
+
+ new_group = self.svg.add(Group.new('#' + group_id))
+ # inkex set, takes account of NS attribs etc
+ new_group.set('inkscape:groupmode', 'layer')
+ new_group.set('inkscape:label', 'My_Layer_' + group_id)
+
+ for my_object in my_objects:
+ new_group.append(my_object)
+
+ new_group.attrib['id'] = group_id
+
+
+def svg_arcs(cx, cy, radius, sectors, arc_radius1, arc_radius2, arc_x_rotate, arc_large_flag, arc_sweep_flag,
+ outer_circle_checkbutton_bool, point_circles_checkbutton_bool, numbering_checkbutton_bool):
+
+ x_start = cx
+ y_start = cy - radius
+
+ point_circles = ''
+ point_labels = ''
+
+ angle = 0
+
+ y_start = cy / 2 + (radius * (math.sin(angle)))
+ x_start = cx / 2 + (radius * (math.cos(angle)))
+
+ arcs = f'M {x_start} {y_start}'
+
+ for sector in range(1, sectors + 1):
+ angle = (sector * math.pi) / (sectors / 2)
+
+ y = cy / 2 + (radius * (math.sin(angle)))
+ x = cx / 2 + (radius * (math.cos(angle)))
+
+ x_start = x
+ y_start = y
+
+
+ # A rx ry x-axis-rotation large-arc-flag sweep-flag x y
+
+ arcs = arcs + f'A {arc_radius1} {arc_radius2} {arc_x_rotate} {arc_large_flag} {arc_sweep_flag} {x} {y} '
+
+ if not point_circles_checkbutton_bool:
+ point_circles = ''
+ else:
+ point_circles = point_circles + f''
+
+ if not numbering_checkbutton_bool:
+ None
+ else:
+ point_labels = point_labels + f'{sector}'
+
+ if not outer_circle_checkbutton_bool:
+ outline_circle = ''
+ else:
+ outline_circle = f''
+
+ # svg = f''
+
+ LoadSvg.master_svg = svg
+
+ gtk3_add_svg_image(svg)
+
+
+def gtk3_add_svg_image(svg):
+ loader = GdkPixbuf.PixbufLoader()
+ loader.write(svg.encode())
+ loader.close()
+ pixbuf = loader.get_pixbuf()
+
+ # pixbuf = pixbuf.scale_simple(500, 500, InterpType.BILINEAR)
+
+ LoadSvg.preview_image.set_from_pixbuf(pixbuf)
+
+ LoadSvg.preview_image.show_all()
+
+
+def init_arc():
+ radius = LoadSvg.builder.get_object('radius_gtk_scale').get_value()
+ arc_radius1 = LoadSvg.builder.get_object('arc_radius1_gtk_scale').get_value()
+ arc_radius2 = LoadSvg.builder.get_object('arc_radius2_gtk_scale').get_value()
+ arc_x_rotate_checkbutton1_bool = LoadSvg.builder.get_object('arc_x_rotate_gtk_checkbutton').get_active()
+ arc_radius_checkbutton1_bool = LoadSvg.builder.get_object('arc_radius1_gtk_checkbutton').get_active()
+ arc_radius_checkbutton2_bool = LoadSvg.builder.get_object('arc_radius2_gtk_checkbutton').get_active()
+ sectors = int(LoadSvg.builder.get_object('sectors_gtk_scale').get_value())
+ arc_large_flag = LoadSvg.builder.get_object('arc_large_flag_gtk_checkbutton').get_active()
+ arc_sweep_flag = LoadSvg.builder.get_object('arc_sweep_flag_gtk_checkbutton').get_active()
+
+ outer_circle_checkbutton_bool = LoadSvg.builder.get_object('outer_circle_gtk_checkbutton').get_active()
+ point_circles_checkbutton_bool = LoadSvg.builder.get_object('point_circles_gtk_checkbutton').get_active()
+ numbering_checkbutton_bool = LoadSvg.builder.get_object('numbering_gtk_checkbutton').get_active()
+
+ if not arc_radius_checkbutton1_bool:
+ arc_radius1 = radius
+ LoadSvg.builder.get_object('arc_radius1_gtk_scale').set_value(radius)
+
+ if not arc_radius_checkbutton2_bool:
+ arc_radius2 = radius
+ LoadSvg.builder.get_object('arc_radius2_gtk_scale').set_value(radius)
+
+ if not arc_x_rotate_checkbutton1_bool:
+ arc_x_rotate = 0
+ else:
+ arc_x_rotate = LoadSvg.builder.get_object('arc_x_rotate_gtk_scale').get_value()
+
+ if not arc_sweep_flag:
+ arc_sweep_flag = 0
+ else:
+ arc_sweep_flag = 1
+
+ if not arc_large_flag:
+ arc_large_flag = 0
+ else:
+ arc_large_flag = 1
+
+
+ svg_arcs(500, 500, radius, sectors, arc_radius1, arc_radius2, arc_x_rotate, arc_large_flag, arc_sweep_flag, outer_circle_checkbutton_bool, point_circles_checkbutton_bool, numbering_checkbutton_bool)
+
+ # inkex.errormsg(f'arc1 {arc_radius_checkbutton1_bool} arc2 {arc_radius_checkbutton2_bool}')
+
+
+########################################################
+# Gtk Section #
+########################################################
+
+class Handler:
+ def onDestroy(self, *args):
+ Gtk.main_quit()
+
+ def onButtonPressed(self, button):
+ print("Hello World!")
+
+ # def arcButtonPressed(self, button):
+ # svg_arcs(500, 500, 50, 8)
+ # test_print()
+
+ def onScaleChangeRadius(self, scale):
+ init_arc()
+
+ def onScaleChangeSides(self, scale):
+ init_arc()
+
+ def onScaleChangeArcRadius(self, scale):
+ init_arc()
+
+ def arcRadiusCheckbuttonChange(self, scale):
+ init_arc()
+
+ def onScaleChangeXRotate(self, scale):
+ init_arc()
+
+ def arcXRotateCheckbuttonChange(self, scale):
+ init_arc()
+
+ def arcSweepFlagCheckbuttonChange(self, scale):
+ init_arc()
+
+ def arcLargeFlagCheckbuttonChange(self, scale):
+ init_arc()
+
+ def outerCircleCheckbuttonChange(self, scale):
+ init_arc()
+
+ def pointCirclesCheckbuttonChange(self, scale):
+ init_arc()
+
+ def numberingCheckbuttonChange(self, scale):
+ init_arc()
+
+
+def run_gtk():
+ LoadSvg.builder = Gtk.Builder()
+ LoadSvg.builder.add_from_file("inklin.glade")
+ LoadSvg.builder.connect_signals(Handler())
+
+ LoadSvg.window = LoadSvg.builder.get_object("main_window")
+ LoadSvg.window.show_all()
+ LoadSvg.window.set_title('Inklin')
+
+ LoadSvg.preview_image = LoadSvg.builder.get_object('preview_image')
+
+ init_arc()
+
+ Gtk.main()
+
+
+########################################################
+# Inkex effect section #
+########################################################
+
+class LoadSvg(inkex.EffectExtension):
+
+ def effect(self):
+ run_gtk()
+
+ svg_etree = etree.fromstring(LoadSvg.master_svg)
+
+ group_wrapper(self, svg_etree)
+
+
+if __name__ == '__main__':
+ LoadSvg().run()
diff --git a/extensions/fablabchemnitz/simple_frame/simple_frame.inx b/extensions/fablabchemnitz/simple_frame/simple_frame.inx
new file mode 100644
index 00000000..1bac3c30
--- /dev/null
+++ b/extensions/fablabchemnitz/simple_frame/simple_frame.inx
@@ -0,0 +1,23 @@
+
+
+ Simple Frame
+ fablabchemnitz.de.simple_frame
+
+
+
+ 100.0
+ 150.0
+ 10.0
+ 20.0
+
+ all
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/extensions/fablabchemnitz/simple_frame/simple_frame.py b/extensions/fablabchemnitz/simple_frame/simple_frame.py
new file mode 100644
index 00000000..3514a33e
--- /dev/null
+++ b/extensions/fablabchemnitz/simple_frame/simple_frame.py
@@ -0,0 +1,272 @@
+#! /usr/bin/env python3
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+
+__version__ = "0.1"
+
+import inkex
+import math
+
+class GenerateFrame(inkex.EffectExtension):
+
+ def add_arguments(self, pars):
+ pars.add_argument("--width", type=float, default=100.0, help="Inner width")
+ pars.add_argument("--height", type=float, default=150.0, help="Inner height")
+ pars.add_argument("--depth", type=float, default=10.0, help="Frame depth")
+ pars.add_argument("--border", type=float, default=20.0, help="Frame border width")
+ pars.add_argument("--unit", default="mm", help="Unit of measure")
+
+ def effect(self):
+ center_x = self.svg.unittouu(self.document.getroot().get('width'))/2
+ center_y = self.svg.unittouu(self.document.getroot().get('height'))/2
+
+ _width = self.svg.unittouu(str(self.options.width) + self.options.unit)
+ _height = self.svg.unittouu(str(self.options.height) + self.options.unit)
+ _depth = self.svg.unittouu(str(self.options.depth) + self.options.unit)
+
+ _border = self.svg.unittouu(str(self.options.border) + self.options.unit)
+ _border_hyp = math.sqrt(2 * _border * _border)
+
+ id_frame = self.svg.get_unique_id('papercraft-frame')
+ group = self.svg.get_current_layer().add(inkex.Group(id=id_frame))
+ id_score = self.svg.get_unique_id('papercraft-scores')
+ score_group = group.add(inkex.Group(id=id_score))
+ cut_line = {'stroke': '#FF0000', 'fill': 'none', 'stroke-width': str(self.svg.unittouu('1px'))}
+ safe_line = {'stroke': '#0000FF', 'fill': 'none', 'stroke-width': str(self.svg.unittouu('1px'))}
+ valley_score_line = {'stroke': '#00FF00', 'fill': 'none', 'stroke-width': str(self.svg.unittouu('1px')), 'stroke-dasharray': '1.05999995,0.52999997,0.26499999,0.52999997'}
+ mountain_score_line = {'stroke': '#00FF00', 'fill': 'none', 'stroke-width': str(self.svg.unittouu('1px')), 'stroke-dasharray': '5,5'}
+
+ # line.path --> M = absolute coordinates
+ # line.path --> l = draws a line from the current point to the specified relative coordinates
+ # line.path --> c = draws a beizer curve from the current point to the specified coordinates
+ # line.path --> q = draw an arc from the current point to the specified coordinates using a point as reference
+ # line.path --> Z = close path
+
+ # outer profile (cut)
+ line = group.add(inkex.PathElement(id=id_frame + '-outer-profile'))
+ line.path = [
+ # top-left
+ ['M', [0, 2 * (_border+_depth)]],
+ ['l', [_border+_depth+_border,0]],
+ ['l', [0,-_depth]],
+ ['l', [_depth,0]],
+ ['l', [_border,-_border]],
+ ['l', [0,-_depth]],
+ ['l', [-_border,-_border]],
+ ['l', [_width+2*_border,0]],
+
+ # top-right
+ ['l', [-_border,_border]],
+ ['l', [0,_depth]],
+ ['l', [_border,_border]],
+ ['l', [_depth,0]],
+ ['l', [0,_depth]],
+ ['l', [_border+_depth+_border,0]],
+ ['l', [0,_height+2*_border]],
+
+ # bottom-right
+ ['l', [-(_border+_depth+_border),0]],
+ ['l', [0,_depth]],
+ ['l', [-_depth,0]],
+ ['l', [-_border,_border]],
+ ['l', [0,_depth]],
+ ['l', [_border,_border]],
+ ['l', [-(_width+2*_border),0]],
+
+ # bottom-left
+ ['l', [_border,-_border]],
+ ['l', [0,-_depth]],
+ ['l', [-_border,-_border]],
+ ['l', [-_depth,0]],
+ ['l', [0,-_depth]],
+ ['l', [-(_border+_depth+_border),0]],
+
+ ['Z', []]
+ ]
+ line.style = cut_line
+
+ line = group.add(inkex.PathElement(id=id_frame + '-inner-profile'))
+ line.path = [
+ ['M', [2*_depth+3*_border, 2*_depth+3*_border]],
+ ['l', [_width,0]],
+ ['l', [0,_height]],
+ ['l', [-_width,0]],
+ ['Z', []]
+ ]
+ line.style = safe_line
+
+ # score lines -- vertical
+ _top_edge = 2 *_border+2*_depth
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-1'))
+ line.path = [
+ ['M', [_border, _top_edge]],
+ ['l', [0, _height+2*_border]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-2'))
+ line.path = [
+ ['M', [_border+_depth, _top_edge]],
+ ['l', [0, _height+2*_border]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-3'))
+ line.path = [
+ ['M', [_border+_depth+_border, _top_edge]],
+ ['l', [0, _height+2*_border]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-4'))
+ line.path = [
+ ['M', [2*(_border+_depth), _top_edge-_depth]],
+ ['l', [0, _height+2*_border+2*_depth]],
+ ]
+ line.style = valley_score_line
+
+ _right_side = _width+4*_border+2*_depth
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-5'))
+ line.path = [
+ ['M', [_right_side, _top_edge-_depth]],
+ ['l', [0, _height+2*_border+2*_depth]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-6'))
+ line.path = [
+ ['M', [_right_side+_depth, _top_edge]],
+ ['l', [0, _height+2*_border]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-7'))
+ line.path = [
+ ['M', [_right_side+_border+_depth, _top_edge]],
+ ['l', [0, _height+2*_border]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-8'))
+ line.path = [
+ ['M', [_right_side+_border+_depth+_depth, _top_edge]],
+ ['l', [0, _height+2*_border]],
+ ]
+ line.style = valley_score_line
+
+ # corners
+ _o1_x = 2*_border + _depth
+ _o1_y = _o1_x + _depth
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-22'))
+ line.path = [
+ ['M', [_o1_x+_depth, _o1_y]],
+ ['l', [-_depth,-_depth]],
+ ]
+ line.style = mountain_score_line
+
+ _o2_x = _o1_x + _width + 2*_border + 2*_depth
+ _o2_y = _o1_y
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-24'))
+ line.path = [
+ ['M', [_o2_x-_depth, _o2_y]],
+ ['l', [_depth,-_depth]],
+ ]
+ line.style = mountain_score_line
+
+ _o3_x = _o1_x
+ _o3_y = _o1_y + _height + 2*_border
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-26'))
+ line.path = [
+ ['M', [_o3_x + _depth, _o3_y]],
+ ['l', [-_depth,_depth]],
+ ]
+ line.style = mountain_score_line
+
+ _o4_x = _o2_x
+ _o4_y = _o3_y
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-28'))
+ line.path = [
+ ['M', [_o4_x - _depth, _o4_y]],
+ ['l', [_depth,_depth]],
+ ]
+ line.style = mountain_score_line
+
+ # horizontals
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-31'))
+ line.path = [
+ ['M', [2*_border+_depth, 2*_border+2*_depth]],
+ ['l', [_width+2*_border+2*_depth,0]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-32'))
+ line.path = [
+ ['M', [2*_border+2*_depth, 2*_border+_depth]],
+ ['l', [_width+2*_border,0]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-33'))
+ line.path = [
+ ['M', [3*_border+2*_depth, _border+_depth]],
+ ['l', [_width,0]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-34'))
+ line.path = [
+ ['M', [3*_border+2*_depth, _border]],
+ ['l', [_width,0]],
+ ]
+ line.style = valley_score_line
+
+ _bottom = _height + 4*_border+2*_depth
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-35'))
+ line.path = [
+ ['M', [2*_border+_depth, _bottom]],
+ ['l', [_width+2*_border+2*_depth,0]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-36'))
+ line.path = [
+ ['M', [2*_border+2*_depth, _bottom+_depth]],
+ ['l', [_width+2*_border,0]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-37'))
+ line.path = [
+ ['M', [3*_border+2*_depth, _bottom+_border+_depth]],
+ ['l', [_width,0]],
+ ]
+ line.style = valley_score_line
+
+ line = score_group.add(inkex.PathElement(id=id_score + '-score-38'))
+ line.path = [
+ ['M', [3*_border+2*_depth, _bottom+_border+2*_depth]],
+ ['l', [_width,0]],
+ ]
+ line.style = valley_score_line
+
+if __name__ == '__main__':
+ GenerateFrame().run()
\ No newline at end of file
diff --git a/extensions/fablabchemnitz/table_support/table_edit_columns.inx b/extensions/fablabchemnitz/table_support/table_edit_columns.inx
index be1890d3..6624b608 100644
--- a/extensions/fablabchemnitz/table_support/table_edit_columns.inx
+++ b/extensions/fablabchemnitz/table_support/table_edit_columns.inx
@@ -3,7 +3,7 @@
Selected columns width
fablabchemnitz.de.table_edit_columns
10mm
-
+
all
diff --git a/extensions/fablabchemnitz/table_support/table_edit_rows.inx b/extensions/fablabchemnitz/table_support/table_edit_rows.inx
index 22a7ae3c..58c179f0 100644
--- a/extensions/fablabchemnitz/table_support/table_edit_rows.inx
+++ b/extensions/fablabchemnitz/table_support/table_edit_rows.inx
@@ -3,7 +3,7 @@
Selected rows height
fablabchemnitz.de.table_edit_rows
10mm
-
+
all
diff --git a/extensions/fablabchemnitz/table_support/table_edit_table.inx b/extensions/fablabchemnitz/table_support/table_edit_table.inx
index bdea4b2e..4c9ac43c 100644
--- a/extensions/fablabchemnitz/table_support/table_edit_table.inx
+++ b/extensions/fablabchemnitz/table_support/table_edit_table.inx
@@ -2,10 +2,9 @@
Selected table width and height
fablabchemnitz.de.table_edit_table
- table_edit_table.py
150mm
60mm
-
+
all