Stage 1: targen UI & argv builder #7

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

Summary

Stage 1 form + buildTargenArgs. Honour -f. Do not pass targen -u.

Spec refs

docs/08-stage1-targen.md, 04-argyll-binaries.md §1.2. #44 #162 #172.

Scope

In: UI, argv, spawn targen_{basename}, log view.
Out: resume (issue 8), cal targen (issue 29).

Implementation notes

Always -v -d {2|4}. RGB -d 2, CMYK -d 4.
Patch presets 400 / 800 default / 1500 / custom. -f N required when N>0 (omit ⇒ Argyll 836).
White -e, black -B (RGB default 4, CMYK 0 on colour-space switch).
Advanced: -g -s -n; -N skip if |x-0.50|<0.001; -c via selectProfileFile; -G; -A even at 0.10 (no default-skip); algorithm -t|-r|-R|-q|-Q|-i|-I with ofps/default = no extra flag; CMYK-only -l 1–400; -V skip ≈1.0; -p skip ≈1.0 and >0.
Basename + cwd required before Generate. Process id targen_{basename}.
Port v0.8.5 Rust golden vectors (test_build_targen_args_*).
2-column equal-height advanced rows (#162).

Rewrite invariants

#44 honour -f. Field names round-trip to argv. #162 aligned rows. #172 dedicated profile picker.

Dependencies

Blocks-on: 2, 3, 4, 6.
Unblocks: 8, 9, 29.

Test

  • CI/mock: argv goldens every flag combo including RGB ignoring -l and total_patches fallback.
  • Hardware: N/A.

Acceptance criteria

  • exit 0 → .ti1 exists → Stage 2 unlocks.
  • Omitting -f is a test failure, not a product behaviour.
## Summary Stage 1 form + `buildTargenArgs`. Honour `-f`. Do not pass `targen -u`. ## Spec refs docs/08-stage1-targen.md, 04-argyll-binaries.md §1.2. #44 #162 #172. ## Scope In: UI, argv, spawn `targen_{basename}`, log view. Out: resume (issue 8), cal targen (issue 29). ## Implementation notes Always `-v -d {2|4}`. RGB `-d 2`, CMYK `-d 4`. Patch presets 400 / 800 default / 1500 / custom. `-f N` required when N>0 (omit ⇒ Argyll 836). White `-e`, black `-B` (RGB default 4, CMYK 0 on colour-space switch). Advanced: `-g` `-s` `-n`; `-N` skip if |x-0.50|<0.001; `-c` via `selectProfileFile`; `-G`; `-A` even at 0.10 (no default-skip); algorithm `-t|-r|-R|-q|-Q|-i|-I` with `ofps`/default = no extra flag; CMYK-only `-l` 1–400; `-V` skip ≈1.0; `-p` skip ≈1.0 and >0. Basename + cwd required before Generate. Process id `targen_{basename}`. Port v0.8.5 Rust golden vectors (`test_build_targen_args_*`). 2-column equal-height advanced rows (#162). ## Rewrite invariants #44 honour `-f`. Field names round-trip to argv. #162 aligned rows. #172 dedicated profile picker. ## Dependencies Blocks-on: 2, 3, 4, 6. Unblocks: 8, 9, 29. ## Test - CI/mock: argv goldens every flag combo including RGB ignoring `-l` and total_patches fallback. - Hardware: N/A. ## Acceptance criteria - [x] exit 0 → `.ti1` exists → Stage 2 unlocks. - [x] Omitting `-f` is a test failure, not a product behaviour.
gronod added this to the M2 — Target generation & layout milestone 2026-09-08 17:39:44 +01:00
gronod added the
Priority
Critical
1
Project/ICCery-v2Feature/BackendFeature/UI
labels 2026-09-08 17:39:44 +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#7