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

+36 -58
View File
@@ -5,12 +5,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 {
@@ -21,32 +28,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; }
@@ -63,7 +70,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; }
@@ -74,40 +81,11 @@ 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); }
Binary file not shown.
+37 -59
View File
@@ -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>
@@ -152,5 +130,5 @@ svg:not(:has(.node)) .node { opacity: 1; }
<!-- who knows whom -->
<text class="t-sm" data-label="knows" x="14" y="176">main() kennt alle drei: ihre Namen, Argument- und Ergebnistypen und dass sie sofort verfügbar sind.</text>
<text class="t-mut" data-label="cost" x="14" y="202">Die Verdrahtung steht im Code selbst — Schritt 1 des Tutorials.</text>
<text class="t-mut" data-label="cost" x="14" y="202">Die Verdrahtung steht im Code selbst — Schritt 1.</text>
</svg>

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.
+37 -59
View File
@@ -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>
@@ -152,5 +130,5 @@ svg:not(:has(.node)) .node { opacity: 1; }
<!-- who knows whom -->
<text class="t-sm" data-label="knows" x="14" y="176">main() knows all three: their names, argument and result types, and that they are available right now.</text>
<text class="t-mut" data-label="cost" x="14" y="202">The wiring is written into the code itself — step 1 of the tutorial.</text>
<text class="t-mut" data-label="cost" x="14" y="202">The wiring is written into the code itself — step 1.</text>
</svg>

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.
+37 -59
View File
@@ -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>
@@ -152,5 +130,5 @@ svg:not(:has(.node)) .node { opacity: 1; }
<!-- who knows whom -->
<text class="t-sm" data-label="knows" x="14" y="176">main() les connaît tous les trois : leurs noms, les types d'arguments et de résultats, et le fait qu'ils sont disponibles immédiatement.</text>
<text class="t-mut" data-label="cost" x="14" y="202">Le câblage est écrit dans le code lui-même — étape 1 du tutoriel.</text>
<text class="t-mut" data-label="cost" x="14" y="202">Le câblage est écrit dans le code lui-même — étape 1.</text>
</svg>

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.
+47 -61
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 700" width="620" height="700"
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 750" width="620" height="750"
role="img" aria-labelledby="fp-title">
<title id="fp-title">Dieselbe Kette als fünf getrennte Prozesse auf einem Rechner: SensorService veröffentlicht eine .msg-Datei in consoleIn/outbox, ein Mediator-Prozess beobachtet dieses Verzeichnis und veröffentlicht eine Kopie in rot13/inbox, ProcessorService veröffentlicht sein Ergebnis in rot13/outbox, ein zweiter Mediator-Prozess verschiebt es nach consoleOut/inbox, und ActuatorService gibt es aus. Die vier Verzeichnisse bilden das Nachrichtenbrett auf einem lokalen Dateisystem.</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); }
]]>
[data-label="mediator1"] { font-size: 11px; }
@@ -205,9 +183,17 @@ svg:not(:has(.node)) .node { opacity: 1; }
<!-- the four directories belong to one message board on one filesystem -->
<path class="edge-dash" d="M436,98 H452 V580 H436"/>
<text class="t-mono" x="460" y="330">messageBoard/</text>
<text class="t-mut" data-label="board" x="460" y="348">Verzeichnis = Postfach, Datei = Nachricht</text>
<!-- two lines: one line of this label ran past the 620-wide viewBox in
German and French, where an svg root clips rather than overflows =
a truncated label at phone width. -->
<text class="t-mut" data-label="board" x="460" y="348">Verzeichnis = Postfach</text>
<text class="t-mut" data-label="board2" x="460" y="363">Datei = Nachricht</text>
<!-- the five processes are started by hand, one terminal each -->
<path class="edge-dash" d="M104,24 H88 V654 H104"/>
<text class="t-warn" data-label="topology" x="14" y="686">Fünf von Hand gestartete Prozesse. Die Topologie steckt nun in den zwei Mediator-Befehlszeilen — bei dem, der sie getippt hat.</text>
<!-- three lines: one ran well past the viewBox in every language, and an
svg root clips rather than overflows. -->
<text class="t-warn" data-label="topology" x="14" y="700">Fünf von Hand gestartete Prozesse.</text>
<text class="t-warn" data-label="topology2" x="14" y="716">Die Topologie steckt nun in den zwei Mediator-Befehlszeilen —</text>
<text class="t-warn" data-label="topology3" x="14" y="732">bei dem, der sie getippt hat.</text>
</svg>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.
+47 -61
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 700" width="620" height="700"
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 750" width="620" height="750"
role="img" aria-labelledby="fp-title">
<title id="fp-title">The same chain as five separate processes on one computer: SensorService publishes a .msg file into consoleIn/outbox, a Mediator process watches that directory and publishes a copy into rot13/inbox, ProcessorService publishes its result into rot13/outbox, a second Mediator process moves it into consoleOut/inbox, and ActuatorService prints it. The four directories form the message board on one local filesystem.</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>
@@ -203,9 +181,17 @@ svg:not(:has(.node)) .node { opacity: 1; }
<!-- the four directories belong to one message board on one filesystem -->
<path class="edge-dash" d="M436,98 H452 V580 H436"/>
<text class="t-mono" x="460" y="330">messageBoard/</text>
<text class="t-mut" data-label="board" x="460" y="348">directory = mailbox, file = message</text>
<!-- two lines: one line of this label ran past the 620-wide viewBox in
German and French, where an svg root clips rather than overflows =
a truncated label at phone width. -->
<text class="t-mut" data-label="board" x="460" y="348">directory = mailbox</text>
<text class="t-mut" data-label="board2" x="460" y="363">file = message</text>
<!-- the five processes are started by hand, one terminal each -->
<path class="edge-dash" d="M104,24 H88 V654 H104"/>
<text class="t-warn" data-label="topology" x="14" y="686">Five processes started by hand. The topology now lives in the two Mediator command lines — in whoever typed them.</text>
<!-- three lines: one ran well past the viewBox in every language, and an
svg root clips rather than overflows. -->
<text class="t-warn" data-label="topology" x="14" y="700">Five processes started by hand.</text>
<text class="t-warn" data-label="topology2" x="14" y="716">The topology now lives in the two Mediator command lines —</text>
<text class="t-warn" data-label="topology3" x="14" y="732">in whoever typed them.</text>
</svg>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.
+47 -61
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 700" width="620" height="700"
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 750" width="620" height="750"
role="img" aria-labelledby="fp-title">
<title id="fp-title">La même chaîne sous forme de cinq processus distincts sur un seul ordinateur : SensorService publie un fichier .msg dans consoleIn/outbox, un processus Mediator surveille ce répertoire et publie une copie dans rot13/inbox, ProcessorService publie son résultat dans rot13/outbox, un second processus Mediator le déplace vers consoleOut/inbox, et ActuatorService l'affiche. Les quatre répertoires forment le tableau de messages sur un seul système de fichiers local.</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>
@@ -203,9 +181,17 @@ svg:not(:has(.node)) .node { opacity: 1; }
<!-- the four directories belong to one message board on one filesystem -->
<path class="edge-dash" d="M436,98 H452 V580 H436"/>
<text class="t-mono" x="460" y="330">messageBoard/</text>
<text class="t-mut" data-label="board" x="460" y="348">répertoire = boîte, fichier = message</text>
<!-- two lines: one line of this label ran past the 620-wide viewBox in
German and French, where an svg root clips rather than overflows =
a truncated label at phone width. -->
<text class="t-mut" data-label="board" x="460" y="348">répertoire = boîte</text>
<text class="t-mut" data-label="board2" x="460" y="363">fichier = message</text>
<!-- the five processes are started by hand, one terminal each -->
<path class="edge-dash" d="M104,24 H88 V654 H104"/>
<text class="t-warn" data-label="topology" x="14" y="686">Cinq processus lancés à la main. La topologie vit désormais dans les deux lignes de commande Mediator — chez celui qui les a tapées.</text>
<!-- three lines: one ran well past the viewBox in every language, and an
svg root clips rather than overflows. -->
<text class="t-warn" data-label="topology" x="14" y="700">Cinq processus lancés à la main.</text>
<text class="t-warn" data-label="topology2" x="14" y="716">La topologie vit désormais dans les deux lignes de commande</text>
<text class="t-warn" data-label="topology3" x="14" y="732">Mediator — chez celui qui les a tapées.</text>
</svg>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 11 KiB

