summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/lettering_generate_json.xml154
-rw-r--r--templates/lettering_update_json_glyphlist.xml22
-rw-r--r--templates/zip.xml35
3 files changed, 143 insertions, 68 deletions
diff --git a/templates/lettering_generate_json.xml b/templates/lettering_generate_json.xml
index 6a49d128..b878415e 100644
--- a/templates/lettering_generate_json.xml
+++ b/templates/lettering_generate_json.xml
@@ -11,66 +11,102 @@
</submenu>
</effects-menu>
</effect>
- <param name="header" type="description" appearance="header" indent="1" >
- Generates font.json which can be used by the lettering tool.
+
+ <param name="options" type="notebook">
+ <page name="general" gui-text="Font info">
+
+ <param name="header" type="description" appearance="header" indent="1" >
+ Generates font.json which can be used by the lettering tool.
+ </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="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 />
+
+ <param type="path" name="font-file" gui-text="SVG Font File" indent="1" mode="file" filetypes="svg"/>
+
+ <spacer />
+ <separator indent="1"/>
+ <spacer />
+
+ <param name="header" type="description" appearance="header" indent="1" >
+ Keywords
+ </param>
+ <hbox>
+ {%- for category in font_categories %}
+ {%- if loop.index is divisibleby 4 %}
+ </hbox>
+ <hbox>
+ {%- endif %}
+ <param type="bool" name="{{ category.id }}" gui-text="{{ category.name }}" indent="1">false</param>
+ {%- endfor %}
+ </hbox>
+ <spacer />
+
+ </page>
+ <page name="settings" gui-text="Settings">
+
+ <spacer />
+ <param type="string" name="default-glyph" gui-text="Default Glyph" indent="1">&#65533;</param>
+ <spacer />
+
+ <hbox>
+ <vbox>
+ <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="size" type="float" precision="1" min="1" max="1000" gui-text="Size" indent="1">15</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>
+
+ </page>
+ <page name="kerning" gui-text="Kerning">
+ <param name="header" type="description" appearance="header" indent="1" >Kerning</param>
+ <param name="kering-info" type="description" indent="1" >
+ 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="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="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"/>
+
+ </page>
</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="SVG Font File" indent="1" mode="file" filetypes="svg"/>
- <spacer />
- <separator indent="1"/>
- <spacer />
- <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="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="size" type="float" precision="1" min="1" max="1000" gui-text="Size" indent="1">15</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="Default Glyph" indent="1">&#65533;</param>
- <spacer />
- <separator indent="1"/>
- <spacer />
- <param name="header" type="description" appearance="header" indent="1" >Kerning</param>
- <param name="kering-info" type="description" indent="1" >
- 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="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="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"/>
+
<script>
{{ command_tag | safe }}
</script>
diff --git a/templates/lettering_update_json_glyphlist.xml b/templates/lettering_update_json_glyphlist.xml
new file mode 100644
index 00000000..2f3e74cb
--- /dev/null
+++ b/templates/lettering_update_json_glyphlist.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>Update Glyphlist</name>
+ <id>org.inkstitch.lettering_update_json_glyphlist</id>
+ <param name="extension" type="string" gui-hidden="true">lettering_update_json_glyphlist</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" >
+ Updates the glyphlist in the json file.
+ </param>
+ <param type="path" name="font-file" gui-text="SVG Font File" indent="1" mode="file" filetypes="svg"/>
+ <param type="path" name="json-file" gui-text="JSON File" indent="1" mode="file" filetypes="json"/>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>
diff --git a/templates/zip.xml b/templates/zip.xml
index 0018cb19..86be0e65 100644
--- a/templates/zip.xml
+++ b/templates/zip.xml
@@ -5,18 +5,35 @@
<output>
<extension>.zip</extension>
<mimetype>application/zip</mimetype>
- <filetypename>Ink/Stitch: ZIP export multiple formats (.zip)</filetypename>
+ <filetypename>Ink/Stitch: ZIP export multiple formats and extra options (.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 != "vector" and category != "debug" %}
- <param name="format-{{ format }}" type="boolean" _gui-text=".{{ format | upper }}: {{ description }}">false</param>
- {%- endif %}
- {%- endfor %}
- <param name="format-threadlist" type="boolean" gui-text=".TXT: Threadlist [COLOR]">false</param>
- <param name="format-svg" type="boolean" gui-text=".SVG: Scalable Vector Graphic">false</param>
- <param name="extension" type="string" gui-hidden="true">zip</param>
+ <param name="notebook" type="notebook">
+ <page name="file-formats" gui-text="File Formats">
+ <label>Output formats:</label>
+ {%- for format, description, mimetype, category in formats %}
+ {%- if category != "vector" and category != "debug" %}
+ <param name="format-{{ format }}" type="boolean" _gui-text=".{{ format | upper }}: {{ description }}">false</param>
+ {%- endif %}
+ {%- endfor %}
+ <param name="format-threadlist" type="boolean" gui-text=".TXT: Threadlist [COLOR]">false</param>
+ <param name="format-svg" type="boolean" gui-text=".SVG: Scalable Vector Graphic">false</param>
+ <param name="extension" type="string" gui-hidden="true">zip</param>
+ </page>
+ <page name="panelization" gui-text="Panelization Options">
+ <label>For single design set horizontal and vertical repeats to 1</label>
+ <spacer />
+ <param name="x-repeats" type="int" min="1" max="20" gui-text="Horizontal repeats">1</param>
+ <param name="x-spacing" type="float" min="-1000" max="1000" gui-text="Horizontal spacing (mm)">100</param>
+ <param name="y-repeats" type="int" min="1" max="20" gui-text="Vertical repeats">1</param>
+ <param name="y-spacing" type="float" min="-1000" max="1000" gui-text="Vertical spacing (mm)">100</param>
+ </page>
+ <page name="output-options" gui-text="Output Options">
+ <param name="custom-file-name" type="string" gui-text="Custom file name"
+ gui-description="Defines the file names inside the zip archive. Leave empty for default file name."></param>
+ </page>
+ </param>
<script>
{{ command_tag | safe }}
</script>