<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Jump Stitch to Stroke</name>
    <id>org.{{ id_inkstitch }}.jump_to_stroke</id>
    <param name="extension" type="string" gui-hidden="true">jump_to_stroke</param>
    <effect>
        <object-type>all</object-type>
        <effects-menu>
            <submenu name="{{ menu_inkstitch }}" translatable="no">
                <submenu name="Tools: Stroke" />
            </submenu>
        </effects-menu>
    </effect>
    <param name="tab" type="notebook">
      <page name="options" gui-text="Options">
        <param name="minimum-jump-length" type="float" precision="2" min="0" max="100"
               gui-text="Convert jumps not shorter than (mm)">3.0</param>
        <param name="maximum-jump-length" type="float" precision="2" min="0" max="10000"
               gui-text="Convert jumps not longer than (mm)">0</param>
        <param name="connect" type="optiongroup" appearance="combo" gui-text="Connect">
            <option value="all">all</option>
            <option value="layer">in same layer</option>
            <option value="group">in same group</option>
        </param>
        <label>Do not connect after</label>
        <param name="exclude-trim" type="bool" indent="1" gui-text="Trim">true</param>
        <param name="exclude-stop" type="bool" indent="1" gui-text="Stop">true</param>
        <param name="exclude-force-lock-stitch" indent="1" type="bool" gui-text="Force lock stitch">true</param>
      </page>
      <page name="output-settings" gui-text="Output settings">
        <param name="merge" type="bool" gui-text="Merge consecutive strokes of same type">false</param>
        <param name="merge_subpaths" type="bool" gui-text="Merge subpaths of stroke elements">false</param>
        <spacer />
        <separator />
        <spacer />
        <label>These settings only apply for unmerged connectors</label>
        <param name="stitch-length" type="float" indent="1" gui-text="Running stitch length (mm)">2.5</param>
        <param name="tolerance" type="float" indent="1" gui-text="Running stitch tolerance (mm)">2.0</param>
      </page>
      <page name="info" gui-text="Help">
        <label appearance="header">This extension converts jump stitches to running stitches.</label>
        <label>Get more information on our website</label>
        <label appearance="url">https://inkstitch.org/docs/stroke-tools/#jump-to-stroke</label>
      </page>
    </param>
    <script>
        {{ command_tag | safe }}
    </script>
</inkscape-extension>
