Hacker News new | ask | show | jobs
by ssgodderidge 23 days ago
Love to see it OP! I would love to try this out.

I'm curious, how do you make sure that the embroidery files are valid of the file type (.exp) for example, and that B) things aren't done in such a way that cause the needle to break, stiches to overlap too much, etc etc that would otherwise harm a machine that reads the file?

2 comments

Every format is written from the same list of stitch commands using byte layouts from pyembroidery. For machine safety, the defaults use standard densities and stitch lengths. There’s also a density map that shows where stitches pile up. If you give it a try and experience any problems, create a GH Issue and i'll look into it!
I had a similar question some time ago, so I started a project to describe binary file embroidery formats for structs in Kaitai Struct specs:

https://github.com/broideryfab/embroidery-ksy

Binary formats IDE:

https://broideryfab.com/formats/ide/

Next, I plan to test it on real devices and track a compatibility verification matrix