Generalized the shared renderer (datasheet-exact.js) so the per-model template path is no longer DSCA-only — 8B/SCM5B now route through the same templates/slotMap/fround path as DSCA. SCM7B stays on its separate parse7BRawData/legacy path (excluded). Changes (all behind the per-model `validated` gate; non-templated families byte-unchanged, and DSCA verified non-regressed at 54/56 + staged-92 still render): - Load 8b5bscm-templates.json (MINED_8B5BSCM); for family 8B/SCM5B, a mined template takes the template path (else falls through to the legacy DATA_LINES path). - Final-Test header is now the verbatim captured `ftHeader` (8B/5B use two schemes — legacy "Measured Value" vs DSCA "Measured Value*"); enrich-8b5bscm.js captured it for all 136 from the Hoffman originals. - Accuracy data formatter chosen by input type detected from accHeader: frequency(Hz)/ AC(AAC/VAC) -> formatAccuracyLineDSCA3345 (now takes inputType, not model prefix); standard voltage/current/temp -> legacy formatAccuracyLine. - parseRawData step-skip generalized to any templated model (skipStepIfStatus). - Footer 240VAC/Hi-Pot family blocks skipped for templated models (rows carry them). - Templated SCM5B prepends "SCM" to the printed model name. - slotmap-from-hoffman.js parameterized (DSCA_TPL) — derived 80 slotMaps for 8b5bscm. Validation vs live Hoffman originals (validate-mined.js): 37/136 pass and are marked validated -> 13 real 8B/SCM5B render live via the template path; 24 SCM7B already match via the unchanged legacy path. Everything else stays null (gated, safe) — nothing published. Remaining long tail (well-characterized, next session): ~66 render-null need slotMaps the Hoffman-oracle derivation couldn't get (vintage / parse); ~33 multi-nuance fails: Final-Test sign handling on some 8B/5B measured values, accuracy-precision fround in the legacy std formatter, "Packing Check List" vs "Check List" variants, and other per-model footer/format quirks. Each failing model stacks several, so single fixes don't flip them. Tools: enrich-8b5bscm.js, validate-mined.js (generalized validator), slotmap-from-hoffman.js. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
50 KiB
50 KiB