diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/auto_satin.inx | 4 | ||||
| -rw-r--r-- | templates/break_apart.inx | 17 | ||||
| -rw-r--r-- | templates/convert_to_satin.inx | 4 | ||||
| -rw-r--r-- | templates/cut_satin.inx | 4 | ||||
| -rw-r--r-- | templates/embroider.inx | 4 | ||||
| -rw-r--r-- | templates/flip.inx | 4 | ||||
| -rw-r--r-- | templates/global_commands.inx | 4 | ||||
| -rw-r--r-- | templates/import_threadlist.inx | 27 | ||||
| -rw-r--r-- | templates/input.inx | 4 | ||||
| -rw-r--r-- | templates/install.inx | 4 | ||||
| -rw-r--r-- | templates/layer_commands.inx | 4 | ||||
| -rw-r--r-- | templates/lettering.inx | 4 | ||||
| -rw-r--r-- | templates/object_commands.inx | 4 | ||||
| -rw-r--r-- | templates/output.inx | 4 | ||||
| -rw-r--r-- | templates/output_params_txt.xml | 30 | ||||
| -rw-r--r-- | templates/params.inx | 4 | ||||
| -rw-r--r-- | templates/print.inx | 4 | ||||
| -rw-r--r-- | templates/remove_embroidery_settings.inx | 4 | ||||
| -rw-r--r-- | templates/simulate.inx | 4 | ||||
| -rw-r--r-- | templates/stitch_plan_preview.inx | 15 | ||||
| -rw-r--r-- | templates/troubleshoot.inx | 4 | ||||
| -rw-r--r-- | templates/zip.inx | 10 |
22 files changed, 101 insertions, 66 deletions
diff --git a/templates/auto_satin.inx b/templates/auto_satin.inx index 60ca29cd..673ac51e 100644 --- a/templates/auto_satin.inx +++ b/templates/auto_satin.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Auto-Route Satin Columns{% endtrans %}</name> <id>org.inkstitch.auto_satin.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="trim" type="boolean" _gui-text="{% trans %}Trim jump stitches{% endtrans %}">true</param> <param name="preserve_order" type="boolean" _gui-text="{% trans %}Preserve order of satin columns{% endtrans %}">false</param> <param name="extension" type="string" gui-hidden="true">auto_satin</param> @@ -16,6 +14,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/break_apart.inx b/templates/break_apart.inx new file mode 100644 index 00000000..2580ddc3 --- /dev/null +++ b/templates/break_apart.inx @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>{% trans %}Break Apart and Retain Holes{% endtrans %}</name> + <id>org.inkstitch.break_apart.{{ locale }}</id> + <param name="extension" type="string" gui-hidden="true">break_apart</param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch"> + <submenu name="{% trans %}Fill Tools{% endtrans %}" /> + </submenu> + </effects-menu> + </effect> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/convert_to_satin.inx b/templates/convert_to_satin.inx index d0f87911..80f0b678 100644 --- a/templates/convert_to_satin.inx +++ b/templates/convert_to_satin.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Convert Line to Satin{% endtrans %}</name> <id>org.inkstitch.convert_to_satin.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="extension" type="string" gui-hidden="true">convert_to_satin</param> <effect> <object-type>all</object-type> @@ -14,6 +12,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/cut_satin.inx b/templates/cut_satin.inx index c96d9092..b780543a 100644 --- a/templates/cut_satin.inx +++ b/templates/cut_satin.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Cut Satin Column{% endtrans %}</name> <id>org.inkstitch.cut_satin.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="extension" type="string" gui-hidden="true">cut_satin</param> <effect> <object-type>all</object-type> @@ -14,6 +12,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/embroider.inx b/templates/embroider.inx index f030c8d6..ea062aa4 100644 --- a/templates/embroider.inx +++ b/templates/embroider.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Embroider{% endtrans %}</name> <id>org.inkstitch.embroider.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="collapse_len_mm" type="float" min="0.0" max="10.0" _gui-text="{% trans %}Collapse length (mm){% endtrans %}" _gui-description="{% trans %}Jump stitches smaller than this will be treated as normal stitches.{% endtrans %}">3.0</param> <param name="hide_layers" type="boolean" _gui-text="{% trans %}Hide other layers{% endtrans %}" _gui-description="{% trans %}Hide all other top-level layers when the embroidery layer is generated, in order to make stitching discernible.{% endtrans %}">true</param> <param name="output_format" type="optiongroup" _gui-text="{% trans %}Output file format{% endtrans %}" appearance="minimal"> @@ -23,6 +21,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/flip.inx b/templates/flip.inx index 763cf7cc..29b11457 100644 --- a/templates/flip.inx +++ b/templates/flip.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Flip Satin Column Rails{% endtrans %}</name> <id>org.inkstitch.flip_satins.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="extension" type="string" gui-hidden="true">flip</param> <effect> <object-type>all</object-type> @@ -14,6 +12,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/global_commands.inx b/templates/global_commands.inx index 24d42c90..d37e2e41 100644 --- a/templates/global_commands.inx +++ b/templates/global_commands.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Add Commands{% endtrans %}</name> <id>org.inkstitch.global_commands.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="description" type="description">{% trans %}These commands affect the entire embroidery design.{% endtrans %}</param> {% for command, description in global_commands %} <param name="{{ command }}" type="boolean" _gui-text="{{ _(description) }}">false</param> @@ -19,6 +17,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/import_threadlist.inx b/templates/import_threadlist.inx new file mode 100644 index 00000000..081a881a --- /dev/null +++ b/templates/import_threadlist.inx @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>{% trans %}Import Threadlist{% endtrans %}</name> + <id>org.inkstitch.import_threadlist.{{ locale }}</id> + <param name="extension" type="string" gui-hidden="true">import_threadlist</param> + <!-- This doesn't work at the moment. It's an Inkstitch 1.0 feature, but would be desireable. + <param type="path" name="filepath" gui-text="{{ _('Choose file') }}" mode="file" filetypes="txt"/> --> + <param name="filepath" type="string" _gui-text="{{ _('File Path') }}">{{ _("Enter path to file") }}</param> + <param name="method" type="optiongroup" _gui-text="Choose method"> + <option value="1">Import Ink/Stitch threadlist</option> + <option value="2">Import other threadlist*</option> + </param> + <param name="palette" type="enum" _gui-text="*Choose color palette"> + {%- for item in threadcatalog %} + <item value="{{ item }}">{{ item }}</item> + {%- endfor %} + </param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" /> + </effects-menu> + </effect> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/input.inx b/templates/input.inx index 6e810a70..5f4a4610 100644 --- a/templates/input.inx +++ b/templates/input.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{{ format | upper }} file input</name> <id>org.inkstitch.input.{{ format }}.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <input> <extension>.{{ format }}</extension> <mimetype>application/x-embroidery-{{ format }}</mimetype> @@ -12,6 +10,6 @@ </input> <param name="extension" type="string" gui-hidden="true">input</param> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/install.inx b/templates/install.inx index adfffd9d..0ab22b0b 100644 --- a/templates/install.inx +++ b/templates/install.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Install add-ons for Inkscape{% endtrans %}</name> <id>org.inkstitch.install.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="extension" type="string" gui-hidden="true">install</param> <effect> <object-type>all</object-type> @@ -12,6 +10,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/layer_commands.inx b/templates/layer_commands.inx index 6b978e43..249d536e 100644 --- a/templates/layer_commands.inx +++ b/templates/layer_commands.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Add Layer Commands{% endtrans %}</name> <id>org.inkstitch.layer_commands.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="description" type="description">{% trans %}Commands will be added to the currently-selected layer.{% endtrans %}</param> {% for command, description in layer_commands %} <param name="{{ command }}" type="boolean" _gui-text="{{ _(description) }}">false</param> @@ -18,6 +16,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/lettering.inx b/templates/lettering.inx index 96e90ca0..65eee8a1 100644 --- a/templates/lettering.inx +++ b/templates/lettering.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Lettering{% endtrans %}</name> <id>org.inkstitch.lettering.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="extension" type="string" gui-hidden="true">lettering</param> <effect> <object-type>all</object-type> @@ -12,6 +10,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/object_commands.inx b/templates/object_commands.inx index 1b1c40d9..affe7584 100644 --- a/templates/object_commands.inx +++ b/templates/object_commands.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Attach Commands to Selected Objects{% endtrans %}</name> <id>org.inkstitch.commands.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> {% for command, description in object_commands %} <param name="{{ command }}" type="boolean" _gui-text="{{ _(description ) }}">false</param> {% endfor %} @@ -17,6 +15,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/output.inx b/templates/output.inx index 6899c5d3..ffff4be9 100644 --- a/templates/output.inx +++ b/templates/output.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{{ format | upper }} file output</name> <id>org.inkstitch.output.{{ format }}.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <output> <extension>.{{ format }}</extension> <mimetype>application/x-embroidery-{{ format }}</mimetype> @@ -16,6 +14,6 @@ {% set params = "output_params_" + format + ".xml" %} {% include params ignore missing %} <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/output_params_txt.xml b/templates/output_params_txt.xml index 451a6ca9..22bf3594 100644 --- a/templates/output_params_txt.xml +++ b/templates/output_params_txt.xml @@ -1,11 +1,21 @@ {# these parameters are for g-code files (*.txt) #} - <param name="laser_mode" type="boolean" gui-text="{{ _("laser mode") }}" gui-description="{{ _("Laser mode (generate g-code for grbl laser mode)") }}">false</param> - <param name="dynamic_laser_power" type="boolean" gui-text="{{ _("dynamic laser power") }}" gui-description="{{ _("Use Grbl's M4 dynamic laser power mode. Ensures consistent laser cutting power regardless of motor speed. Only for PWM-capable lasers.") }}" min="0.0" max="5.0">true</param> - <param name="laser_warm_up_time" type="float" gui-text="{{ _("laser warm-up time") }}" gui-description="{{ _("When turning on the laser, wait this many seconds for laser to warm up (G4 command)") }}">0.0</param> - <param name="flip_x" type="boolean" gui-text="{{ _("negate X coordinate values") }}" gui-description="{{ _("Negate x coordinates") }}">false</param> - <param name="flip_y" type="boolean" gui-text="{{ _("negate Y coordinate values") }}" gui-description="{{ _("Negate y coordinates") }}">false</param> - <param name="stitch_z_travel" type="float" gui-text="{{ _("Z travel per stitch") }}" gui-description="{{ _("increment z coordinate by this amount per stitch") }}">5.0</param> - <param name="spindle_speed" type="int" gui-text="{{ _("spindle speed") }}" gui-description="{{ _("spindle speed (laser power for laser mode, set to -1 to omit)") }}" min="-1" max="1000000000">-1</param> - <param name="min_spindle_speed" type="int" gui-text="{{ _("min spindle speed") }}" gui-description="{{ _("minimum spindle speed value (grbl $31 setting)") }}" min="-1" max="1000000000">-1</param> - <param name="max_spindle_speed" type="int" gui-text="{{ _("max spindle speed") }}" gui-description="{{ _("minimum spindle speed value (grbl $30 setting)") }}" min="-1" max="1000000000">-1</param> - <param name="feed_rate" type="int" gui-description="{{ _("feed rate (in mm/min, set to -1 to omit)")}}" min="-1" max="1000000000">-1</param>
\ No newline at end of file +<param type="notebook" name="gcode-settings"> + <page name="embroidery" gui-text="Coordinate Settings"> + <param name="flip_x" type="boolean" gui-text="{{ _("negate X coordinate values") }}" gui-description="{{ _("Negate x coordinates") }}">false</param> + <param name="flip_y" type="boolean" gui-text="{{ _("negate Y coordinate values") }}" gui-description="{{ _("Negate y coordinates") }}">false</param> + <param type="optiongroup" name="alternate_z" gui-text="{{ _("Z coordinate value") }}" gui-description="{{ _("Either alternate Z value between 0 and 1 or travel custom value.") }}"> + <option value="true">{{ _("alternate Z value") }}</option> + <option value="false">{{ _("Z travel per stitch") }}</option> + </param> + <param name="stitch_z_travel" type="float" gui-text="{{ _("Z travel per stitch") }}" gui-description="{{ _('increment z coordinate by this amount per stitch if "Z travel per stitch" is enabled') }}">5.0</param> + </page> + <page name="laser" gui-text="Laser Settings"> + <param name="laser_mode" type="boolean" gui-text="{{ _("laser mode") }}" gui-description="{{ _("Laser mode (generate g-code for grbl laser mode)") }}">false</param> + <param name="dynamic_laser_power" type="boolean" gui-text="{{ _("dynamic laser power") }}" gui-description="{{ _("Use Grbl's M4 dynamic laser power mode. Ensures consistent laser cutting power regardless of motor speed. Only for PWM-capable lasers.") }}" min="0.0" max="5.0">true</param> + <param name="laser_warm_up_time" type="float" gui-text="{{ _("laser warm-up time") }}" gui-description="{{ _("When turning on the laser, wait this many seconds for laser to warm up (G4 command)") }}">0.0</param> + <param name="spindle_speed" type="int" gui-text="{{ _("spindle speed") }}" gui-description="{{ _("spindle speed (laser power for laser mode, set to -1 to omit)") }}" min="-1" max="1000000000">-1</param> + <param name="min_spindle_speed" type="int" gui-text="{{ _("min spindle speed") }}" gui-description="{{ _("minimum spindle speed value (grbl $31 setting)") }}" min="-1" max="1000000000">-1</param> + <param name="max_spindle_speed" type="int" gui-text="{{ _("max spindle speed") }}" gui-description="{{ _("minimum spindle speed value (grbl $30 setting)") }}" min="-1" max="1000000000">-1</param> + <param name="feed_rate" type="int" gui-description="{{ _("feed rate (in mm/min, set to -1 to omit)")}}" min="-1" max="1000000000">-1</param> + </page> +</param> diff --git a/templates/params.inx b/templates/params.inx index 9f60f4ae..a2dc89a3 100644 --- a/templates/params.inx +++ b/templates/params.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Params{% endtrans %}</name> <id>org.inkstitch.params.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="extension" type="string" gui-hidden="true">params</param> <effect> <object-type>all</object-type> @@ -12,6 +10,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/print.inx b/templates/print.inx index 61385129..2aec826b 100644 --- a/templates/print.inx +++ b/templates/print.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Print / Realistic Preview{% endtrans %}</name> <id>org.inkstitch.print.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="extension" type="string" gui-hidden="true">print</param> <effect> <object-type>all</object-type> @@ -12,6 +10,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/remove_embroidery_settings.inx b/templates/remove_embroidery_settings.inx index d070f34f..44b34ded 100644 --- a/templates/remove_embroidery_settings.inx +++ b/templates/remove_embroidery_settings.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Remove embroidery settings{% endtrans %}</name> <id>org.inkstitch.remove_embroidery_settings.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="description" type="description">{% trans %}Use this extension to remove the information Ink/Stitch has stored in your document. This can be especially useful if you copy and paste objects from an embroidery design into another document.{% endtrans %}</param> <param name="del_params" type="boolean" _gui-text="{% trans %}Remove Params{% endtrans %}" _gui-description="{% trans %}Removes params from selected objects or all objects if nothing is selected.{% endtrans %}">true</param> @@ -19,6 +17,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/simulate.inx b/templates/simulate.inx index 90f3717c..09f29d38 100644 --- a/templates/simulate.inx +++ b/templates/simulate.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Simulate{% endtrans %}</name> <id>org.inkstitch.simulate.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="extension" type="string" gui-hidden="true">simulate</param> <effect> <object-type>all</object-type> @@ -12,6 +10,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/stitch_plan_preview.inx b/templates/stitch_plan_preview.inx new file mode 100644 index 00000000..e047af10 --- /dev/null +++ b/templates/stitch_plan_preview.inx @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>{% trans %}Stitch Plan Preview{% endtrans %}</name> + <id>org.inkstitch.stitch_plan_preview.{{ locale }}</id> + <param name="extension" type="string" gui-hidden="true">stitch_plan_preview</param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" /> + </effects-menu> + </effect> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/troubleshoot.inx b/templates/troubleshoot.inx index 6931fb39..64f4ebb0 100644 --- a/templates/troubleshoot.inx +++ b/templates/troubleshoot.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{% trans %}Troubleshoot Objects{% endtrans %}</name> <id>org.inkstitch.troubleshoot.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <param name="extension" type="string" gui-hidden="true">troubleshoot</param> <effect> <object-type>all</object-type> @@ -13,6 +11,6 @@ </effects-menu> </effect> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> diff --git a/templates/zip.inx b/templates/zip.inx index 952123c9..42623019 100644 --- a/templates/zip.inx +++ b/templates/zip.inx @@ -2,8 +2,6 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>embroidery ZIP file output</name> <id>org.inkstitch.output.zip.{{ locale }}</id> - <dependency type="executable" location="extensions">inkstitch.py</dependency> - <dependency type="executable" location="extensions">inkex.py</dependency> <output> <extension>.zip</extension> <mimetype>application/zip</mimetype> @@ -11,11 +9,13 @@ <_filetypetooltip>{{ _("Create a ZIP with multiple embroidery file formats using Ink/Stitch") }}</_filetypetooltip> <dataloss>true</dataloss> </output> - {% for format, description in formats %} + {%- for format, description in formats %} <param name="format-{{ format }}" type="boolean" _gui-text=".{{ format | upper }}: {{ _(description) }}">false</param> - {% endfor %} + {%- endfor %} + <param name="format-svg" type="boolean" _gui-text=".SVG: {{ _("Scalable Vector Graphic") }}">false</param> + <param name="format-threadlist" type="boolean" _gui-text=".TXT: {{ _("Threadlist") }}">false</param> <param name="extension" type="string" gui-hidden="true">zip</param> <script> - <command reldir="extensions" interpreter="python">inkstitch.py</command> + {{ command_tag | safe }} </script> </inkscape-extension> |
