This project contains python scripts that generate CAD-like stitch CSV files that can be used by the libembroidery library to be converted into the right format for your machine.
All incoming shapes should be transformed by the viewBox attribute, but they aren't. The scale is taken from the units on the width, and the actual value of the width and height are ignored.
It also can't currently handle discontinuous paths, such as:
<path
d="M 0 0 L 0 500 L 250 500 L 250 0 L 0 0 z M 750 0 L 750 500 L 1000 500 L 1000 0 L 750 0 z "
id="rect6426"
style="fill:#ff0000;fill-opacity:1" />
This will be digitized as:
Text elements, such as:
<text> Hello world!</text>
Will only be rendered if you are using my fork of svgpathtools
If a path does not end where it started, it will not get filled in. This is in contrast to how SVGs are typically rendered, where any area within a concave path are filled in.
This package may generate patterns that are too large for your machine to deal with.