DST — Tajima
DST is the Tajima industrial format: text header + 3 bytes per stitch + tail. Painless to read and write. Not the most feature-rich format (no extrinsic hoop, no colors), but the most widespread on industrial machines.
Structure
- 512-byte header: LA:, ST:, CO:, +X, -X, +Y, -Y, AX, AY, MX, MY, PR, ...
ASCII text with labels,
0x1aas terminator. - Stream of 3-byte records:
[b1, b2, ctrl](note the ctrl at the end), binary encoding with scattered bits for x, y and the Stitch/Jump/Color/End flags. - Tail: END record.
What it supports
- Trims: no direct command; the stream uses JUMPs for trim purposes (synthesis algorithm).
- Colors:
COLOR_CHANGEin the stream. - Hoop: not stored.
- Coordinates: deltas in 0.1 mm with scaling.
Limits
DST cannot express the hoop position: you set that on the machine.
Verified byte-for-byte against pyembroidery as the golden
reference (scripts/gen_format_golden.py).