+18 -16
View File
@@ -11,17 +11,24 @@
already the whole picture. Here the image is fetched, inlined, and given
a play bar that walks a message through the mailboxes, one hop per
[data-flow] edge of the svg, highlighting the [data-flow-node] each hop
ends at. Colours are diagram.css's, so the two stay in step. -->
ends at. Colours are the extension's --calc-… tokens, the same ones
diagram.css uses, so the figure, the token and the bar stay in step in
light mode, in night mode and in high contrast. Nothing here keys off
prefers-color-scheme: the page's own toggle decides. -->
<style>
.flow-wrap { margin: 0; }
.flow-wrap svg { width: 100%; height: auto; display: block; }
.flow-token { fill: #8a5a08; stroke: #fbfcfd; stroke-width: 1.2; }
.flow-token {
fill: var(--calc-accent-b, #D1541F);
stroke: var(--calc-surface, #fbfcfd);
stroke-width: 1.2;
}
.flow-wrap .flow-on .box,
.flow-wrap .flow-on .box-plain,
.flow-wrap .flow-on .box-accent { stroke-width: 3; }
.flow-wrap .flow-done { stroke: #8a5a08; }
.flow-wrap .flow-done { stroke: var(--calc-accent-b, #D1541F); }
.flow-bar {
display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
@@ -29,21 +36,16 @@
}
.flow-bar button {
font: inherit; font-size: .82rem; padding: .18rem .7rem; cursor: pointer;
border: 1px solid #dae0e8; border-radius: 999px;
background: #fbfcfd; color: #5a6879;
border: 1px solid var(--calc-grid, #dae0e8); border-radius: 999px;
background: var(--calc-surface, #fbfcfd); color: var(--calc-muted, #5a6879);
}
.flow-bar button:hover {
border-color: var(--calc-notecolor, #20666f);
color: var(--calc-notecolor, #20666f);
}
.flow-bar button:hover { border-color: #20666f; color: #20666f; }
.flow-bar button[disabled] { opacity: .45; cursor: default; }
.flow-status { font-size: .8rem; color: #5a6879; }
.flow-status b { color: #20666f; font-weight: 600; }
@media (prefers-color-scheme: dark) {
.flow-token { fill: #c99a3a; stroke: #161b22; }
.flow-bar button { background: #161b22; border-color: #30363d; color: #8b98a8; }
.flow-bar button:hover { border-color: #4c9aa5; color: #7fc4cf; }
.flow-status { color: #8b98a8; }
.flow-status b { color: #7fc4cf; }
}
.flow-status { font-size: .8rem; color: var(--calc-muted, #5a6879); }
.flow-status b { color: var(--calc-notecolor, #20666f); font-weight: 600; }
</style>
<script>
+34 -14
View File
@@ -9,9 +9,9 @@
# `alt` is the figure's accessible description (the svg <title>); it is read by
# a screen reader, so it says what the picture shows, not that it is a picture.
#
# Identifiers from the tutorial (consoleIn.outbox, rot13/inbox, SensorService,
# Identifiers from the source material (consoleIn.outbox, rot13/inbox, SensorService,
# Mediator.java, .msg, WatchService, put, take) are never translated: they are
# names in the code, and the tutorial's terminology is kept exactly.
# names in the code, and the source terminology is kept exactly.
#
# German runs long. Where a label would overflow its box, give it a size:
# key: {en: "Primary key", de: {text: "Primärschlüssel", size: 10}}
@@ -35,9 +35,9 @@ direct-calls:
fr: "main() les connaît tous les trois : leurs noms, les types d'arguments et de résultats, et le fait qu'ils sont disponibles immédiatement."
de: "main() kennt alle drei: ihre Namen, Argument- und Ergebnistypen und dass sie sofort verfügbar sind."
cost:
en: "The wiring is written into the code itself — step 1 of the tutorial."
fr: "Le câblage est écrit dans le code lui-même — étape 1 du tutoriel."
de: "Die Verdrahtung steht im Code selbst — Schritt 1 des Tutorials."
en: "The wiring is written into the code itself — step 1."
fr: "Le câblage est écrit dans le code lui-même — étape 1."
de: "Die Verdrahtung steht im Code selbst — Schritt 1."
mailboxes-jvm:
alt:
@@ -63,10 +63,16 @@ mailboxes-jvm:
take2: {en: "take", fr: "take", de: "take"}
take3: {en: "take", fr: "take", de: "take"}
take4: {en: "take", fr: "take", de: "take"}
# two lines: one ran past the viewBox in German and French, and an svg root
# clips rather than overflows, so the label came out truncated
topology:
en: "No capability names another one. The topology lives only in the two mediators, started in main()."
fr: "Aucune capacité ne nomme une autre. La topologie ne vit que dans les deux médiateurs, démarrés dans main()."
de: "Keine Fähigkeit nennt eine andere. Die Topologie steckt nur in den zwei Vermittlern, gestartet in main()."
en: "No capability names another one."
fr: "Aucune capacité ne nomme une autre."
de: "Keine Fähigkeit nennt eine andere."
topology2:
en: "The topology lives only in the two mediators, started in main()."
fr: "La topologie ne vit que dans les deux médiateurs, démarrés dans main()."
de: "Die Topologie steckt nur in den zwei Vermittlern, gestartet in main()."
filesystem-processes:
alt:
@@ -91,11 +97,25 @@ filesystem-processes:
watch2: {en: "WatchService", fr: "WatchService", de: "WatchService"}
watch3: {en: "WatchService", fr: "WatchService", de: "WatchService"}
watch4: {en: "WatchService", fr: "WatchService", de: "WatchService"}
# two lines: one would run past the viewBox, and an svg root clips
board:
en: "directory = mailbox, file = message"
fr: "répertoire = boîte, fichier = message"
de: "Verzeichnis = Postfach, Datei = Nachricht"
en: "directory = mailbox"
fr: "répertoire = boîte"
de: "Verzeichnis = Postfach"
board2:
en: "file = message"
fr: "fichier = message"
de: "Datei = Nachricht"
# three lines, for the same reason as the note of mailboxes-jvm
topology:
en: "Five processes started by hand. The topology now lives in the two Mediator command lines — in whoever typed them."
fr: "Cinq processus lancés à la main. La topologie vit désormais dans les deux lignes de commande Mediator — chez celui qui les a tapées."
de: "Fünf von Hand gestartete Prozesse. Die Topologie steckt nun in den zwei Mediator-Befehlszeilen — bei dem, der sie getippt hat."
en: "Five processes started by hand."
fr: "Cinq processus lancés à la main."
de: "Fünf von Hand gestartete Prozesse."
topology2:
en: "The topology now lives in the two Mediator command lines —"
fr: "La topologie vit désormais dans les deux lignes de commande"
de: "Die Topologie steckt nun in den zwei Mediator-Befehlszeilen —"
topology3:
en: "in whoever typed them."
fr: "Mediator — chez celui qui les a tapées."
de: "bei dem, der sie getippt hat."
Binary file not shown.
+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

Binary file not shown.
+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">The mediated version inside one JVM: ConsoleIn puts a message into consoleIn.outbox, a mediator takes it and puts it into rot13.inbox, ROT13 takes it and puts its result into rot13.outbox, a second mediator moves that into consoleOut.inbox, and ConsoleOut takes it and prints it.</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 — “I print”</text>
</g>
<!-- side note: who holds the topology -->
<text class="t-warn" data-label="topology" x="22" y="672">No capability names another one. The topology lives only in the two mediators, started 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">No capability names another one.</text>
<text class="t-warn" data-label="topology2" x="14" y="718">The topology lives only in the two mediators, started in main().</text>
</svg>

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.
+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">La version médiatisée dans une seule JVM : ConsoleIn dépose un message dans consoleIn.outbox, un médiateur le retire et le dépose dans rot13.inbox, ROT13 le retire et dépose son résultat dans rot13.outbox, un second médiateur le déplace vers consoleOut.inbox, et ConsoleOut le retire et l'affiche.</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 — « j'affiche »</text>
</g>
<!-- side note: who holds the topology -->
<text class="t-warn" data-label="topology" x="22" y="672">Aucune capacité ne nomme une autre. La topologie ne vit que dans les deux médiateurs, démarrés dans 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">Aucune capacité ne nomme une autre.</text>
<text class="t-warn" data-label="topology2" x="14" y="718">La topologie ne vit que dans les deux médiateurs, démarrés dans main().</text>
</svg>

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 10 KiB

+10 -2
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 700" width="620" height="700"
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 750" width="620" height="750"
role="img" aria-labelledby="fp-title">
<title id="fp-title">{{alt}}</title>
<style><!--CSS--></style>
@@ -88,9 +88,17 @@
<!-- the four directories belong to one message board on one filesystem -->
<path class="edge-dash" d="M436,98 H452 V580 H436"/>
<text class="t-mono" x="460" y="330">messageBoard/</text>
<!-- two lines: one line of this label ran past the 620-wide viewBox in
German and French, where an svg root clips rather than overflows =
a truncated label at phone width. -->
<text class="t-mut" data-label="board" x="460" y="348">{{board}}</text>
<text class="t-mut" data-label="board2" x="460" y="363">{{board2}}</text>
<!-- the five processes are started by hand, one terminal each -->
<path class="edge-dash" d="M104,24 H88 V654 H104"/>
<text class="t-warn" data-label="topology" x="14" y="686">{{topology}}</text>
<!-- three lines: one ran well past the viewBox in every language, and an
svg root clips rather than overflows. -->
<text class="t-warn" data-label="topology" x="14" y="700">{{topology}}</text>
<text class="t-warn" data-label="topology2" x="14" y="716">{{topology2}}</text>
<text class="t-warn" data-label="topology3" x="14" y="732">{{topology3}}</text>
</svg>

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

+6 -3
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">{{alt}}</title>
<style><!--CSS--></style>
@@ -86,6 +86,9 @@
<text class="t-lead mid" data-label="consoleout" x="270" y="648">{{consoleout}}</text>
</g>
<!-- side note: who holds the topology -->
<text class="t-warn" data-label="topology" x="22" y="672">{{topology}}</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">{{topology}}</text>
<text class="t-warn" data-label="topology2" x="14" y="718">{{topology2}}</text>
</svg>

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB