kopia lustrzana https://github.com/inkstitch/inkstitch
add output INX generator
rodzic
28e8efebf2
commit
40a3431280
|
@ -21,9 +21,9 @@ def libembroidery_input_formats():
|
|||
while(curFormat):
|
||||
extension = embFormat_extension(curFormat)
|
||||
description = embFormat_description(curFormat)
|
||||
writerState = embFormat_readerState(curFormat)
|
||||
reader_state = embFormat_readerState(curFormat)
|
||||
|
||||
if writerState.strip() and embFormat_type(curFormat) != EMBFORMAT_OBJECTONLY:
|
||||
if reader_state.strip() and embFormat_type(curFormat) != EMBFORMAT_OBJECTONLY:
|
||||
# extension includes the dot, so we'll remove it
|
||||
yield extension[1:], description
|
||||
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import sys, os
|
||||
from os.path import dirname
|
||||
from libembroidery import *
|
||||
from jinja2 import Environment, FileSystemLoader, select_autoescape
|
||||
|
||||
|
||||
def build_environment():
|
||||
template_dir = os.path.join(dirname(dirname(os.path.realpath(__file__))), "templates")
|
||||
|
||||
return Environment(
|
||||
loader = FileSystemLoader(template_dir),
|
||||
autoescape = True
|
||||
)
|
||||
|
||||
|
||||
def libembroidery_output_formats():
|
||||
formatList = embFormatList_create()
|
||||
curFormat = formatList
|
||||
while(curFormat):
|
||||
extension = embFormat_extension(curFormat)
|
||||
description = embFormat_description(curFormat)
|
||||
writer_state = embFormat_writerState(curFormat)
|
||||
|
||||
if writer_state.strip() and embFormat_type(curFormat) != EMBFORMAT_OBJECTONLY:
|
||||
# extension includes the dot, so we'll remove it
|
||||
yield extension[1:], description
|
||||
|
||||
curFormat = curFormat.next
|
||||
|
||||
|
||||
def main():
|
||||
env = build_environment()
|
||||
template = env.get_template('embroider_output.inx')
|
||||
|
||||
for format, description in libembroidery_output_formats():
|
||||
inx = template.render(format=format, description=description)
|
||||
|
||||
with open("inx/inkstitch_output_%s.inx" % format.upper(), 'w') as inx_file:
|
||||
inx_file.write(inx)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>COL file output</_name>
|
||||
<id>org.inkstitch.output.col</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.col</extension>
|
||||
<mimetype>application/x-embroidery-col</mimetype>
|
||||
<_filetypename>Ink/Stitch: Embroidery Thread Color Format (.col)</_filetypename>
|
||||
<_filetypetooltip>Save design in COL format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">col</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>CSV file output</_name>
|
||||
<id>org.inkstitch.output.csv</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.csv</extension>
|
||||
<mimetype>application/x-embroidery-csv</mimetype>
|
||||
<_filetypename>Ink/Stitch: Comma Separated Values Format (.csv)</_filetypename>
|
||||
<_filetypetooltip>Save design in CSV format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">csv</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>DST file output</_name>
|
||||
<id>org.inkstitch.output.dst</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.dst</extension>
|
||||
<mimetype>application/x-embroidery-dst</mimetype>
|
||||
<_filetypename>Ink/Stitch: Tajima Embroidery Format (.dst)</_filetypename>
|
||||
<_filetypetooltip>Save design in DST format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">dst</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>EDR file output</_name>
|
||||
<id>org.inkstitch.output.edr</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.edr</extension>
|
||||
<mimetype>application/x-embroidery-edr</mimetype>
|
||||
<_filetypename>Ink/Stitch: Embird Embroidery Format (.edr)</_filetypename>
|
||||
<_filetypetooltip>Save design in EDR format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">edr</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>EXP file output</_name>
|
||||
<id>org.inkstitch.output.exp</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.exp</extension>
|
||||
<mimetype>application/x-embroidery-exp</mimetype>
|
||||
<_filetypename>Ink/Stitch: Melco Embroidery Format (.exp)</_filetypename>
|
||||
<_filetypetooltip>Save design in EXP format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">exp</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>HUS file output</_name>
|
||||
<id>org.inkstitch.output.hus</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.hus</extension>
|
||||
<mimetype>application/x-embroidery-hus</mimetype>
|
||||
<_filetypename>Ink/Stitch: Husqvarna Viking Embroidery Format (.hus)</_filetypename>
|
||||
<_filetypetooltip>Save design in HUS format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">hus</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>INF file output</_name>
|
||||
<id>org.inkstitch.output.inf</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.inf</extension>
|
||||
<mimetype>application/x-embroidery-inf</mimetype>
|
||||
<_filetypename>Ink/Stitch: Embroidery Color Format (.inf)</_filetypename>
|
||||
<_filetypetooltip>Save design in INF format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">inf</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>JEF file output</_name>
|
||||
<id>org.inkstitch.output.jef</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.jef</extension>
|
||||
<mimetype>application/x-embroidery-jef</mimetype>
|
||||
<_filetypename>Ink/Stitch: Janome Embroidery Format (.jef)</_filetypename>
|
||||
<_filetypetooltip>Save design in JEF format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">jef</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>KSM file output</_name>
|
||||
<id>org.inkstitch.output.ksm</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.ksm</extension>
|
||||
<mimetype>application/x-embroidery-ksm</mimetype>
|
||||
<_filetypename>Ink/Stitch: Pfaff Embroidery Format (.ksm)</_filetypename>
|
||||
<_filetypetooltip>Save design in KSM format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">ksm</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>MAX file output</_name>
|
||||
<id>org.inkstitch.output.max</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.max</extension>
|
||||
<mimetype>application/x-embroidery-max</mimetype>
|
||||
<_filetypename>Ink/Stitch: Pfaff Embroidery Format (.max)</_filetypename>
|
||||
<_filetypetooltip>Save design in MAX format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">max</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>PCD file output</_name>
|
||||
<id>org.inkstitch.output.pcd</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.pcd</extension>
|
||||
<mimetype>application/x-embroidery-pcd</mimetype>
|
||||
<_filetypename>Ink/Stitch: Pfaff Embroidery Format (.pcd)</_filetypename>
|
||||
<_filetypetooltip>Save design in PCD format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">pcd</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>PCQ file output</_name>
|
||||
<id>org.inkstitch.output.pcq</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.pcq</extension>
|
||||
<mimetype>application/x-embroidery-pcq</mimetype>
|
||||
<_filetypename>Ink/Stitch: Pfaff Embroidery Format (.pcq)</_filetypename>
|
||||
<_filetypetooltip>Save design in PCQ format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">pcq</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>PCS file output</_name>
|
||||
<id>org.inkstitch.output.pcs</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.pcs</extension>
|
||||
<mimetype>application/x-embroidery-pcs</mimetype>
|
||||
<_filetypename>Ink/Stitch: Pfaff Embroidery Format (.pcs)</_filetypename>
|
||||
<_filetypetooltip>Save design in PCS format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">pcs</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>PEC file output</_name>
|
||||
<id>org.inkstitch.output.pec</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.pec</extension>
|
||||
<mimetype>application/x-embroidery-pec</mimetype>
|
||||
<_filetypename>Ink/Stitch: Brother Embroidery Format (.pec)</_filetypename>
|
||||
<_filetypetooltip>Save design in PEC format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">pec</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>PES file output</_name>
|
||||
<id>org.inkstitch.output.pes</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.pes</extension>
|
||||
<mimetype>application/x-embroidery-pes</mimetype>
|
||||
<_filetypename>Ink/Stitch: Brother Embroidery Format (.pes)</_filetypename>
|
||||
<_filetypetooltip>Save design in PES format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">pes</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>PLT file output</_name>
|
||||
<id>org.inkstitch.output.plt</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.plt</extension>
|
||||
<mimetype>application/x-embroidery-plt</mimetype>
|
||||
<_filetypename>Ink/Stitch: AutoCAD Plot Drawing Format (.plt)</_filetypename>
|
||||
<_filetypetooltip>Save design in PLT format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">plt</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>RGB file output</_name>
|
||||
<id>org.inkstitch.output.rgb</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.rgb</extension>
|
||||
<mimetype>application/x-embroidery-rgb</mimetype>
|
||||
<_filetypename>Ink/Stitch: RGB Embroidery Format (.rgb)</_filetypename>
|
||||
<_filetypetooltip>Save design in RGB format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">rgb</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>THR file output</_name>
|
||||
<id>org.inkstitch.output.thr</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.thr</extension>
|
||||
<mimetype>application/x-embroidery-thr</mimetype>
|
||||
<_filetypename>Ink/Stitch: ThredWorks Embroidery Format (.thr)</_filetypename>
|
||||
<_filetypetooltip>Save design in THR format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">thr</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>TXT file output</_name>
|
||||
<id>org.inkstitch.output.txt</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.txt</extension>
|
||||
<mimetype>application/x-embroidery-txt</mimetype>
|
||||
<_filetypename>Ink/Stitch: Text File (.txt)</_filetypename>
|
||||
<_filetypetooltip>Save design in TXT format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">txt</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>VP3 file output</_name>
|
||||
<id>org.inkstitch.output.vp3</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.vp3</extension>
|
||||
<mimetype>application/x-embroidery-vp3</mimetype>
|
||||
<_filetypename>Ink/Stitch: Pfaff Embroidery Format (.vp3)</_filetypename>
|
||||
<_filetypetooltip>Save design in VP3 format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">vp3</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>XXX file output</_name>
|
||||
<id>org.inkstitch.output.xxx</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.xxx</extension>
|
||||
<mimetype>application/x-embroidery-xxx</mimetype>
|
||||
<_filetypename>Ink/Stitch: Singer Embroidery Format (.xxx)</_filetypename>
|
||||
<_filetypetooltip>Save design in XXX format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">xxx</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
|
@ -15,4 +15,3 @@
|
|||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
||||
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||
<_name>{{ format | upper }} file output</_name>
|
||||
<id>org.inkstitch.output.{{ format }}</id>
|
||||
<dependency type="executable" location="extensions">inkstitch.py</dependency>
|
||||
<dependency type="executable" location="extensions">inkex.py</dependency>
|
||||
<output>
|
||||
<extension>.{{ format }}</extension>
|
||||
<mimetype>application/x-embroidery-{{ format }}</mimetype>
|
||||
<_filetypename>Ink/Stitch: {{ description }} (.{{ format }})</_filetypename>
|
||||
<_filetypetooltip>Save design in {{ format | upper }} format using Ink/Stitch</_filetypetooltip>
|
||||
<dataloss>true</dataloss>
|
||||
</output>
|
||||
<param name="extension" type="string" gui-hidden="true">output</param>
|
||||
<param name="format" type="string" gui-hidden="true">{{ format }}</param>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">inkstitch.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
Ładowanie…
Reference in New Issue