Night-mode styling, French cross-references, and the log through Part VI

- theme.scss and figures draw with the extension's --calc-… tokens; light/dark
  pair plus the high-contrast button; a11y highlight style for html
- figure labels split so none leaves its viewBox in any language
- _quarto-fr.yml: French cross-reference prefixes
- notes extension synced to 2.8.18
- conv/: Parts IV, V and VI logged, pasted terminal output redacted

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
MatsuneMikuroiandClaude Opus 5 committed 2026-10-06 03:36:51 +02:00
1 parent afb816f459
commit f7fa60ba81
62 files changed
+3552 -852

No files matched your search

+42 -61
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 560 700" width="560" height="700"
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 560 730" width="560" height="730"
role="img" aria-labelledby="mj-title">
<title id="mj-title">Die vermittelte Fassung in einer JVM: ConsoleIn legt eine Nachricht in consoleIn.outbox, ein Vermittler nimmt sie und legt sie in rot13.inbox, ROT13 nimmt sie und legt sein Ergebnis in rot13.outbox, ein zweiter Vermittler verschiebt es nach consoleOut.inbox, und ConsoleOut nimmt es und gibt es aus.</title>
<style><![CDATA[
@@ -9,12 +9,19 @@
* Classes, not per-element fills, do the work: one edit here restyles the
* whole book.
*
* The palette is theme.scss's: teal #20666f for structure, amber #8a5a08 for
* the warning accent, ink #1b2430 for text, IBM Plex to match the page.
* Colours are the extension's tokens (_extensions/notes/theme.css) with a
* literal fallback, which covers all three ways a figure is seen:
*
* Dark theme: the @media block follows the reader's system setting. librsvg
* ignores media queries when it makes the pdf, so print always gets the light
* theme -- which is what a printed page wants.
* - inlined into the page by figures/flow-player.html: the tokens resolve
* against the page, so the figure follows light, night and high contrast;
* - as a plain <img> (JavaScript off): the fallback applies, and night mode
* comes from the extension's invert filter on main img[src$=".svg"];
* - in the pdf: librsvg ignores var() and uses the fallback, so print gets
* the light palette -- which is what a printed page wants.
*
* The fallbacks are this book's own light values; the tokens carry the night
* and high-contrast ones. Nothing here keys off prefers-color-scheme: the
* page's toggle decides, never the reader's system setting.
*/
svg {
@@ -25,32 +32,32 @@ svg {
/* ---- surfaces ------------------------------------------------------- */
.box { fill: #eef3f7; stroke: #20666f; stroke-width: 1.4; }
.box-weak { fill: #eef3f7; stroke: #20666f; stroke-width: 1.4; }
.box-accent { fill: #e5eff1; stroke: #20666f; stroke-width: 1.8; }
.box-warn { fill: #f8f1e0; stroke: #8a5a08; stroke-width: 1.4; }
.box-plain { fill: #fbfcfd; stroke: #dae0e8; stroke-width: 1.2; }
.diamond { fill: #e5eff1; stroke: #20666f; stroke-width: 1.4; }
.ellipse { fill: #fbfcfd; stroke: #5a6879; stroke-width: 1.2; }
.box { fill: var(--calc-faint, #eef3f7); stroke: var(--calc-notecolor, #20666f); stroke-width: 1.4; }
.box-weak { fill: var(--calc-faint, #eef3f7); stroke: var(--calc-notecolor, #20666f); stroke-width: 1.4; }
.box-accent { fill: var(--calc-faint, #e5eff1); stroke: var(--calc-notecolor, #20666f); stroke-width: 1.8; }
.box-warn { fill: var(--calc-faint, #f8f1e0); stroke: var(--calc-accent-b, #D1541F); stroke-width: 1.4; }
.box-plain { fill: var(--calc-surface, #fbfcfd); stroke: var(--calc-grid, #dae0e8); stroke-width: 1.2; }
.diamond { fill: var(--calc-faint, #e5eff1); stroke: var(--calc-notecolor, #20666f); stroke-width: 1.4; }
.ellipse { fill: var(--calc-surface, #fbfcfd); stroke: var(--calc-muted, #5a6879); stroke-width: 1.2; }
/* ---- lines ---------------------------------------------------------- */
.edge { fill: none; stroke: #5a6879; stroke-width: 1.3; }
.edge-strong{ fill: none; stroke: #20666f; stroke-width: 1.8; }
.edge-warn { fill: none; stroke: #8a5a08; stroke-width: 1.6; }
.edge-dash { fill: none; stroke: #5a6879; stroke-width: 1.2; stroke-dasharray: 5 3; }
.rule { stroke: #dae0e8; stroke-width: 1; }
.edge { fill: none; stroke: var(--calc-muted, #5a6879); stroke-width: 1.3; }
.edge-strong{ fill: none; stroke: var(--calc-notecolor, #20666f); stroke-width: 1.8; }
.edge-warn { fill: none; stroke: var(--calc-accent-b, #D1541F); stroke-width: 1.6; }
.edge-dash { fill: none; stroke: var(--calc-muted, #5a6879); stroke-width: 1.2; stroke-dasharray: 5 3; }
.rule { stroke: var(--calc-grid, #dae0e8); stroke-width: 1; }
/* ---- text ----------------------------------------------------------- */
.t { fill: #1b2430; font-size: 13px; }
.t-sm { fill: #1b2430; font-size: 11px; }
.t-lead { fill: #1b2430; font-size: 14px; font-weight: 600; }
.t-mut { fill: #5a6879; font-size: 11px; }
.t-key { fill: #1b2430; font-size: 12px; text-decoration: underline; }
.t-accent { fill: #20666f; font-size: 12px; font-weight: 600; }
.t-warn { fill: #8a5a08; font-size: 12px; font-weight: 600; }
.t-mono { fill: #1b2430; font-size: 11.5px;
.t { fill: var(--calc-ink, #1b2430); font-size: 13px; }
.t-sm { fill: var(--calc-ink, #1b2430); font-size: 11px; }
.t-lead { fill: var(--calc-ink, #1b2430); font-size: 14px; font-weight: 600; }
.t-mut { fill: var(--calc-muted, #5a6879); font-size: 11px; }
.t-key { fill: var(--calc-ink, #1b2430); font-size: 12px; text-decoration: underline; }
.t-accent { fill: var(--calc-notecolor, #20666f); font-size: 12px; font-weight: 600; }
.t-warn { fill: var(--calc-accent-b, #D1541F); font-size: 12px; font-weight: 600; }
.t-mono { fill: var(--calc-ink, #1b2430); font-size: 11.5px;
font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; }
.mid { text-anchor: middle; }
@@ -67,7 +74,7 @@ svg {
.node:hover .box,
.node:hover .box-accent,
.node:hover .diamond { stroke-width: 2.6; }
.node:hover .t, .node:hover .t-lead { fill: #20666f; }
.node:hover .t, .node:hover .t-lead { fill: var(--calc-notecolor, #20666f); }
svg:hover .node:not(:hover) { opacity: .55; }
@@ -78,43 +85,14 @@ svg:not(:has(.node)) .node { opacity: 1; }
.node { transition: none; }
}
/* ---- dark theme ------------------------------------------------------ */
@media (prefers-color-scheme: dark) {
.box { fill: #1d2b33; stroke: #4c9aa5; }
.box-weak { fill: #1d2b33; stroke: #4c9aa5; }
.box-accent { fill: #24363d; stroke: #4c9aa5; }
.box-warn { fill: #332a18; stroke: #c99a3a; }
.box-plain { fill: #161b22; stroke: #30363d; }
.diamond { fill: #24363d; stroke: #4c9aa5; }
.ellipse { fill: #161b22; stroke: #8b98a8; }
.edge { stroke: #8b98a8; }
.edge-strong{ stroke: #4c9aa5; }
.edge-warn { stroke: #c99a3a; }
.edge-dash { stroke: #8b98a8; }
.rule { stroke: #30363d; }
.t, .t-sm, .t-lead, .t-key, .t-mono { fill: #e6edf3; }
.t-mut { fill: #8b98a8; }
.t-accent { fill: #4c9aa5; }
.t-warn { fill: #c99a3a; }
.node:hover .t, .node:hover .t-lead { fill: #7fc4cf; }
.arrow { fill: #8b98a8; }
.arrow-strong { fill: #4c9aa5; }
.arrow-warn { fill: #c99a3a; }
}
/* ---- arrowheads ======================================================
* marker contents cannot inherit the referencing element's fill, so each
* arrowhead is its own class and is themed alongside the line it ends.
*/
.arrow { fill: #5a6879; }
.arrow-strong { fill: #20666f; }
.arrow-warn { fill: #8a5a08; }
.arrow { fill: var(--calc-muted, #5a6879); }
.arrow-strong { fill: var(--calc-notecolor, #20666f); }
.arrow-warn { fill: var(--calc-accent-b, #D1541F); }
]]></style>
@@ -201,6 +179,9 @@ svg:not(:has(.node)) .node { opacity: 1; }
<text class="t-lead mid" data-label="consoleout" x="270" y="648">ConsoleOut — „ich gebe aus“</text>
</g>
<!-- side note: who holds the topology -->
<text class="t-warn" data-label="topology" x="22" y="672">Keine Fähigkeit nennt eine andere. Die Topologie steckt nur in den zwei Vermittlern, gestartet in main().</text>
<!-- side note: who holds the topology. Two lines, and below the frame:
one line ran past the viewBox in German and French, and an svg root
clips instead of overflowing, which truncated the label. -->
<text class="t-warn" data-label="topology" x="14" y="702">Keine Fähigkeit nennt eine andere.</text>
<text class="t-warn" data-label="topology2" x="14" y="718">Die Topologie steckt nur in den zwei Vermittlern, gestartet in main().</text>
</svg>

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 10 KiB