summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/about.xml28
-rw-r--r--templates/auto_satin.xml (renamed from templates/auto_satin.inx)0
-rw-r--r--templates/break_apart.xml (renamed from templates/break_apart.inx)0
-rw-r--r--templates/cleanup.xml (renamed from templates/cleanup.inx)0
-rw-r--r--templates/convert_to_satin.xml (renamed from templates/convert_to_satin.inx)0
-rw-r--r--templates/cut_satin.xml (renamed from templates/cut_satin.inx)0
-rw-r--r--templates/embroider.inx28
-rw-r--r--templates/embroider.xml18
-rw-r--r--templates/embroider_settings.xml21
-rw-r--r--templates/flip.xml (renamed from templates/flip.inx)0
-rw-r--r--templates/global_commands.xml (renamed from templates/global_commands.inx)0
-rw-r--r--templates/import_threadlist.xml (renamed from templates/import_threadlist.inx)4
-rw-r--r--templates/input.xml (renamed from templates/input.inx)0
-rw-r--r--templates/install.xml (renamed from templates/install.inx)2
-rw-r--r--templates/layer_commands.xml (renamed from templates/layer_commands.inx)0
-rw-r--r--templates/lettering.xml (renamed from templates/lettering.inx)2
-rw-r--r--templates/lettering_custom_font_dir.xml26
-rw-r--r--templates/lettering_generate_json.xml46
-rw-r--r--templates/lettering_remove_kerning.xml28
-rw-r--r--templates/object_commands.xml (renamed from templates/object_commands.inx)0
-rw-r--r--templates/output.xml (renamed from templates/output.inx)2
-rw-r--r--templates/output_params_txt.xml2
-rw-r--r--templates/params.xml (renamed from templates/params.inx)2
-rw-r--r--templates/print.xml (renamed from templates/print.inx)2
-rw-r--r--templates/remove_embroidery_settings.xml (renamed from templates/remove_embroidery_settings.inx)0
-rw-r--r--templates/reorder.xml15
-rw-r--r--templates/simulator.xml (renamed from templates/simulator.inx)2
-rw-r--r--templates/stitch_plan_preview.xml (renamed from templates/stitch_plan_preview.inx)0
-rw-r--r--templates/troubleshoot.xml (renamed from templates/troubleshoot.inx)0
-rw-r--r--templates/zip.xml (renamed from templates/zip.inx)4
30 files changed, 193 insertions, 39 deletions
diff --git a/templates/about.xml b/templates/about.xml
new file mode 100644
index 00000000..68609d95
--- /dev/null
+++ b/templates/about.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>{% trans %}About{% endtrans %}</name>
+ <id>org.inkstitch.about.{{ locale }}</id>
+ <param type="notebook" name="about-tabs" indent="1">
+ <page name="about" gui-text="{% trans %}About{% endtrans %}">
+ <image>{{ image_path }}inkstitch_colour_logo.svg</image>
+ <label indent="1" appearance="header">Ink/Stitch - {{ inkstitch_version }}</label>
+ <separator/>
+ <label indent="1">{% trans %}An open-source machine embroidery design platform based on Inkscape.{% endtrans %}</label>
+ <separator/>
+ <spacer/>
+ <label indent="1" appearance="url">https://inkstitch.org</label>
+ </page>
+ <page name="license" gui-text="{%trans %}License{% endtrans %}">
+ <param name="license-text" type="description" xml:space="preserve">
+{{ inkstitch_license }}
+ </param>
+ </page>
+ </param>
+ <effect needs-live-preview="false" needs-document="false">
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Ink/Stitch">
+ </submenu>
+ </effects-menu>
+ </effect>
+</inkscape-extension>
diff --git a/templates/auto_satin.inx b/templates/auto_satin.xml
index 673ac51e..673ac51e 100644
--- a/templates/auto_satin.inx
+++ b/templates/auto_satin.xml
diff --git a/templates/break_apart.inx b/templates/break_apart.xml
index 83333ad1..83333ad1 100644
--- a/templates/break_apart.inx
+++ b/templates/break_apart.xml
diff --git a/templates/cleanup.inx b/templates/cleanup.xml
index 4cf11ce1..4cf11ce1 100644
--- a/templates/cleanup.inx
+++ b/templates/cleanup.xml
diff --git a/templates/convert_to_satin.inx b/templates/convert_to_satin.xml
index 80f0b678..80f0b678 100644
--- a/templates/convert_to_satin.inx
+++ b/templates/convert_to_satin.xml
diff --git a/templates/cut_satin.inx b/templates/cut_satin.xml
index b780543a..b780543a 100644
--- a/templates/cut_satin.inx
+++ b/templates/cut_satin.xml
diff --git a/templates/embroider.inx b/templates/embroider.inx
deleted file mode 100644
index b79c2f5f..00000000
--- a/templates/embroider.inx
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <name>{% trans %}Embroider{% endtrans %}</name>
- <id>org.inkstitch.embroider.{{ locale }}</id>
- <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">
- {% for format, description in formats %}
- <_option value="{{ format }}">{{ _(description) }} ({{ format | upper }})</_option>
- {% endfor %}
- {% for format, description in debug_formats %}
- <_option value="{{ format }}">{{ _(description) }} ({{ format | upper }}) [{{ _("DEBUG") }}]</_option>
- {% endfor %}
- </param>
- <param name="path" type="string" _gui-text="{% trans %}Directory{% endtrans %}" _gui-description="{% trans %}Leave empty to save the output in Inkscape's extension directory.{% endtrans %}"></param>
- <param name="extension" type="string" gui-hidden="true">embroider</param>
- <effect>
- <object-type>all</object-type>
- <effects-menu>
- <submenu name="Ink/Stitch">
- <submenu name="{% trans %}Visualise and Export{% endtrans %}" />
- </submenu>
- </effects-menu>
- </effect>
- <script>
- {{ command_tag | safe }}
- </script>
-</inkscape-extension>
diff --git a/templates/embroider.xml b/templates/embroider.xml
new file mode 100644
index 00000000..ff56ac7d
--- /dev/null
+++ b/templates/embroider.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>{% trans %}Embroider{% endtrans %}</name>
+ <id>org.inkstitch.embroider.{{ locale }}</id>
+ <param name="title" type="description" appearance="header">{% trans %}Create a stitch file{% endtrans %}</param>
+ <param name="howto" type="description">{% trans %}Save your embroidery file through | File > Save a Copy ... |{% endtrans %}</param>
+ <param name="howto_detail" type="description">{% trans %}Choose from listed embroidery file formats and save.{% endtrans %}</param>
+ <spacer />
+ <param name="info_zip" type="description">{% trans %}Multiple file formats can be saved by choosing the zip file format.{% endtrans %}</param>
+ <effect needs-live-preview="false" needs-document="false">
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}Visualise and Export{% endtrans %}" />
+ </submenu>
+ </effects-menu>
+ </effect>
+</inkscape-extension>
diff --git a/templates/embroider_settings.xml b/templates/embroider_settings.xml
new file mode 100644
index 00000000..51ce9d16
--- /dev/null
+++ b/templates/embroider_settings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>{% trans %}Settings{% endtrans %}</name>
+ <id>org.inkstitch.embroider_settings.{{ locale }}</id>
+ <param name="extension" type="string" gui-hidden="true">embroider_settings</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Ink/Stitch" />
+ </effects-menu>
+ </effect>
+ <param name="output_settings" type="description" appearance="header">
+ {% trans %}Output Settings{% endtrans %}
+ </param>
+ <param name="collapse_len_mm" type="float" precision="1" min="0" max="10"
+ _gui-text="{% trans %}Collapse length (mm){% endtrans %}"
+ _gui-description="{% trans %}Jump stitches smaller than this will be treated as normal stitches.{% endtrans %}">3</param>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>
diff --git a/templates/flip.inx b/templates/flip.xml
index 29b11457..29b11457 100644
--- a/templates/flip.inx
+++ b/templates/flip.xml
diff --git a/templates/global_commands.inx b/templates/global_commands.xml
index d37e2e41..d37e2e41 100644
--- a/templates/global_commands.inx
+++ b/templates/global_commands.xml
diff --git a/templates/import_threadlist.inx b/templates/import_threadlist.xml
index 081a881a..5db963b6 100644
--- a/templates/import_threadlist.inx
+++ b/templates/import_threadlist.xml
@@ -3,9 +3,7 @@
<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="filepath" type="path" gui-text="{{ _('Choose file') }}" mode="file" filetypes="txt"/>
<param name="method" type="optiongroup" _gui-text="Choose method">
<option value="1">Import Ink/Stitch threadlist</option>
<option value="2">Import other threadlist*</option>
diff --git a/templates/input.inx b/templates/input.xml
index 5f4a4610..5f4a4610 100644
--- a/templates/input.inx
+++ b/templates/input.xml
diff --git a/templates/install.inx b/templates/install.xml
index ffcb9b7b..764027b8 100644
--- a/templates/install.inx
+++ b/templates/install.xml
@@ -3,7 +3,7 @@
<name>{% trans %}Install thread color palettes for Inkscape{% endtrans %}</name>
<id>org.inkstitch.install.{{ locale }}</id>
<param name="extension" type="string" gui-hidden="true">install</param>
- <effect>
+ <effect implements-custom-gui="true">
<object-type>all</object-type>
<effects-menu>
<submenu name="Ink/Stitch" />
diff --git a/templates/layer_commands.inx b/templates/layer_commands.xml
index 249d536e..249d536e 100644
--- a/templates/layer_commands.inx
+++ b/templates/layer_commands.xml
diff --git a/templates/lettering.inx b/templates/lettering.xml
index 65eee8a1..6dea9e93 100644
--- a/templates/lettering.inx
+++ b/templates/lettering.xml
@@ -3,7 +3,7 @@
<name>{% trans %}Lettering{% endtrans %}</name>
<id>org.inkstitch.lettering.{{ locale }}</id>
<param name="extension" type="string" gui-hidden="true">lettering</param>
- <effect>
+ <effect implements-custom-gui="true">
<object-type>all</object-type>
<effects-menu>
<submenu name="Ink/Stitch" />
diff --git a/templates/lettering_custom_font_dir.xml b/templates/lettering_custom_font_dir.xml
new file mode 100644
index 00000000..b08c37d6
--- /dev/null
+++ b/templates/lettering_custom_font_dir.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>{% trans %}Custom font directory{% endtrans %}</name>
+ <id>org.inkstitch.lettering_custom_font_dir.{{ locale }}</id>
+ <param name="extension" type="string" gui-hidden="true">lettering_custom_font_dir</param>
+ <effect needs-live-preview="false">
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}Font Tools{% endtrans %}" />
+ </submenu>
+ </effects-menu>
+ </effect>
+ <param name="file-description" type="description" indent="1" >
+ {% trans %}Set a custom directory for additional fonts to be used with the lettering tool.{% endtrans %}
+ </param>
+ <spacer />
+ <param name="path" type="path" mode="folder" gui-text="{% trans %}Custom font directory{% endtrans %}" indent="1"></param>
+ <spacer />
+ <param name="file-description" type="description" indent="1" >
+ {% trans %}Usage: Create a subdirectory for each font you add.{% endtrans %}
+ </param>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>
diff --git a/templates/lettering_generate_json.xml b/templates/lettering_generate_json.xml
new file mode 100644
index 00000000..5f4907f7
--- /dev/null
+++ b/templates/lettering_generate_json.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>{% trans %}Generate JSON{% endtrans %}</name>
+ <id>org.inkstitch.lettering_generate_json.{{ locale }}</id>
+ <param name="extension" type="string" gui-hidden="true">lettering_generate_json</param>
+ <effect needs-live-preview="false">
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}Font Tools{% endtrans %}" />
+ </submenu>
+ </effects-menu>
+ </effect>
+ <param name="header" type="description" appearance="header" indent="1" >
+ {% trans %}Generates font.json which can be used by the lettering tool.{% endtrans %}
+ </param>
+ <spacer />
+ <separator indent="1"/>
+ <param type="string" name="font-name" gui-text="{% trans %}Name{% endtrans %}" indent="1" />
+ <param type="string" name="font-description" gui-text="{% trans %}Description{% endtrans %}" indent="1" />
+ <separator indent="1"/>
+ <spacer />
+ <param name="file-description" type="description" indent="1" >
+ {% trans %}Insert a font SVG file with kerning information.{% endtrans %}
+ </param>
+ <param type="path" name="font-file" gui-text="{% trans %}Font File{% endtrans %}" indent="1" mode="file" filetypes="svg"/>
+ <spacer />
+ <separator indent="1"/>
+ <param type="bool" name="auto-satin" gui-text="{% trans %}Autoroute Satin{% endtrans %}"
+ gui-description="{% trans %}Disable if you defined manual routing in your font.{% endtrans %}" indent="1">true</param>
+ <param type="bool" name="reversible" gui-text="{% trans %}Reversible{% endtrans %}"
+ gui-description="{% trans %}If disabled back and forth stitching will not be possile for this font.{% endtrans %}" indent="1">true</param>
+ <separator indent="1"/>
+ <param type="string" name="default-glyph" gui-text="{% trans %}Default Glyph{% endtrans %}" indent="1">&#65533;</param>
+ <separator indent="1"/>
+ <spacer />
+ <param name="min-scale" type="float" precision="1" min="0.1" max="1" gui-text="{% trans %}Min Scale{% endtrans %}" indent="1">1</param>
+ <param name="max-scale" type="float" precision="1" min="1" max="10" gui-text="{% trans %}Max Scale{% endtrans %}" indent="1">1</param>
+ <separator indent="1"/>
+ <param name="leading" type="int" precision="1" min="-100" max="100" gui-text="{% trans %}Leading (px){% endtrans %}" gui-description="{% trans %}If 0, the value will be calculated or defaults to 100{% endtrans %}" indent="1"></param>
+ <spacer />
+ <separator indent="1"/>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>
diff --git a/templates/lettering_remove_kerning.xml b/templates/lettering_remove_kerning.xml
new file mode 100644
index 00000000..5657e003
--- /dev/null
+++ b/templates/lettering_remove_kerning.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>{% trans %}Remove Kerning{% endtrans %}</name>
+ <id>org.inkstitch.lettering_remove_kerning.{{ locale }}</id>
+ <param name="extension" type="string" gui-hidden="true">lettering_remove_kerning</param>
+ <effect needs-live-preview="false">
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}Font Tools{% endtrans %}" />
+ </submenu>
+ </effects-menu>
+ </effect>
+ <param name="header" type="description" appearance="header" indent="1" >
+ {% trans %}Removes Kerning information from given SVG files{% endtrans %}
+ </param>
+ <separator />
+ <param name="file-description" type="description" indent="1" >
+ &#9888; {% trans %}Make sure you keep a copy of the original file. After running this extension kerning information will be lost unrevertably from these files.{% endtrans %}
+ </param>
+ <separator />
+ <spacer />
+ <param type="path" name="font-files" gui-text="{% trans %}Select Font Files{% endtrans %}" indent="1" mode="files" filetypes="svg"/>
+ <spacer />
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>
diff --git a/templates/object_commands.inx b/templates/object_commands.xml
index affe7584..affe7584 100644
--- a/templates/object_commands.inx
+++ b/templates/object_commands.xml
diff --git a/templates/output.inx b/templates/output.xml
index ffff4be9..545c3d28 100644
--- a/templates/output.inx
+++ b/templates/output.xml
@@ -4,7 +4,7 @@
<id>org.inkstitch.output.{{ format }}.{{ locale }}</id>
<output>
<extension>.{{ format }}</extension>
- <mimetype>application/x-embroidery-{{ format }}</mimetype>
+ <mimetype>{{ mimetype }}</mimetype>
<_filetypename>Ink/Stitch: {{ _(description) }} (.{{ format }})</_filetypename>
<_filetypetooltip>{{ _("Save design in %(file_extension)s format using Ink/Stitch") % dict(file_extension=format.upper()) }}</_filetypetooltip>
<dataloss>true</dataloss>
diff --git a/templates/output_params_txt.xml b/templates/output_params_txt.xml
index c8ca35ee..8b7f66f5 100644
--- a/templates/output_params_txt.xml
+++ b/templates/output_params_txt.xml
@@ -36,6 +36,6 @@
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>
+ <param name="feed_rate" type="int" gui-text="{{ _("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.xml
index a2dc89a3..4ceb9020 100644
--- a/templates/params.inx
+++ b/templates/params.xml
@@ -3,7 +3,7 @@
<name>{% trans %}Params{% endtrans %}</name>
<id>org.inkstitch.params.{{ locale }}</id>
<param name="extension" type="string" gui-hidden="true">params</param>
- <effect>
+ <effect implements-custom-gui="true">
<object-type>all</object-type>
<effects-menu>
<submenu name="Ink/Stitch" />
diff --git a/templates/print.inx b/templates/print.xml
index 33d8b25c..410f9b54 100644
--- a/templates/print.inx
+++ b/templates/print.xml
@@ -3,7 +3,7 @@
<name>{% trans %}PDF Export{% endtrans %}</name>
<id>org.inkstitch.print.{{ locale }}</id>
<param name="extension" type="string" gui-hidden="true">print</param>
- <effect>
+ <effect implements-custom-gui="true">
<object-type>all</object-type>
<effects-menu>
<submenu name="Ink/Stitch">
diff --git a/templates/remove_embroidery_settings.inx b/templates/remove_embroidery_settings.xml
index c83cc1b8..c83cc1b8 100644
--- a/templates/remove_embroidery_settings.inx
+++ b/templates/remove_embroidery_settings.xml
diff --git a/templates/reorder.xml b/templates/reorder.xml
new file mode 100644
index 00000000..7e002616
--- /dev/null
+++ b/templates/reorder.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>{% trans %}Reorder{% endtrans %}</name>
+ <id>org.inkstitch.reorder.{{ locale }}</id>
+ <param name="extension" type="string" gui-hidden="true">reorder</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/simulator.inx b/templates/simulator.xml
index dfa6b34a..029d8b37 100644
--- a/templates/simulator.inx
+++ b/templates/simulator.xml
@@ -3,7 +3,7 @@
<name>{% trans %}Simulator / Realistic Preview{% endtrans %}</name>
<id>org.inkstitch.simulator.{{ locale }}</id>
<param name="extension" type="string" gui-hidden="true">simulator</param>
- <effect>
+ <effect implements-custom-gui="true">
<object-type>all</object-type>
<effects-menu>
<submenu name="Ink/Stitch">
diff --git a/templates/stitch_plan_preview.inx b/templates/stitch_plan_preview.xml
index 72ea7f04..72ea7f04 100644
--- a/templates/stitch_plan_preview.inx
+++ b/templates/stitch_plan_preview.xml
diff --git a/templates/troubleshoot.inx b/templates/troubleshoot.xml
index 02df8ddc..02df8ddc 100644
--- a/templates/troubleshoot.inx
+++ b/templates/troubleshoot.xml
diff --git a/templates/zip.inx b/templates/zip.xml
index 42623019..4d620424 100644
--- a/templates/zip.inx
+++ b/templates/zip.xml
@@ -9,8 +9,10 @@
<_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, mimetype, category in formats %}
+ {%- if category == "embroidery" %}
<param name="format-{{ format }}" type="boolean" _gui-text=".{{ format | upper }}: {{ _(description) }}">false</param>
+ {%- endif %}
{%- 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>