diff --git a/src/app/components/HolonV2.tsx b/src/app/components/HolonV2.tsx index 340f0747..c515ca46 100644 --- a/src/app/components/HolonV2.tsx +++ b/src/app/components/HolonV2.tsx @@ -66,6 +66,33 @@ const OPEN_MORE = [ ["open15Title", "open15Body"], ] as const; +// The straight line keeps the source's emphasis: **bold** and *italic* marks in the +// dictionary strings, so translations can move them with the words they mark. +function rich(text: string) { + return text.split(/(\*\*[^*]+\*\*|\*[^*]+\*)/g).map((part, i) => { + if (part.startsWith("**") && part.endsWith("**")) return {part.slice(2, -2)}; + if (part.startsWith("*") && part.endsWith("*") && part.length > 2) return {part.slice(1, -1)}; + return part; + }); +} + +// The straight line (CIRISHolon CLAUDE.md, merged PR #198): twelve steps, each from +// something anyone can observe to the simplest explanation and the number a run returned. +const LINE = [ + { n: 1, title: "line1Title", body: "line1Body" }, + { n: 2, title: "line2Title", body: "line2Body", number: "line2Number" }, + { n: 3, title: "line3Title", body: "line3Body" }, + { n: 4, title: "line4Title", body: "line4Body" }, + { n: 5, title: "line5Title", body: "line5Body" }, + { n: 6, title: "line6Title", body: "line6Body" }, + { n: 7, title: "line7Title", body: "line7Body" }, + { n: 8, title: "line8Title", body: "line8Body" }, + { n: 9, title: "line9Title", body: "line9Body" }, + { n: 10, title: "line10Title", body: "line10Body", campaign: "line10Campaign" }, + { n: 11, title: "line11Title", body: "line11Body", campaigns: "line11Campaigns" }, + { n: 12, title: "line12Title", body: "line12Body", campaign: "line12Campaign" }, +] as const; + export default function HolonV2({ t, locale }: { t: Dictionary; locale: string }) { const p = t.holonPage; @@ -92,6 +119,37 @@ export default function HolonV2({ t, locale }: { t: Dictionary; locale: string } + {/* The straight line, after the locked-down callout: the chain from observables first, detail after. */} +
+

{p.lineLabel}

+

{rich(p.lineIntro)}

+ {LINE.map((step) => ( +
+

+ + {step.n}. {p[step.title]} + +

+

{rich(p[step.body])}

+ {"number" in step && ( +

+ {p.lineNumber} {rich(p[step.number])} +

+ )} + {"campaign" in step && ( +

+ {p.lineCampaign} {rich(p[step.campaign])} +

+ )} + {"campaigns" in step && ( +

+ {p.lineCampaigns} {rich(p[step.campaigns])} +

+ )} +
+ ))} +
+ {/* The live engine: a still it drew, with a play mark, opening the simulation. */}