Stage 2: printtarg UI & argv builder #9

Closed
opened 2026-09-08 17:40:11 +01:00 by gronod · 0 comments
Owner

Summary

Stage 2 layout form + buildPrinttargArgs. Always -v -u. Default -R 1.

Spec refs

docs/09-stage2-printtarg.md, 04-argyll-binaries.md §2.2, 05-argyll-fork.md §2.3. #163 #119 #224.

Scope

In: UI, argv, spawn printtarg_{basename}, CM warning banner, -K/-I builder hooks.
Out: actual printing (M3), Stage 0 toggle wiring (29).

Implementation notes

-v -u -i {instrument} -p {page} [-r | -R seed] [-d label] {-t|-T} {dpi} [-K|-I cal] basename

Instruments: i1 (default), p3, CM, SS, 20, 22, 41, 51.
Pages: A4/A4R/A3/A2/Letter/LetterR/Legal/4x6/11x17/custom WxH mm ≥50.
Bit depth 8 -t / 16 -T, DPI default 300.
Layout: deterministic -R 1 default; custom seed -R N N≥1; raster -r supersedes seed.
-d is the LABEL (fork #19 / #119), not colour space, not density.
Auto label: ICCery - {basename} - {printer} - {ink} - {driverPaper} - {actualPaper} - DD/MM/YYYY HH:MM.
-K/-I must exist on the builder in M2. Never -K a CAL_ basename.
CM warning banner present even while print is stubbed.
Port Rust goldens (i1/A4/8bit, CM/Letter/16bit, custom page, label, seed 42, raster, -K, -I).

Rewrite invariants

#163 deterministic default. #119 -d is a label. #224 never -K a CAL_ chart.

Dependencies

Blocks-on: 2, 4, 7.
Unblocks: 10, 11, 29.

Test

  • CI/mock: argv goldens; deterministic re-run identical .ti2 bytes.
  • Hardware: N/A.

Acceptance criteria

  • Re-running Stage 2 on the same .ti1 with default seed produces identical .ti2/.tif.
## Summary Stage 2 layout form + `buildPrinttargArgs`. Always `-v -u`. Default `-R 1`. ## Spec refs docs/09-stage2-printtarg.md, 04-argyll-binaries.md §2.2, 05-argyll-fork.md §2.3. #163 #119 #224. ## Scope In: UI, argv, spawn `printtarg_{basename}`, CM warning banner, `-K/-I` builder hooks. Out: actual printing (M3), Stage 0 toggle wiring (29). ## Implementation notes ``` -v -u -i {instrument} -p {page} [-r | -R seed] [-d label] {-t|-T} {dpi} [-K|-I cal] basename ``` Instruments: `i1` (default), `p3`, `CM`, `SS`, `20`, `22`, `41`, `51`. Pages: A4/A4R/A3/A2/Letter/LetterR/Legal/4x6/11x17/custom WxH mm ≥50. Bit depth 8 `-t` / 16 `-T`, DPI default 300. Layout: deterministic `-R 1` default; custom seed `-R N` N≥1; raster `-r` supersedes seed. `-d` is the LABEL (fork #19 / #119), not colour space, not density. Auto label: `ICCery - {basename} - {printer} - {ink} - {driverPaper} - {actualPaper} - DD/MM/YYYY HH:MM`. `-K`/`-I` must exist on the builder in M2. Never `-K` a `CAL_` basename. CM warning banner present even while print is stubbed. Port Rust goldens (i1/A4/8bit, CM/Letter/16bit, custom page, label, seed 42, raster, -K, -I). ## Rewrite invariants #163 deterministic default. #119 `-d` is a label. #224 never `-K` a CAL_ chart. ## Dependencies Blocks-on: 2, 4, 7. Unblocks: 10, 11, 29. ## Test - CI/mock: argv goldens; deterministic re-run identical `.ti2` bytes. - Hardware: N/A. ## Acceptance criteria - [x] Re-running Stage 2 on the same `.ti1` with default seed produces identical `.ti2`/`.tif`.
gronod added this to the M2 — Target generation & layout milestone 2026-09-08 17:40:11 +01:00
gronod added the
Priority
Critical
1
Project/ICCery-v2Feature/BackendFeature/UI
labels 2026-09-08 17:40:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/iccery-v2-mac#9