PES / PEC — Brother
PES è il formato Brother moderno. PEC è il blocco colori + thumb che vivono dentro un PES (ma possono stare anche separati). I file hanno magic bytes riconoscibili; la lettura sniffa dal contenuto.
Caratteristiche
- Codifica punti: delta signed in unità da 0,1 mm con scaling nel header.
- Colori: sequence di indici in una tabella, matassine Brother; lo scrittore avvicina i colori del tuo file al thread chart Brother più vicino (
warn.COLOR_QUANTIZED). - Trims: supportati come comando byte nel flusso comandi.
- Telaio: header contiene dimensioni telaio note.
Lettura
packages/core/src/readers/pes.ts e pec.ts
riconoscono il formato via magic bytes
(isPec(), isPes() in
registry.ts:detectFormat). L'header PES esiste in molte
versioni diverse; il reader gestisce PES v1–v10+ con un unico path robusto.
Scrittura
src/writers/pes.ts + pec.ts producono un PES
autoportante con il suo PEC incorporato. Colori: avvicinati al chart Brother.
Nota standard mostrata nella UI:
PES: i colori vengono avvicinati alle matassine Brother.