diff options
Diffstat (limited to 'templates')
44 files changed, 598 insertions, 281 deletions
diff --git a/templates/about.xml b/templates/about.xml index 5b7f0ab7..538b3ca8 100644 --- a/templates/about.xml +++ b/templates/about.xml @@ -1,18 +1,18 @@ <?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> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>About</name> + <id>org.inkstitch.about</id> <param type="notebook" name="about-tabs" indent="1"> - <page name="about" gui-text="{% trans %}About{% endtrans %}"> + <page name="about" gui-text="About"> <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> + <label indent="1">An open-source machine embroidery design platform based on Inkscape.</label> <separator/> <spacer/> <label indent="1" appearance="url">https://inkstitch.org</label> </page> - <page name="license" gui-text="{%trans %}License{% endtrans %}"> + <page name="license" gui-text="License"> <param name="license-text" gui-text=" " type="string" appearance="multiline"> {{ inkstitch_license }} </param> @@ -21,7 +21,7 @@ <effect needs-live-preview="false" needs-document="false"> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> + <submenu name="Ink/Stitch" translatable="no"> </submenu> </effects-menu> </effect> diff --git a/templates/apply_threadlist.xml b/templates/apply_threadlist.xml new file mode 100644 index 00000000..58776cb5 --- /dev/null +++ b/templates/apply_threadlist.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Apply Threadlist</name> + <id>org.inkstitch.apply_threadlist</id> + <param name="extension" type="string" gui-hidden="true">apply_threadlist</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">Apply Ink/Stitch threadlist</option> + <option value="2">Apply 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" translatable="no"> + <submenu name="Thread Color Management" /> + </submenu> + </effects-menu> + </effect> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/auto_run.xml b/templates/auto_run.xml new file mode 100644 index 00000000..4a524b2d --- /dev/null +++ b/templates/auto_run.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Auto-Route Running Stitch</name> + <id>org.inkstitch.auto_run</id> + <param name="extension" type="string" gui-hidden="true">auto_run</param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Tools: Stroke" /> + </submenu> + </effects-menu> + </effect> + <param name="options" type="notebook"> + <page name="options" gui-text="Auto-Route Running Stitch Options"> + <spacer /> + <param name="break_up" type="boolean" gui-text="Add nodes at intersections">true</param> + <spacer /> + <param name="preserve_order" type="boolean" gui-text="Preserve order of running stitches">false</param> + <spacer /> + <param name="trim" type="boolean" gui-text="Trim jump stitches">false</param> + </page> + <page name="help" gui-text="Help"> + <label appearance="header">Auto-Route Running Stitch</label> + <label>Add nodes at intersections:</label> + <spacer /> + <label indent="1">- Enabled (automatic). Ink/Stitch will add some nodes for better routing. This is the default setting.</label> + <spacer /> + <label indent="1">- Disabled (manual). Choose this option if you have manually set nodes at crucial spots.</label> + <spacer /> + <separator /> + <label>Use Start- end end commands to define where auto-routing for running stitch should start and end.</label> + <separator /> + <label>More info on our website:</label> + <label appearance="url">https://inkstitch.org/docs/stroke-tools#auto-route-running-stitch</label> + </page> + </param> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/auto_satin.xml b/templates/auto_satin.xml index 673ac51e..b95ffab8 100644 --- a/templates/auto_satin.xml +++ b/templates/auto_satin.xml @@ -1,15 +1,15 @@ <?xml version="1.0" encoding="UTF-8"?> -<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> - <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> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Auto-Route Satin Columns</name> + <id>org.inkstitch.auto_satin</id> + <param name="trim" type="boolean" gui-text="Trim jump stitches">true</param> + <param name="preserve_order" type="boolean" gui-text="Preserve order of satin columns">false</param> <param name="extension" type="string" gui-hidden="true">auto_satin</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Satin Tools{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Tools: Satin" /> </submenu> </effects-menu> </effect> diff --git a/templates/break_apart.xml b/templates/break_apart.xml index 83333ad1..dcc57967 100644 --- a/templates/break_apart.xml +++ b/templates/break_apart.xml @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Break Apart Fill Objects{% endtrans %}</name> - <id>org.inkstitch.break_apart.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Break Apart Fill Objects</name> + <id>org.inkstitch.break_apart</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 name="Ink/Stitch" translatable="no"> + <submenu name="Tools: Fill" /> </submenu> </effects-menu> </effect> <param name="description" type="description"> - {% trans %}This extension will try to repair fill shapes and break them apart if necessary. Holes will be retained. Use on simple or overlapping shapes.{% endtrans %} + This extension will try to repair fill shapes and break them apart if necessary. Holes will be retained. Use on simple or overlapping shapes. </param> - <param name="method" type="optiongroup" _gui-text="Method"> + <param name="method" type="optiongroup" gui-text="Method"> <option value="0">Simple</option> <option value="1">Complex</option> </param> diff --git a/templates/cleanup.xml b/templates/cleanup.xml index a5cd5713..ad594293 100644 --- a/templates/cleanup.xml +++ b/templates/cleanup.xml @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Cleanup Document{% endtrans %}</name> - <id>org.inkstitch.cleanup.{{ locale }}</id> - <param name="description" type="description">{% trans %}Use this extension to remove small objects from the document.{% endtrans %}</param> - <param name="rm_fill" type="boolean" _gui-text="{% trans %}Remove Small Fill Areas{% endtrans %}" - _gui-description="{% trans %}Removes areas smaller than dedined by threshold.{% endtrans %}">true</param> - <param name="fill_threshold" type="int" _gui-text="{% trans %}Fill area threshold (px²){% endtrans %}" min="1" max="800">20</param> - <param name="rm_stroke" type="boolean" _gui-text="Remove Small strokes" - _gui-description="{% trans %}Removes small strokes shorter than defined by threshold.{% endtrans %}">true</param> - <param name="stroke_threshold" type="int" _gui-text="{% trans %}Stroke threshold (px){% endtrans %}" min="2" max="800">5</param> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Cleanup Document</name> + <id>org.inkstitch.cleanup</id> + <param name="description" type="description">Use this extension to remove small objects from the document.</param> + <param name="rm_fill" type="boolean" gui-text="Remove Small Fill Areas" + gui-description="Removes areas smaller than dedined by threshold.">true</param> + <param name="fill_threshold" type="int" gui-text="Fill area threshold (px²)" min="1" max="800">20</param> + <param name="rm_stroke" type="boolean" gui-text="Remove Small strokes" + gui-description="Removes small strokes shorter than defined by threshold.">true</param> + <param name="stroke_threshold" type="int" gui-text="Stroke threshold (px)" min="2" max="800">5</param> <param name="extension" type="string" gui-hidden="true">cleanup</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Troubleshoot{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Troubleshoot" /> </submenu> </effects-menu> </effect> diff --git a/templates/commands_scale_symbols.xml b/templates/commands_scale_symbols.xml new file mode 100644 index 00000000..98d17003 --- /dev/null +++ b/templates/commands_scale_symbols.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Scale Command Symbols</name> + <id>org.inkstitch.commands_scale_symbols</id> + <param name="extension" type="string" gui-hidden="true">commands_scale_symbols</param> + <param name="size" type="float" precision="1" min="0" max="2" gui-text="Size" appearance="full">1.0</param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Commands"> + <submenu name="View" /> + </submenu> + </submenu> + </effects-menu> + </effect> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/convert_to_satin.xml b/templates/convert_to_satin.xml index 80f0b678..aa86ed4c 100644 --- a/templates/convert_to_satin.xml +++ b/templates/convert_to_satin.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<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> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Convert Line to Satin</name> + <id>org.inkstitch.convert_to_satin</id> <param name="extension" type="string" gui-hidden="true">convert_to_satin</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Satin Tools{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Tools: Satin" /> </submenu> </effects-menu> </effect> diff --git a/templates/convert_to_stroke.xml b/templates/convert_to_stroke.xml index 620258ba..11ffb900 100644 --- a/templates/convert_to_stroke.xml +++ b/templates/convert_to_stroke.xml @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Convert Satin to Stroke{% endtrans %}</name> - <id>org.inkstitch.convert_to_stroke.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Convert Satin to Stroke</name> + <id>org.inkstitch.convert_to_stroke</id> <param name="extension" type="string" gui-hidden="true">convert_to_stroke</param> - <param name="description" type="description">{% trans %}Converts a satin column into a running stitch.{% endtrans %}</param> - <param name="keep_satin" type="boolean" _gui-text="Keep satin column" - _gui-description="{% trans %}Do not delete original satin column.{% endtrans %}">false</param> + <param name="description" type="description">Converts a satin column into a running stitch.</param> + <param name="keep_satin" type="boolean" gui-text="Keep satin column" + gui-description="Do not delete original satin column.">false</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Satin Tools{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Tools: Satin" /> </submenu> </effects-menu> </effect> diff --git a/templates/cut_satin.xml b/templates/cut_satin.xml index b780543a..52b972e9 100644 --- a/templates/cut_satin.xml +++ b/templates/cut_satin.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Cut Satin Column{% endtrans %}</name> - <id>org.inkstitch.cut_satin.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Cut Satin Column</name> + <id>org.inkstitch.cut_satin</id> <param name="extension" type="string" gui-hidden="true">cut_satin</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Satin Tools{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Tools: Satin" /> </submenu> </effects-menu> </effect> diff --git a/templates/cutwork_segmentation.xml b/templates/cutwork_segmentation.xml new file mode 100644 index 00000000..f20ff082 --- /dev/null +++ b/templates/cutwork_segmentation.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Cutwork segmentation</name> + <id>org.inkstitch.cutwork_segmentation</id> + <param name="extension" type="string" gui-hidden="true">cutwork_segmentation</param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" translatable="no" /> + </effects-menu> + </effect> + <param name="options" type="notebook"> + <page name="options" gui-text="Cutwork Options"> + <hbox> + <label>#1</label><spacer /> + <param name="a_start" type="int" appearance="full" gui-text="start" precision="1" min="0" max="180">112</param><spacer /> + <param name="a_end" type="int" appearance="full" gui-text="end" precision="1" min="0" max="180">157</param><spacer /> + <param name="a_color" type="color" gui-text="color" appearance="colorbutton">0x990000ff</param> + </hbox> + <hbox> + <label>#2 </label><spacer /> + <param name="b_start" type="int" appearance="full" gui-text="start" precision="1" min="0" max="180">158</param><spacer /> + <param name="b_end" type="int" appearance="full" gui-text="end" precision="1" min="0" max="180">23</param><spacer /> + <param name="b_color" type="color" gui-text="color" appearance="colorbutton">0xe5a50aff</param> + </hbox> + <hbox> + <label>#3 </label><spacer /> + <param name="c_start" type="int" appearance="full" gui-text="start" precision="1" min="0" max="180">22</param><spacer /> + <param name="c_end" type="int" appearance="full" gui-text="end" precision="1" min="0" max="180">68</param><spacer /> + <param name="c_color" type="color" gui-text="color" appearance="colorbutton">0x009900ff</param> + </hbox> + <hbox> + <label>#4 </label><spacer /> + <param name="d_start" type="int" appearance="full" gui-text="start" precision="1" min="0" max="180">67</param><spacer /> + <param name="d_end" type="int" appearance="full" gui-text="end" precision="1" min="0" max="180">113</param><spacer /> + <param name="d_color" type="color" gui-text="color" appearance="colorbutton">0x000099ff</param> + </hbox> + <spacer /> + <param name="sort_by_color" type="boolean" gui-text="Sort elements by color">true</param> + <param name="keep_original" type="boolean" gui-text="Keep original">false</param> + </page> + <page name="info" gui-text="Help"> + <label appearance="header">This extension separates a path depending on the angle.</label> + <label>* If you don't want to use 4 needles, set both angle values to 0 for the rest of the rows.</label> + <label>* A horizontal line has an angle of 0 degrees.</label> + <label>* After the conversion through this extension, don't rotate your design again.</label> + <separator /> + <label appearance="header">Please adjust angle and color options to your specific needle kit.</label> + <label>On our website we have collected some common setups.</label> + <label appearance="url">https://inkstitch.org/docs/cutwork/</label> + </page> + </param> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/duplicate_params.xml b/templates/duplicate_params.xml index 1cefd7a9..72012bb2 100644 --- a/templates/duplicate_params.xml +++ b/templates/duplicate_params.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Duplicate Params{% endtrans %}</name> - <id>org.inkstitch.duplicate_params.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Duplicate Params</name> + <id>org.inkstitch.duplicate_params</id> <param name="extension" type="string" gui-hidden="true">duplicate_params</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Edit{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Edit" /> </submenu> </effects-menu> </effect> diff --git a/templates/embroider.xml b/templates/embroider.xml index ff56ac7d..578ac830 100644 --- a/templates/embroider.xml +++ b/templates/embroider.xml @@ -1,17 +1,17 @@ <?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> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Embroider</name> + <id>org.inkstitch.embroider</id> + <param name="title" type="description" appearance="header">Create a stitch file</param> + <param name="howto" type="description">Save your embroidery file through | File > Save a Copy ... |</param> + <param name="howto_detail" type="description">Choose from listed embroidery file formats and save.</param> <spacer /> - <param name="info_zip" type="description">{% trans %}Multiple file formats can be saved by choosing the zip file format.{% endtrans %}</param> + <param name="info_zip" type="description">Multiple file formats can be saved by choosing the zip file format.</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 name="Ink/Stitch" translatable="no"> + <submenu name="Visualise and Export" /> </submenu> </effects-menu> </effect> diff --git a/templates/embroider_settings.xml b/templates/embroider_settings.xml index 1c7bc966..96339fcb 100644 --- a/templates/embroider_settings.xml +++ b/templates/embroider_settings.xml @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Preferences{% endtrans %}</name> - <id>org.inkstitch.embroider_settings.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Preferences</name> + <id>org.inkstitch.embroider_settings</id> <param name="extension" type="string" gui-hidden="true">embroider_settings</param> <effect needs-live-preview="false"> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch" /> + <submenu name="Ink/Stitch" translatable="no" /> </effects-menu> </effect> <param name="output_settings" type="description" appearance="header"> - {% trans %}Output Settings{% endtrans %} + Output Settings </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> + <param name="collapse_len_mm" type="float" precision="1" min="0" max="10" + gui-text="Collapse length (mm)" + gui-description="Jump stitches smaller than this will be treated as normal stitches.">3</param> <script> {{ command_tag | safe }} </script> diff --git a/templates/flip.xml b/templates/flip.xml index 29b11457..b13977dc 100644 --- a/templates/flip.xml +++ b/templates/flip.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<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> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Flip Satin Column Rails</name> + <id>org.inkstitch.flip_satins</id> <param name="extension" type="string" gui-hidden="true">flip</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Satin Tools{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Tools: Satin" /> </submenu> </effects-menu> </effect> diff --git a/templates/generate_palette.xml b/templates/generate_palette.xml new file mode 100644 index 00000000..cf5a18e4 --- /dev/null +++ b/templates/generate_palette.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Generate Color Palette</name> + <id>org.inkstitch.generate_palette</id> + <param name="extension" type="string" gui-hidden="true">generate_palette</param> + <effect needs-live-preview="false"> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Thread Color Management"> + <submenu name="Generate Palette"/> + </submenu> + </submenu> + </effects-menu> + </effect> + <param name="options" type="notebook"> + <page name="options" gui-text="Generate Palette Options"> + <param name="palette_name" type="string" gui-text="Palette name"></param> + <spacer /> + <param name="palette_folder" type="path" mode="folder" gui-text="Folder (optional):"></param> + <spacer /> + <label appearance="header">⚠ Restart Inkscape to use your color palette.</label> + </page> + <page name="info" gui-text="Help"> + <label appearance="header">Generate a custom color palette for Ink/Stitch</label> + <label>Sadly we can not sort color swatches in Inkscape. + With this extension you can export colors from text elements in their stacking order. + The text will be used as the color name and number.</label> + <separator /> + <label>On our website we describe all necessary steps to generate a color palette for Ink/Stitch.</label> + <label appearance="url">https://inkstitch.org/docs/thread-color#generate-color-palette</label> + </page> + </param> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/global_commands.xml b/templates/global_commands.xml index d37e2e41..2bd263f7 100644 --- a/templates/global_commands.xml +++ b/templates/global_commands.xml @@ -1,18 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Add Commands{% endtrans %}</name> - <id>org.inkstitch.global_commands.{{ locale }}</id> - <param name="description" type="description">{% trans %}These commands affect the entire embroidery design.{% endtrans %}</param> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Add Commands</name> + <id>org.inkstitch.global_commands</id> + <param name="description" type="description">These commands affect the entire embroidery design.</param> {% for command, description in global_commands %} - <param name="{{ command }}" type="boolean" _gui-text="{{ _(description) }}">false</param> + <param name="{{ command }}" type="boolean" gui-text="{{ description }}">false</param> {% endfor %} <param name="extension" type="string" gui-hidden="true">global_commands</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> + <submenu name="Ink/Stitch" translatable="no"> {# L10N Inkscape submenu under Extensions -> Ink/Stitch #} - <submenu name="{% trans %}Commands{% endtrans %}" /> + <submenu name="Commands" /> </submenu> </effects-menu> </effect> diff --git a/templates/import_threadlist.xml b/templates/import_threadlist.xml deleted file mode 100644 index e846f13b..00000000 --- a/templates/import_threadlist.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?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> - <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> - </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"> - <submenu name="{% trans %}Thread Color Management{% endtrans %}" /> - </submenu> - </effects-menu> - </effect> - <script> - {{ command_tag | safe }} - </script> -</inkscape-extension> diff --git a/templates/input.xml b/templates/input.xml index 5f4a4610..b868c5ae 100644 --- a/templates/input.xml +++ b/templates/input.xml @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{{ format | upper }} file input</name> - <id>org.inkstitch.input.{{ format }}.{{ locale }}</id> + <id>org.inkstitch.input.{{ format }}</id> <input> <extension>.{{ format }}</extension> <mimetype>application/x-embroidery-{{ format }}</mimetype> - <_filetypename>Ink/Stitch: {{ _(description) }} (.{{ format }})</_filetypename> - <_filetypetooltip>{{ _("convert %(file_extension)s file to Ink/Stitch manual-stitch paths") % dict(file_extension=format.upper()) }}</_filetypetooltip> + <filetypename>Ink/Stitch: {{ description }} (.{{ format }})</filetypename> + <filetypetooltip>{{ "convert %(file_extension)s file to Ink/Stitch manual-stitch paths" % dict(file_extension=format.upper()) }}</filetypetooltip> </input> <param name="extension" type="string" gui-hidden="true">input</param> <script> diff --git a/templates/install.xml b/templates/install.xml index e351dc31..2038017a 100644 --- a/templates/install.xml +++ b/templates/install.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Install thread color palettes for Inkscape{% endtrans %}</name> - <id>org.inkstitch.install.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Install thread color palettes for Inkscape</name> + <id>org.inkstitch.install</id> <param name="extension" type="string" gui-hidden="true">install</param> <effect implements-custom-gui="true"> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Thread Color Management{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Thread Color Management" /> </submenu> </effects-menu> </effect> diff --git a/templates/install_custom_palette.xml b/templates/install_custom_palette.xml index cb2865c7..c69458fb 100644 --- a/templates/install_custom_palette.xml +++ b/templates/install_custom_palette.xml @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Install custom palette{% endtrans %}</name> - <id>org.inkstitch.install_custom_palette.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Install custom palette</name> + <id>org.inkstitch.install_custom_palette</id> <param name="extension" type="string" gui-hidden="true">install_custom_palette</param> - <label indent="1">{% trans %}Choose a .gpl color palette file to install into Inkscape.{% endtrans %}</label> - <label indent="1">{% trans %}Restart Inkscape to use.{% endtrans %}</label> - <param indent="1" name="filepath" type="path" gui-text="{{ _('Choose file') }}" mode="file" filetypes="gpl"/> + <label indent="1">Choose a .gpl color palette file to install into Inkscape.</label> + <label indent="1">Restart Inkscape to use.</label> + <param indent="1" name="filepath" type="path" gui-text="Choose file" mode="file" filetypes="gpl"/> <effect needs-live-preview="false"> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Thread Color Management{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Thread Color Management" /> </submenu> </effects-menu> </effect> diff --git a/templates/layer_commands.xml b/templates/layer_commands.xml index 249d536e..2c0200e5 100644 --- a/templates/layer_commands.xml +++ b/templates/layer_commands.xml @@ -1,17 +1,17 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Add Layer Commands{% endtrans %}</name> - <id>org.inkstitch.layer_commands.{{ locale }}</id> - <param name="description" type="description">{% trans %}Commands will be added to the currently-selected layer.{% endtrans %}</param> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Add Layer Commands</name> + <id>org.inkstitch.layer_commands</id> + <param name="description" type="description">Commands will be added to the currently-selected layer.</param> {% for command, description in layer_commands %} - <param name="{{ command }}" type="boolean" _gui-text="{{ _(description) }}">false</param> + <param name="{{ command }}" type="boolean" gui-text="{{ description }}">false</param> {% endfor %} <param name="extension" type="string" gui-hidden="true">layer_commands</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Commands{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Commands" /> </submenu> </effects-menu> </effect> diff --git a/templates/lettering.xml b/templates/lettering.xml index 6dea9e93..e0a162f3 100644 --- a/templates/lettering.xml +++ b/templates/lettering.xml @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Lettering{% endtrans %}</name> - <id>org.inkstitch.lettering.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Lettering</name> + <id>org.inkstitch.lettering</id> <param name="extension" type="string" gui-hidden="true">lettering</param> <effect implements-custom-gui="true"> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch" /> + <submenu name="Ink/Stitch" translatable="no" /> </effects-menu> </effect> <script> diff --git a/templates/lettering_custom_font_dir.xml b/templates/lettering_custom_font_dir.xml index a281dbd6..ade266ee 100644 --- a/templates/lettering_custom_font_dir.xml +++ b/templates/lettering_custom_font_dir.xml @@ -1,24 +1,24 @@ <?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> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Custom font directory</name> + <id>org.inkstitch.lettering_custom_font_dir</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 Management{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Font Management" /> </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 %} + Set a custom directory for additional fonts to be used with the lettering tool. </param> <spacer /> - <param name="path" type="path" mode="folder" gui-text="{% trans %}Custom font directory{% endtrans %}" indent="1"></param> + <param name="path" type="path" mode="folder" gui-text="Custom font directory" indent="1"></param> <spacer /> <param name="file-description" type="description" indent="1" > - {% trans %}Usage: The custom font directory must contain a subdirectory for each font.{% endtrans %} + Usage: The custom font directory must contain a subdirectory for each font. </param> <script> {{ command_tag | safe }} diff --git a/templates/lettering_force_lock_stitches.xml b/templates/lettering_force_lock_stitches.xml new file mode 100644 index 00000000..ee7049ad --- /dev/null +++ b/templates/lettering_force_lock_stitches.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Force lock stitches</name> + <id>org.inkstitch.force_lock_stitches</id> + <param name="extension" type="string" gui-hidden="true">lettering_force_lock_stitches</param> + <effect needs-live-preview="false"> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Font Management" /> + </submenu> + </effects-menu> + </effect> + <param name="force-lock-stitches" type="description" indent="1" > + Small fonts will sometimes unravel if threads are cut after the embroidery machine has finished the work. + Therefore it is important that also diacritics with a smaller distance to the font body than defined by the collapse length value (default: 3mm) have lock stitches. + This can be achieved by adding a forced lock stitch attribute to them. + </param> + <separator /> + <param name="extension-description" type="description" indent="1"> + This extension has been build to help font authors to define "force lock stitches"-attributes automatically if they are placed in a predefined distance to the next object. + </param> + <param indent="1" name="min_distance" type="float" gui-text="Minimum distance (mm)" min="0" max="3">1</param> + <param indent="1" name="max_distance" type="float" gui-text="Minimum distance (mm)" min="1" max="10">3</param> + <separator /> + <param indent="1" name="last_element" type="boolean" gui-text="Add force lock stitches attribute to the last element of each glyph">false</param> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/lettering_generate_json.xml b/templates/lettering_generate_json.xml index 4ad7f4e9..9bd048bf 100644 --- a/templates/lettering_generate_json.xml +++ b/templates/lettering_generate_json.xml @@ -1,72 +1,72 @@ <?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> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Generate JSON</name> + <id>org.inkstitch.lettering_generate_json</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 Management{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Font Management" /> </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 %} + Generates font.json which can be used by the lettering tool. </param> - <param name="file-description" type="description" indent="1" >{% trans %}The generated file can be viewed and updated with a standard text editor tool.{% endtrans %}</param> + <param name="file-description" type="description" indent="1" >The generated file can be viewed and updated with a standard text editor tool.</param> <spacer /> <separator indent="1"/> <spacer /> - <param type="path" name="font-file" gui-text="{% trans %}SVG Font File{% endtrans %}" indent="1" mode="file" filetypes="svg"/> + <param type="path" name="font-file" gui-text="SVG Font File" indent="1" mode="file" filetypes="svg"/> <spacer /> <separator indent="1"/> <spacer /> - <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" /> + <param type="string" name="font-name" gui-text="Name" indent="1" /> + <param type="string" name="font-description" gui-text="Description" indent="1" /> <spacer /> <separator indent="1"/> <spacer /> <hbox> <vbox> - <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> - <param name="letter-case" type="optiongroup" appearance="combo" gui-text="{% trans %}Force letter case{% endtrans %}" indent="1"> - <option value="">{% trans %}No{% endtrans %}</option> - <option value="upper">{% trans %}Upper{% endtrans %}</option> - <option value="lower">{% trans %}Lower{% endtrans %}</option> + <param type="bool" name="auto-satin" gui-text="Autoroute Satin" + gui-description="Disable if you defined manual routing in your font." indent="1">true</param> + <param type="bool" name="reversible" gui-text="Reversible" + gui-description='If disabled back and forth stitching will not be possile for this font.' indent="1">true</param> + <param name="letter-case" type="optiongroup" appearance="combo" gui-text="Force letter case" indent="1"> + <option value="">No</option> + <option value="upper">Upper</option> + <option value="lower">Lower</option> </param> </vbox> <vbox indent="20"> - <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> + <param name="min-scale" type="float" precision="1" min="0.1" max="1" gui-text="Min Scale" indent="1">1</param> + <param name="max-scale" type="float" precision="1" min="1" max="10" gui-text="Max Scale" indent="1">1</param> </vbox> </hbox> <spacer /> - <param type="string" name="default-glyph" gui-text="{% trans %}Default Glyph{% endtrans %}" indent="1">�</param> + <param type="string" name="default-glyph" gui-text="Default Glyph" indent="1">�</param> <spacer /> <separator indent="1"/> <spacer /> - <param name="header" type="description" appearance="header" indent="1" >{% trans %}Kerning{% endtrans %}</param> + <param name="header" type="description" appearance="header" indent="1" >Kerning</param> <param name="kering-info" type="description" indent="1" > - {% trans %}If your font file contains kerning information, you can completely ignore the following settings (unless you want to overwrite them). - If the kerning information cannot be found, these values will apply automatically.{% endtrans %} + If your font file contains kerning information, you can completely ignore the following settings (unless you want to overwrite them). + If the kerning information cannot be found, these values will apply automatically. </param> <spacer /> <hbox indent="1"> - <param name="use-custom-leading" type="bool" gui-text="{% trans %}Force{% endtrans %}" indent="1" - gui-description="{% trans %}Overwrite leading information from font file.{% endtrans %}">false</param> - <param name="leading" type="int" precision="1" min="-100" max="500" gui-text="{% trans %}Leading (px){% endtrans %}" - gui-description="{% trans %}Line height (default: 100){% endtrans %}" indent="1">100</param> + <param name="use-custom-leading" type="bool" gui-text="Force" indent="1" + gui-description="Overwrite leading information from font file.">false</param> + <param name="leading" type="int" precision="1" min="-100" max="500" gui-text="Leading (px)" + gui-description="Line height (default: 100)" indent="1">100</param> </hbox> <spacer /> <hbox indent="1"> - <param name="use-custom-spacing" type="bool" gui-text="{% trans %}Force{% endtrans %}" indent="1" - gui-description="{% trans %}Overwrite word spacing information from font file.{% endtrans %}">false</param> - <param name="word-spacing" type="int" precision="1" min="-100" max="500" gui-text="{% trans %}Word spacing (px){% endtrans %}" - gui-description="{% trans %}Space character width (default: 20){% endtrans %}" indent="1">20</param> + <param name="use-custom-spacing" type="bool" gui-text="Force" indent="1" + gui-description="Overwrite word spacing information from font file.">false</param> + <param name="word-spacing" type="int" precision="1" min="-100" max="500" gui-text="Word spacing (px)" + gui-description="Space character width (default: 20)" indent="1">20</param> </hbox> <spacer /> <separator indent="1"/> diff --git a/templates/lettering_remove_kerning.xml b/templates/lettering_remove_kerning.xml index 48494ead..60c3ec92 100644 --- a/templates/lettering_remove_kerning.xml +++ b/templates/lettering_remove_kerning.xml @@ -1,26 +1,26 @@ <?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> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Remove Kerning</name> + <id>org.inkstitch.lettering_remove_kerning</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 Management{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Font Management" /> </submenu> </effects-menu> </effect> <param name="header" type="description" appearance="header" indent="1" > - {% trans %}Removes Kerning information from given SVG files{% endtrans %} + Removes Kerning information from given SVG files </param> <separator /> <param name="file-description" type="description" indent="1" > - ⚠ {% 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 %} + ⚠ Make sure you keep a copy of the original file. After running this extension kerning information will be lost unrevertably from these files. </param> <separator /> <spacer /> - <param type="path" name="font-files" gui-text="{% trans %}Select Font Files{% endtrans %}" indent="1" mode="files" filetypes="svg"/> + <param type="path" name="font-files" gui-text="Select Font Files" indent="1" mode="files" filetypes="svg"/> <spacer /> <script> {{ command_tag | safe }} diff --git a/templates/letters_to_font.xml b/templates/letters_to_font.xml new file mode 100644 index 00000000..f609d471 --- /dev/null +++ b/templates/letters_to_font.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Letters to font</name> + <id>org.inkstitch.letters_to_font</id> + <param name="extension" type="string" gui-hidden="true">letters_to_font</param> + <effect needs-live-preview="false"> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Font Management" /> + </submenu> + </effects-menu> + </effect> + <param name="header" type="description" appearance="header" indent="1" > + Includes all letters of a predigitized embroidery font (one file for each letter) into the document in order to make it available for the Ink/Stitch lettering system. + </param> + <param name="file-description" type="description" indent="1" > + Embroidery files need to have the name of the letter right before the file extension. E.g. A.dst or Example_Font_A.dst will be recognized as the letter A. + </param> + <separator /> + <spacer /> + <param name="file-format" type="optiongroup" appearance="combo" gui-text="File format" indent="1"> + {% for format, description, mimetype, category in formats %} + <option value="*.{{ format | upper }}" translatable="no">{{ format | upper }}</option> + {% endfor %} + </param> + <param type="path" name="font-dir" gui-text="Font directory" indent="1" mode="folder" filetypes="svg"/> + <spacer /> + <param type="boolean" name="import-commands" gui-text="Import commands" indent="1">false</param> + <spacer /> + <separator /> + <param name="file-description" type="description" indent="1" > + ⚠ After running this function, drag the baseline into the desired position and place the letters accordingly. + Save your font in a separate folder. Then generate the json file (with "Autoroute Satin" unchecked). + </param> + <separator /> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/object_commands.xml b/templates/object_commands.xml index affe7584..18b74df6 100644 --- a/templates/object_commands.xml +++ b/templates/object_commands.xml @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> -<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> - {% for command, description in object_commands %} - <param name="{{ command }}" type="boolean" _gui-text="{{ _(description ) }}">false</param> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Attach Commands to Selected Objects</name> + <id>org.inkstitch.commands</id> + {%- for command, description in object_commands -%} + <param name="{{ command }}" type="boolean" gui-text="{{ description }}">false</param> {% endfor %} <param name="extension" type="string" gui-hidden="true">object_commands</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Commands{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Commands" /> </submenu> </effects-menu> </effect> diff --git a/templates/object_commands_toggle_visibility.xml b/templates/object_commands_toggle_visibility.xml new file mode 100644 index 00000000..b3580b2a --- /dev/null +++ b/templates/object_commands_toggle_visibility.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Display|Hide Object Commands</name> + <id>org.inkstitch.object_commands_toggle_visibility</id> + <param name="extension" type="string" gui-hidden="true">object_commands_toggle_visibility</param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Commands"> + <submenu name="View" /> + </submenu> + </submenu> + </effects-menu> + </effect> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/output.xml b/templates/output.xml index 545c3d28..5c35ca7d 100644 --- a/templates/output.xml +++ b/templates/output.xml @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>{{ format | upper }} file output</name> - <id>org.inkstitch.output.{{ format }}.{{ locale }}</id> + <id>org.inkstitch.output.{{ format }}</id> <output> <extension>.{{ format }}</extension> <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> + <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> </output> <param name="extension" type="string" gui-hidden="true">output</param> diff --git a/templates/output_params_txt.xml b/templates/output_params_txt.xml index 8b7f66f5..97e6cacf 100644 --- a/templates/output_params_txt.xml +++ b/templates/output_params_txt.xml @@ -1,41 +1,39 @@ {# these parameters are for g-code files (*.txt) #} <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 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> + <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' min="0" max="999">5.0</param> </page> <page name="custom-commands" gui-text="Custom Commands"> - <param name="custom_stitch" type="string" appearance="multiline" gui-text="{{ _("STITCH") }}" - gui-description="{{ _("Use '%X' for x-coordinate. Use '%Y' for y-coordinate and '%Z' for z-coordinate. Use '\\n' for a new line.") }}"></param> - <param name="custom_color_change" type="string" appearance="multiline" gui-text="{{ _("COLOR CHANGE") }}" - gui-description="{{ _("Use '\\n' for a new line. Leave empty to use default value. Use 'none' to remove.") }}"></param> - <param name="custom_stop" type="string" appearance="multiline" gui-text="{{ _("STOP") }}" - gui-description="{{ _("Use '\\n' for a new line. Leave empty to use default value. Use 'none' to remove.") }}"></param> - <param name="custom_start" type="string" appearance="multiline" gui-text="{{ _("START") }}" - gui-description="{{ _("Use '\\n' for a new line.") }}"></param> - <param name="custom_end" type="string" appearance="multiline" gui-text="{{ _("END") }}" - gui-description="{{ _("Use '\\n' for a new line.") }}"></param> + <param name="custom_stitch" type="string" appearance="multiline" gui-text="STITCH" + gui-description="Use '%X' for x-coordinate. Use '%Y' for y-coordinate and '%Z' for z-coordinate."></param> + <param name="custom_color_change" type="string" appearance="multiline" gui-text="COLOR CHANGE" + gui-description="Leave empty to use default value. Use 'none' to remove."></param> + <param name="custom_stop" type="string" appearance="multiline" gui-text="STOP" + gui-description="Leave empty to use default value. Use 'none' to remove."></param> + <param name="custom_start" type="string" appearance="multiline" gui-text="START"></param> + <param name="custom_end" type="string" appearance="multiline" gui-text="END"></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.") }}" + <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-text="{{ _("feed rate (in mm/min, set to -1 to omit)")}}" min="-1" max="1000000000">-1</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-text="feed rate (in mm/min, set to -1 to omit)" min="-1" max="1000000000">-1</param> </page> </param> diff --git a/templates/palette_split_text.xml b/templates/palette_split_text.xml new file mode 100644 index 00000000..22c45dd8 --- /dev/null +++ b/templates/palette_split_text.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Split text</name> + <id>org.inkstitch.palette_split_text</id> + <param name="extension" type="string" gui-hidden="true">palette_split_text</param> + <effect needs-live-preview="false"> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Thread Color Management"> + <submenu name="Generate Palette"/> + </submenu> + </submenu> + </effects-menu> + </effect> + <param name="line-height" type="int" min="1" max="100" gui-text="Line Height">6</param> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/palette_to_text.xml b/templates/palette_to_text.xml new file mode 100644 index 00000000..42b2b6b7 --- /dev/null +++ b/templates/palette_to_text.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Palette to text</name> + <id>org.inkstitch.palette_to_text</id> + <effect needs-live-preview="false"> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Thread Color Management" /> + </submenu> + </effects-menu> + </effect> + <param name="extension" type="string" gui-hidden="true">palette_to_text</param> + <param name="notebook" type="notebook"> + <page name="options" gui-text="Options"> + <label>Choose a .gpl color palette file to import colors as text elements.</label> + <param name="file" type="path" gui-text="Choose file" mode="file" filetypes="gpl"/> + </page> + <page name="info" gui-text="Help"> + <label appearance="header">Palette to text</label> + <label>Import a .gpl palette into Inkscape as text elements to edit color entries.</label> + <separator /> + <label>Read more on our webiste:</label> + <label appearance="url">https://inkstitch.org/docs/thread-color#palette-to-text</label> + </page> + </param> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/params.xml b/templates/params.xml index 4ceb9020..662d5077 100644 --- a/templates/params.xml +++ b/templates/params.xml @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Params{% endtrans %}</name> - <id>org.inkstitch.params.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Params</name> + <id>org.inkstitch.params</id> <param name="extension" type="string" gui-hidden="true">params</param> <effect implements-custom-gui="true"> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch" /> + <submenu name="Ink/Stitch" translatable="no" /> </effects-menu> </effect> <script> diff --git a/templates/print.xml b/templates/print.xml index 410f9b54..2fcbe73d 100644 --- a/templates/print.xml +++ b/templates/print.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}PDF Export{% endtrans %}</name> - <id>org.inkstitch.print.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>PDF Export</name> + <id>org.inkstitch.print</id> <param name="extension" type="string" gui-hidden="true">print</param> <effect implements-custom-gui="true"> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Visualise and Export{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Visualise and Export" /> </submenu> </effects-menu> </effect> diff --git a/templates/remove_embroidery_settings.xml b/templates/remove_embroidery_settings.xml index c83cc1b8..be3615dc 100644 --- a/templates/remove_embroidery_settings.xml +++ b/templates/remove_embroidery_settings.xml @@ -1,19 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> -<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> - <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> - <param name="del_commands" type="boolean" _gui-text="{% trans %}Remove Commands{% endtrans %}" - _gui-description="{% trans %}Removes visual commands from selected objects or all objects if nothing is selected.{% endtrans %}">false</param> - <param name="del_print" type="boolean" _gui-text="{% trans %}Remove Print Settings from SVG metadata{% endtrans %}">false</param> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Remove embroidery settings</name> + <id>org.inkstitch.remove_embroidery_settings</id> + <param name="description" type="description">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.</param> + <param name="del_params" type="boolean" gui-text="Remove Params" + gui-description="Removes params from selected objects or all objects if nothing is selected.">true</param> + <param name="del_commands" type="boolean" gui-text="Remove Commands" + gui-description="Removes visual commands from selected objects or all objects if nothing is selected.">false</param> + <param name="del_print" type="boolean" gui-text="Remove Print Settings from SVG metadata">false</param> <param name="extension" type="string" gui-hidden="true">remove_embroidery_settings</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Troubleshoot{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Troubleshoot" /> </submenu> </effects-menu> </effect> diff --git a/templates/reorder.xml b/templates/reorder.xml index 1be9b5c9..ad33acd3 100644 --- a/templates/reorder.xml +++ b/templates/reorder.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Re-stack objects in order of selection{% endtrans %}</name> - <id>org.inkstitch.reorder.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Re-stack objects in order of selection</name> + <id>org.inkstitch.reorder</id> <param name="extension" type="string" gui-hidden="true">reorder</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Edit{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Edit" /> </submenu> </effects-menu> </effect> diff --git a/templates/selection_to_guide_line.xml b/templates/selection_to_guide_line.xml new file mode 100644 index 00000000..1a3ac0f9 --- /dev/null +++ b/templates/selection_to_guide_line.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Selection to guide line</name> + <id>org.inkstitch.selection_to_guide_line</id> + <param name="extension" type="string" gui-hidden="true">selection_to_guide_line</param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Edit" /> + </submenu> + </effects-menu> + </effect> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> diff --git a/templates/selection_to_pattern.xml b/templates/selection_to_pattern.xml index 859a51ed..01a4a482 100644 --- a/templates/selection_to_pattern.xml +++ b/templates/selection_to_pattern.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Selection to pattern{% endtrans %}</name> - <id>org.inkstitch.selection_to_pattern.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Selection to pattern</name> + <id>org.inkstitch.selection_to_pattern</id> <param name="extension" type="string" gui-hidden="true">selection_to_pattern</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Edit{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Edit" /> </submenu> </effects-menu> </effect> diff --git a/templates/simulator.xml b/templates/simulator.xml index 029d8b37..db13db2e 100644 --- a/templates/simulator.xml +++ b/templates/simulator.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Simulator / Realistic Preview{% endtrans %}</name> - <id>org.inkstitch.simulator.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Simulator / Realistic Preview</name> + <id>org.inkstitch.simulator</id> <param name="extension" type="string" gui-hidden="true">simulator</param> <effect implements-custom-gui="true"> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Visualise and Export{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Visualise and Export" /> </submenu> </effects-menu> </effect> diff --git a/templates/stitch_plan_preview.xml b/templates/stitch_plan_preview.xml index 72ea7f04..ba602aaf 100644 --- a/templates/stitch_plan_preview.xml +++ b/templates/stitch_plan_preview.xml @@ -1,16 +1,25 @@ <?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> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Stitch Plan Preview</name> + <id>org.inkstitch.stitch_plan_preview</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"> - <submenu name="{% trans %}Visualise and Export{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Visualise and Export" /> </submenu> </effects-menu> </effect> + <param name="move-to-side" type="boolean" gui-text="Move stitch plan beside the canvas">true</param> + <param name="layer-visibility" type="optiongroup" appearance="combo" gui-text="Design layer visibility"> + <option value="0">Unchanged</option> + <option value="1">Hidden</option> + <option value="2">Lower opacity</option> + </param> + <param name="needle-points" type="boolean" gui-text="Needle points">false</param> + <separator /> + <label>Hit Ctrl+Z to undo this action after inspection.</label> <script> {{ command_tag | safe }} </script> diff --git a/templates/troubleshoot.xml b/templates/troubleshoot.xml index 02df8ddc..81d0472a 100644 --- a/templates/troubleshoot.xml +++ b/templates/troubleshoot.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <name>{% trans %}Troubleshoot Objects{% endtrans %}</name> - <id>org.inkstitch.troubleshoot.{{ locale }}</id> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Troubleshoot Objects</name> + <id>org.inkstitch.troubleshoot</id> <param name="extension" type="string" gui-hidden="true">troubleshoot</param> <effect> <object-type>all</object-type> <effects-menu> - <submenu name="Ink/Stitch"> - <submenu name="{% trans %}Troubleshoot{% endtrans %}" /> + <submenu name="Ink/Stitch" translatable="no"> + <submenu name="Troubleshoot" /> </submenu> </effects-menu> </effect> diff --git a/templates/zip.xml b/templates/zip.xml index 4d620424..55366afd 100644 --- a/templates/zip.xml +++ b/templates/zip.xml @@ -1,21 +1,21 @@ <?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>embroidery ZIP file output</name> - <id>org.inkstitch.output.zip.{{ locale }}</id> + <id>org.inkstitch.output.zip</id> <output> <extension>.zip</extension> <mimetype>application/zip</mimetype> - <_filetypename>{{ _("Ink/Stitch: ZIP export multiple formats (.zip)") }}</_filetypename> - <_filetypetooltip>{{ _("Create a ZIP with multiple embroidery file formats using Ink/Stitch") }}</_filetypetooltip> + <filetypename>Ink/Stitch: ZIP export multiple formats (.zip)</filetypename> + <filetypetooltip>Create a ZIP with multiple embroidery file formats using Ink/Stitch</filetypetooltip> <dataloss>true</dataloss> </output> {%- for format, description, mimetype, category in formats %} {%- if category == "embroidery" %} - <param name="format-{{ format }}" type="boolean" _gui-text=".{{ format | upper }}: {{ _(description) }}">false</param> + <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> + <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_tag | safe }} |
