Project a characterization into the (top, bottom) label strips.
Pure function of the eight characterization fields (plus the presentation
facts the fields don't carry: whether the input was >512-bit truncated, the
bound suffix checksum, the out-of-band user note, and the monospace
lineChars budget the grid leaves for the top strip — used only to truncate
the elastic prefix slot; null = do not truncate).
top = [+hash ]PRIMARY[, MOD]...[, SIZE][, <prefix>] — ", " joined, no
trailing :. The +hash marker is reflected here so a text-only consumer
still sees it (the renderer styles it as a bold-red tspan). The trailing
<prefix> slot echoes a front prefix stripped from the visualized
core (a bind="none" leading part); it is the only slot that may be truncated
(to lineChars) and may then end in .... Fold-prefix schemes
(did/urn/gitoid/swhid) show their prefix as PRIMARY and get no extra slot.
bottom = ...<suffix> then (<note>) — the bound (now-verified) checksum
and the user caption. Empty string when neither is present.
Returns plain strings; the renderer maps top/bottom onto the SVG label strips.
Project a characterization into the (top, bottom) label strips.
Pure function of the eight characterization fields (plus the presentation facts the fields don't carry: whether the input was >512-bit
truncated, the boundsuffixchecksum, the out-of-band usernote, and the monospacelineCharsbudget the grid leaves for the top strip — used only to truncate the elastic prefix slot;null= do not truncate).[+hash ]PRIMARY[, MOD]...[, SIZE][, <prefix>]— ", " joined, no trailing:. The+hashmarker is reflected here so a text-only consumer still sees it (the renderer styles it as a bold-red tspan). The trailing<prefix>slot echoes a front prefix stripped from the visualized core (a bind="none" leading part); it is the only slot that may be truncated (tolineChars) and may then end in.... Fold-prefix schemes (did/urn/gitoid/swhid) show their prefix as PRIMARY and get no extra slot....<suffix>then(<note>)— the bound (now-verified) checksum and the user caption. Empty string when neither is present.Returns plain strings; the renderer maps top/bottom onto the SVG label strips.