From 1da09720ac14cb1ba514f983e833045c4975eb4d Mon Sep 17 00:00:00 2001 From: Weksa Date: Wed, 11 Nov 2026 18:11:28 +0000 Subject: [PATCH 1/2] Zyphos Atlas scoping: design note and Breeding Grounds sample (proposal) Co-Authored-By: Claude Sonnet 5.5 --- notes/atlas/design.md | 63 +++++++++++++++++++ .../atlas/sample-breeding-grounds.proposal.md | 21 +++++++ notes/atlas/sample-breeding-grounds.tex | 48 ++++++++++++++ 3 files changed, 132 insertions(+) create mode 100644 notes/atlas/design.md create mode 100644 notes/atlas/sample-breeding-grounds.proposal.md create mode 100644 notes/atlas/sample-breeding-grounds.tex diff --git a/notes/atlas/design.md b/notes/atlas/design.md new file mode 100644 index 0000000..da13751 --- /dev/null +++ b/notes/atlas/design.md @@ -0,0 +1,63 @@ +# Zyphos Atlas: design note (PROPOSAL) + +**Not canon.** Scoping for an illustrated, encyclopedic gallery of Zyphos, a gift for Deru, who owns the setting. Nothing here edits the vault, the site or any machine. Author: Weksa. Stacks on PR #6 (`notes/art-briefs-proposals.md`, whose briefs supply the illustration slots). + +## What the Atlas is + +A gallery of single-page entries, one per real vault note. Each page presents the note's own text, decorated; elaborations and pictures are offered separately, labelled as proposals for Deru to accept or cut. The vault stays the only source of canon. The Atlas holds none. + +## What counts as canon here + +Only what Deru has approved, and the vault does not mark approval per page. Working rule, stated as a guess for Deru to correct: + +- **Treated as canon:** `Eusocial Interbeing/` notes as they stand on `main`, except pages that say they are not: `World/Zyphos Simulation Brief.md` ("not a complete canon note") and the numbers in `World/Zyphos Umbros Binary System.md` ("working baseline"). +- **Treated as canon from the language work:** Deru's sound outline only as recorded in the Weksa repo (`settings/eusocial-interbeing/language-design.md`, "Sa'ueia Sound"): five vowels; no `h q y`; no two consonants and no two identical vowels adjacent; short, soft, open words; suffixing; roots `ila` (walk), `weru` (know), `olune` (breeding ground); suffix `-um`. The species name `Sa'ueia` is canon. Every other name is a draft. +- **Treated as proposals:** everything in `notes/inhabitant-names-draft.md`, `notes/art-briefs-proposals.md`, and anything the Atlas adds. + +## Entry template + +One entry is three artefacts, kept in separate files: + +1. **Canon extract.** The note's text verbatim at a named commit, with its path and the authors from `git log`. Never retyped from memory or paraphrased; the only change a render makes is dropping wikilink brackets. The Atlas build reads the vault; it keeps no second copy of a fact. +2. **Proposal file** (`.proposal.md`, headed PROPOSAL). Sections: *Elaborations* (each extends one canon sentence and says what it would change), *Illustration slots* (each cites a brief in PR #6 or a new one, with its canon line), *Questions for Deru*. +3. **Page render.** Canon in the main text; proposals only in boxed or marginal areas labelled PROPOSED. The page must read correctly with the proposals removed. + +An accepted elaboration enters the vault by Deru's own edit; the Atlas never edits the vault. + +## Voice + +Encyclopedic, plain, in-world and topic-facing, as the vault's `AGENTS.md` asks: concrete subjects, cause and effect stated, one unfamiliar idea at a time, no concluding aphorism, no mention of drafting. The Atlas adds only framing (captions, labels, "what a visitor sees"). Caption voice is observational and dated, like a field plate. + +## Illustration slots + +Up to three per page, each tied to one canon sentence: + +- **Plate:** full width; the entry's place or scene. Reuse a brief from PR #6. +- **Spot:** small, inline; a single object or organism (PR #6 objects, e.g. brief 8 or 11). +- **Vignette:** margin ornament drawn from the entry's theme (a ruled border, a repeating motif). + +Prompts live in the proposal file with the canon line they come from. Per the image doctrine, the exact prompt is saved beside each image and each iteration is rendered from scratch. Nothing is generated here; Deru runs any image on his own machine and decides. + +## Calligraphic adaptation (guess, for Deru) + +The vault gives the two peoples different sound: Sa'ueia soft, open and flowing; Airawa sharper, with hard edges (`language-design.md`). The proposal is to let the entry's subject choose the hand: a flowing chancery italic and loose rules for Sa'ueia, Ecology and Biosphere entries; a more angular, heavier hand and straight rules for Airawa and imperial entries. That mapping is mine, not canon. Body text stays legible; calligraphy decorates headings, initials and ornament. The sample uses Zapf Chancery (pdfLaTeX `pzc`), which the build host has. + +## Page-decoration script + +The LaTeX script Meta mentions is most likely `bloom-sheet`, in the Eureka skill at `tools/bloom-sheet/` (`bloom_sheet.py`, `grow.py`, `page.tex`; `/usr/local/bin/bloom-sheet` on Yggdrasil; install in `gamecult-ops/runbooks/mind-units-yggdrasil.md`). It renders markdown to one neon A4 page with a grown plant and optional SVG visitors. Its look is neon, not calligraphic, so reuse would mean a new `page.tex` look. The sample here is plain pdfLaTeX and does not use it. I found no other LaTeX decoration script in the repos or `/opt/commons`; Meta should confirm which she means. + +## Later: Aetheria (kept as a note) + +Meta wants the same Atlas for Aetheria afterwards. The scoping I already did is on draft PR GameCult/AetheriaLore#7 (`docs/atlas/`, with a Pseudospace sample). Facts to carry over: AetheriaLore has a canon/proposal marker (`scripts/check_canon_marker.py`; `kind: canon` needs ruling ids) and no existing page carries `kind:`; its owner of lore questions is Nibu. Zyphos has no such marker. + +## Sample + +`sample-breeding-grounds.tex` and `sample-breeding-grounds.proposal.md`, from `Eusocial Interbeing/Ecology/Breeding Grounds.md`. Slots are framed placeholders; the plate points at brief 10 of PR #6. + +## Open questions for Deru + +1. Is my reading of what is approved canon right (all vault notes except the two flagged ones)? Or is there a list? +2. Which git author handles are yours? The vault history shows `Meta Vens` (most pages) and `MadmansLullabyOFFICIAL` (the Sa'ueia/mother-tree rename); the Atlas credits by git and does not guess. +3. May the Atlas show the Sa'ueia word `Olune` on the Breeding Grounds page? It is your root, glossed "breeding ground", unanalysed. +4. Calligraphy mapped to each people's sound: keep, change or drop? +5. Do you want the Atlas published (e.g. on the Zyphos site) or kept as a personal gallery? diff --git a/notes/atlas/sample-breeding-grounds.proposal.md b/notes/atlas/sample-breeding-grounds.proposal.md new file mode 100644 index 0000000..e3599b9 --- /dev/null +++ b/notes/atlas/sample-breeding-grounds.proposal.md @@ -0,0 +1,21 @@ +# Atlas entry: Breeding Grounds (PROPOSALS) + +**Not canon.** Elaborations and illustration slots for the Breeding Grounds page. None of this is in the vault. Canon source: `Eusocial Interbeing/Ecology/Breeding Grounds.md` at Zyphos `main` (49207ef); history: created 1c5c14b (Meta Vens, 2026-05-04), renamed 3afb94f (MadmansLullabyOFFICIAL, 2026-07-01), clarified 3700291 (Meta Vens, 2026-09-05). Proposals by Weksa. + +## Elaborations (each extends one canon sentence) + +1. **What a visitor sees on arrival.** Extends: "Most adults visit, then leave again with their family units." Proposal: arrival is marked at the edge of the ground rather than at a gate, since no wall surrounds it; the family unit stops and waits for a caretaker to come out. **Guess:** the custom of waiting is mine. Changes if accepted: adds a courtesy, no new institution. +2. **The ground has no tallest thing.** Extends: "These sites support a mobile civilization; they are not cities." Proposal: no structure on the ground is built higher or placed more centrally than the rest, which is how a visitor can tell it from a settlement. **Guess**, supported by the note's warning that a capital breaks the system. +3. **Fungal road in.** Extends: the note's "allied organisms". Proposal: a candle fungal road (`Biosphere/Decomposers and Recyclers/Candle Fungal Roads`, which lists breeding grounds among its endpoints) leads in. That link is already canon in the fungal road note; only its use in this picture is proposed. + +## Illustration slots + +- **Plate:** PR #6 brief 10, "A breeding ground, the olune". Canon line: "remain occupied year-round, mainly by infants, infirm adults, caretakers, rotating specialists, and allied organisms." **Sa'ueia bodies are not drawn**: canon gives none (gap 1 in PR #6). +- **Spot:** PR #6 brief 11, the route-memory instrument, as the object a family brings when it returns. Source: `Technologies/Sa'ueia Mobile Technologies`; its look is a guess. +- **Vignette:** a ring of small rounded shelters of unequal size, none central. Source: elaboration 2 (guess). + +## Questions for Deru + +- Should the page show the word `Olune` (see design note, question 3)? +- Is the arrival custom in elaboration 1 acceptable, or too much invention? +- Do the grounds carry a mark or sign that distinguishes one from another, or is that left open? diff --git a/notes/atlas/sample-breeding-grounds.tex b/notes/atlas/sample-breeding-grounds.tex new file mode 100644 index 0000000..9c5a9a3 --- /dev/null +++ b/notes/atlas/sample-breeding-grounds.tex @@ -0,0 +1,48 @@ +% Atlas sample page: Breeding Grounds. Calligraphic adaptation. PROPOSAL, not canon. +% Canon text: Eusocial Interbeing/Ecology/Breeding Grounds.md at Zyphos 49207ef, verbatim. +% History: Meta Vens (created 1c5c14b, clarified 3700291); rename by MadmansLullabyOFFICIAL (3afb94f). +% Proposals: sample-breeding-grounds.proposal.md. Build: pdflatex sample-breeding-grounds.tex +% Wikilink brackets are dropped in the render; the words are the vault's. +% Hand: flowing chancery (psnfss `pzc`), the guess in design.md for Sa'ueia-side entries. +\documentclass[11pt,a4paper]{article} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage[margin=24mm]{geometry} +\usepackage{xcolor,tikz,microtype,setspace} +\definecolor{ink}{HTML}{1F2A2A} +\definecolor{rubric}{HTML}{3F6B5E} +\definecolor{wash}{HTML}{ECEADF} +\newcommand{\hand}{\fontfamily{pzc}\selectfont} +\pagecolor{wash}\color{ink} +\pagestyle{empty}\setlength{\parindent}{0pt}\setlength{\parskip}{0.8em} +% A slot is a framed placeholder: nothing is rendered here. +\newcommand{\slot}[3]{% + \begin{tikzpicture} + \draw[rubric,line width=0.5pt] (0,0) rectangle (#1,#2); + \draw[rubric,dashed] (0.06,0.06) rectangle (#1-0.06,#2-0.06); + \node[text width=#1cm-1cm,align=center,font=\hand\small,text=rubric] at (#1/2,#2/2) {#3}; + \end{tikzpicture}} +\begin{document} +\begin{center} +{\hand\fontsize{34}{38}\selectfont\color{rubric} Breeding Grounds}\\[2mm] +{\hand\large Ecology\ \ $\cdot$\ \ the Sa'ueia continent}\\[1mm] +% Loose, wave-like rule: flowing hand for a Sa'ueia-side entry (guess). +\begin{tikzpicture}\draw[rubric,line width=0.6pt] plot[smooth,domain=0:10,samples=40] (\x,{0.08*sin(\x*180)});\end{tikzpicture} +\end{center} +\begin{center}\slot{15.5}{5.2}{PLATE (not rendered): a breeding ground. PR \#6 brief 10.}\end{center} +\onehalfspacing +{\hand\Large\color{rubric} B}{\hand\large reeding Grounds are sacred communal sites where the Sa'ueia breed and care for those who need to stay in one place. They remain occupied year-round, mainly by infants, infirm adults, caretakers, rotating specialists, and allied organisms.} + +{\hand\large Most adults visit, then leave again with their family units. They return to breed, recover, teach, mourn, settle disputes, and renew obligations. The grounds provide shared places for reproduction and medical care, preserve communal memory, and anchor legal relationships. They also serve as places where important transitions are marked through ritual.} + +{\hand\large These sites support a mobile civilization; they are not cities. If a breeding ground becomes a capital, the Sa'ueia system starts to break down. Concentrating the population permanently would invite hierarchy, exhaust resources, provoke ecological resentment, and leave the grounds vulnerable to imperial-style capture.} + +\vfill +\begin{tikzpicture} +\node[draw=rubric,dashed,text width=10.6cm,inner sep=6pt,font=\hand\normalsize,text=rubric] +{\textbf{PROPOSED, not in the vault.} A visiting family stops at the edge of the ground and waits for a caretaker to come out; no structure is built higher or more central than the rest. (Guesses; extend the second and third paragraphs. Deru decides.)}; +\end{tikzpicture}\hfill\slot{4}{2.6}{SPOT: route-memory instrument (PR \#6 brief 11)} + +\vspace{4mm} +{\hand\small Source: Zyphos \texttt{Eusocial Interbeing/Ecology/Breeding Grounds.md}, commit 49207ef. Text by Meta Vens; only the wikilink brackets are dropped.} +\end{document} -- 2.47.3 From dbf85e3e293f01b15e82e066075c322eafc9781d Mon Sep 17 00:00:00 2001 From: Weksa Date: Wed, 11 Nov 2026 18:31:34 +0000 Subject: [PATCH 2/2] Atlas sample: rebuild with bloom-sheet's grower in a calligraphic look Co-Authored-By: Claude Sonnet 5.5 --- notes/atlas/design.md | 22 +++- .../atlas/sample-breeding-grounds.proposal.md | 16 +++ notes/atlas/sample-breeding-grounds.tex | 48 --------- tools/atlas/assemble.py | 26 +++++ tools/atlas/build-sheet.sh | 15 +++ tools/atlas/calligraphic-page.tex | 101 ++++++++++++++++++ 6 files changed, 175 insertions(+), 53 deletions(-) delete mode 100644 notes/atlas/sample-breeding-grounds.tex create mode 100755 tools/atlas/assemble.py create mode 100755 tools/atlas/build-sheet.sh create mode 100644 tools/atlas/calligraphic-page.tex diff --git a/notes/atlas/design.md b/notes/atlas/design.md index da13751..b44f8dd 100644 --- a/notes/atlas/design.md +++ b/notes/atlas/design.md @@ -38,13 +38,18 @@ Up to three per page, each tied to one canon sentence: Prompts live in the proposal file with the canon line they come from. Per the image doctrine, the exact prompt is saved beside each image and each iteration is rendered from scratch. Nothing is generated here; Deru runs any image on his own machine and decides. -## Calligraphic adaptation (guess, for Deru) +## Calligraphic adaptation and the decoration script -The vault gives the two peoples different sound: Sa'ueia soft, open and flowing; Airawa sharper, with hard edges (`language-design.md`). The proposal is to let the entry's subject choose the hand: a flowing chancery italic and loose rules for Sa'ueia, Ecology and Biosphere entries; a more angular, heavier hand and straight rules for Airawa and imperial entries. That mapping is mine, not canon. Body text stays legible; calligraphy decorates headings, initials and ornament. The sample uses Zapf Chancery (pdfLaTeX `pzc`), which the build host has. +Meta confirmed that the decoration script is `bloom-sheet` (Eureka skill, `tools/bloom-sheet/`: `bloom_sheet.py`, `grow.py`, `page.tex`; `/usr/local/bin/bloom-sheet`). The Atlas page is built with its plant grower, unmodified, in a calligraphic look kept in this repo: -## Page-decoration script +- `tools/atlas/calligraphic-page.tex` stands in for the skill's `page.tex`. `grow.py` writes generic primitives (`\neonfill`, `\neondot`, `\petalwash`, `\neonframe`, `\panel`) and colour names, so a new page file restyles the whole plant. Here the neon palette becomes inks on parchment: oxblood, verdigris, indigo ink, ochre, gold leaf for flower centres. Strokes are flat ink with a hairline edge, no glow; panels are ruled parchment cards inside a ruled margin; all type is Zapf Chancery. +- `tools/atlas/assemble.py` builds the sheet markdown: the canon card is read from the vault note (brackets of wikilinks dropped, nothing else changed) and every other card comes from the proposal file's `## Sheet text` section. Canon and proposals stay in separate files, and a proposal cannot enter the canon card. +- `tools/atlas/build-sheet.sh ` copies the skill's two Python scripts into a scratch directory next to our page file and runs them there. The skill is never edited. +- Slots are cards: a "Plate: not rendered" and a "Spot: not rendered" card carry the brief from PR #6 in a ruled frame. Their size follows their text, because bloom-sheet sizes a card by its words; a slot is therefore a caption frame, not a picture-sized hole. -The LaTeX script Meta mentions is most likely `bloom-sheet`, in the Eureka skill at `tools/bloom-sheet/` (`bloom_sheet.py`, `grow.py`, `page.tex`; `/usr/local/bin/bloom-sheet` on Yggdrasil; install in `gamecult-ops/runbooks/mind-units-yggdrasil.md`). It renders markdown to one neon A4 page with a grown plant and optional SVG visitors. Its look is neon, not calligraphic, so reuse would mean a new `page.tex` look. The sample here is plain pdfLaTeX and does not use it. I found no other LaTeX decoration script in the repos or `/opt/commons`; Meta should confirm which she means. +The mapping of hand to people (flowing for Sa'ueia entries, angular for Airawa) remains my guess. Only the flowing hand is built. + +Possible upstream: the style fits bloom-sheet cleanly as a theme option (`--theme`) choosing the page file, plus a marker-in-comments guard and a `--fonts` hook. I have not opened a PR to Eureka; it is Meta's call. ## Later: Aetheria (kept as a note) @@ -52,7 +57,7 @@ Meta wants the same Atlas for Aetheria afterwards. The scoping I already did is ## Sample -`sample-breeding-grounds.tex` and `sample-breeding-grounds.proposal.md`, from `Eusocial Interbeing/Ecology/Breeding Grounds.md`. Slots are framed placeholders; the plate points at brief 10 of PR #6. +`sample-breeding-grounds.proposal.md` (with its `## Sheet text`), built by `tools/atlas/build-sheet.sh` into a bloom-sheet page, from `Eusocial Interbeing/Ecology/Breeding Grounds.md`. The plate and spot cards carry briefs 10 and 11 of PR #6. ## Open questions for Deru @@ -61,3 +66,10 @@ Meta wants the same Atlas for Aetheria afterwards. The scoping I already did is 3. May the Atlas show the Sa'ueia word `Olune` on the Breeding Grounds page? It is your root, glossed "breeding ground", unanalysed. 4. Calligraphy mapped to each people's sound: keep, change or drop? 5. Do you want the Atlas published (e.g. on the Zyphos site) or kept as a personal gallery? + +## Build notes (what broke) + +- The skill's page file has marker strings; the script replaces them everywhere, including inside TeX comments, so naming a marker in a comment spliced the whole content into the preamble. Our page file never writes the marker text in a comment. +- LuaTeX's fontspec could not load the Zapf Chancery Type 1 file (even with its metrics beside it). The `pzc` family through NFSS works under LuaLaTeX, but has one weight, so strong and soft text are colour only. +- The grower is built for flowers: at this density the page reads as a flowered border more than ink vines and foliage. Calmer foliage would need a change in `grow.py` (an upstream option), not in our page file. +- Rendering takes about 2.75 minutes on Yggdrasil. The "Vault note at" line shows the branch HEAD of the vault repo when built, not the note's last-change commit. diff --git a/notes/atlas/sample-breeding-grounds.proposal.md b/notes/atlas/sample-breeding-grounds.proposal.md index e3599b9..16aba77 100644 --- a/notes/atlas/sample-breeding-grounds.proposal.md +++ b/notes/atlas/sample-breeding-grounds.proposal.md @@ -19,3 +19,19 @@ - Should the page show the word `Olune` (see design note, question 3)? - Is the arrival custom in elaboration 1 acceptable, or too much invention? - Do the grounds carry a mark or sign that distinguishes one from another, or is that left open? + +## Sheet text + +What the sheet shows beside the canon card. Each `###` becomes one card; nothing here may be read as vault text. + +### Proposed, not canon + +A visiting family stops at the edge of the ground and waits for a caretaker to come out. No building is higher or more central than the rest. (Guesses; Deru decides.) + +### Plate: not rendered + +PR #6 brief 10. A sheltered hollow where several low shelters of soft living tissue stand close together; small dim figures carry bundles and tend young ones; a line of amber lights from a fungal road approaches; nothing is taller or more central than the rest, and no wall surrounds it. No Sa'ueia bodies are drawn, because canon gives none. + +### Spot: not rendered + +PR #6 brief 11. A hand-sized travelling instrument of knotted cords and beads on a worn wooden frame, with a small cushion of living moss at its centre. diff --git a/notes/atlas/sample-breeding-grounds.tex b/notes/atlas/sample-breeding-grounds.tex deleted file mode 100644 index 9c5a9a3..0000000 --- a/notes/atlas/sample-breeding-grounds.tex +++ /dev/null @@ -1,48 +0,0 @@ -% Atlas sample page: Breeding Grounds. Calligraphic adaptation. PROPOSAL, not canon. -% Canon text: Eusocial Interbeing/Ecology/Breeding Grounds.md at Zyphos 49207ef, verbatim. -% History: Meta Vens (created 1c5c14b, clarified 3700291); rename by MadmansLullabyOFFICIAL (3afb94f). -% Proposals: sample-breeding-grounds.proposal.md. Build: pdflatex sample-breeding-grounds.tex -% Wikilink brackets are dropped in the render; the words are the vault's. -% Hand: flowing chancery (psnfss `pzc`), the guess in design.md for Sa'ueia-side entries. -\documentclass[11pt,a4paper]{article} -\usepackage[T1]{fontenc} -\usepackage[utf8]{inputenc} -\usepackage[margin=24mm]{geometry} -\usepackage{xcolor,tikz,microtype,setspace} -\definecolor{ink}{HTML}{1F2A2A} -\definecolor{rubric}{HTML}{3F6B5E} -\definecolor{wash}{HTML}{ECEADF} -\newcommand{\hand}{\fontfamily{pzc}\selectfont} -\pagecolor{wash}\color{ink} -\pagestyle{empty}\setlength{\parindent}{0pt}\setlength{\parskip}{0.8em} -% A slot is a framed placeholder: nothing is rendered here. -\newcommand{\slot}[3]{% - \begin{tikzpicture} - \draw[rubric,line width=0.5pt] (0,0) rectangle (#1,#2); - \draw[rubric,dashed] (0.06,0.06) rectangle (#1-0.06,#2-0.06); - \node[text width=#1cm-1cm,align=center,font=\hand\small,text=rubric] at (#1/2,#2/2) {#3}; - \end{tikzpicture}} -\begin{document} -\begin{center} -{\hand\fontsize{34}{38}\selectfont\color{rubric} Breeding Grounds}\\[2mm] -{\hand\large Ecology\ \ $\cdot$\ \ the Sa'ueia continent}\\[1mm] -% Loose, wave-like rule: flowing hand for a Sa'ueia-side entry (guess). -\begin{tikzpicture}\draw[rubric,line width=0.6pt] plot[smooth,domain=0:10,samples=40] (\x,{0.08*sin(\x*180)});\end{tikzpicture} -\end{center} -\begin{center}\slot{15.5}{5.2}{PLATE (not rendered): a breeding ground. PR \#6 brief 10.}\end{center} -\onehalfspacing -{\hand\Large\color{rubric} B}{\hand\large reeding Grounds are sacred communal sites where the Sa'ueia breed and care for those who need to stay in one place. They remain occupied year-round, mainly by infants, infirm adults, caretakers, rotating specialists, and allied organisms.} - -{\hand\large Most adults visit, then leave again with their family units. They return to breed, recover, teach, mourn, settle disputes, and renew obligations. The grounds provide shared places for reproduction and medical care, preserve communal memory, and anchor legal relationships. They also serve as places where important transitions are marked through ritual.} - -{\hand\large These sites support a mobile civilization; they are not cities. If a breeding ground becomes a capital, the Sa'ueia system starts to break down. Concentrating the population permanently would invite hierarchy, exhaust resources, provoke ecological resentment, and leave the grounds vulnerable to imperial-style capture.} - -\vfill -\begin{tikzpicture} -\node[draw=rubric,dashed,text width=10.6cm,inner sep=6pt,font=\hand\normalsize,text=rubric] -{\textbf{PROPOSED, not in the vault.} A visiting family stops at the edge of the ground and waits for a caretaker to come out; no structure is built higher or more central than the rest. (Guesses; extend the second and third paragraphs. Deru decides.)}; -\end{tikzpicture}\hfill\slot{4}{2.6}{SPOT: route-memory instrument (PR \#6 brief 11)} - -\vspace{4mm} -{\hand\small Source: Zyphos \texttt{Eusocial Interbeing/Ecology/Breeding Grounds.md}, commit 49207ef. Text by Meta Vens; only the wikilink brackets are dropped.} -\end{document} diff --git a/tools/atlas/assemble.py b/tools/atlas/assemble.py new file mode 100755 index 0000000..5de46c4 --- /dev/null +++ b/tools/atlas/assemble.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 +"""Assemble an Atlas sheet's markdown: canon read from the vault, proposals read from the proposal file. + + assemble.py > sheet.md + +The canon card is the vault note's own paragraphs, unedited except that wikilink brackets are dropped. Every card +after it comes from the proposal file's `## Sheet text` section, one card per `###` heading, so canon and proposals +stay in separate files and a proposal cannot enter the canon card. +""" +import re, subprocess, sys +from pathlib import Path + +canon, proposal, commit = sys.argv[1:4] +note = Path(canon).read_text(encoding="utf8") +title, _, body = note.lstrip("").partition("\n") +assert title.startswith("# "), f"{canon}: first line is not a title" +body = re.sub(r"\[\[(?:[^\]|]*\|)?([^\]]+)\]\]", r"\1", body).strip() +authors = subprocess.run(["git", "log", "--format=%an", "--", canon], capture_output=True, text=True, check=True).stdout.splitlines() +by = ", ".join(dict.fromkeys(authors)) +text = Path(proposal).read_text(encoding="utf8") +m = re.search(r"^## Sheet text\n(.*?)(?=^## |\Z)", text, re.S | re.M) +assert m, f"{proposal}: no `## Sheet text` section" +print(f"{title}\n\nVault note at {commit}; text by {by}. Proposals are marked and are not in the vault.\n") +print(f"## The note\n\n{body}\n") +cards = m.group(1).strip() +print(re.sub(r"^### ", "## ", cards[cards.index("### "):], flags=re.M)) diff --git a/tools/atlas/build-sheet.sh b/tools/atlas/build-sheet.sh new file mode 100755 index 0000000..534760b --- /dev/null +++ b/tools/atlas/build-sheet.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# Build one Atlas page with bloom-sheet's plant grower in the calligraphic look. +# build-sheet.sh [bloom-sheet options] +# bloom-sheet is the Eureka skill's tool, run unmodified: its two scripts are copied beside our page.tex in a scratch +# directory, so the skill's page.tex (neon) is never used and never edited. Needs the same packages as bloom-sheet. +set -euo pipefail +canon=$(realpath "$1"); proposal=$(realpath "$2"); out=$(realpath -m "$3"); shift 3 +here=$(cd "$(dirname "$0")" && pwd) +skill=$(dirname "$(readlink -f "$(command -v bloom-sheet)")") +commit=$(git -C "$(dirname "$canon")" rev-parse --short HEAD) +work=$(mktemp -d); trap 'rm -rf "$work"' EXIT +cp "$skill/bloom_sheet.py" "$skill/grow.py" "$work/" +cp "$here/calligraphic-page.tex" "$work/page.tex" +(cd "$(dirname "$canon")" && python3 "$here/assemble.py" "$canon" "$proposal" "$commit") > "$work/sheet.md" +python3 "$work/bloom_sheet.py" "$work/sheet.md" -o "$out" "$@" diff --git a/tools/atlas/calligraphic-page.tex b/tools/atlas/calligraphic-page.tex new file mode 100644 index 0000000..0dee6e1 --- /dev/null +++ b/tools/atlas/calligraphic-page.tex @@ -0,0 +1,101 @@ +% Calligraphic page for the Zyphos Atlas: bloom-sheet's plant grower, drawn in ink on parchment. +% Stands in for the Eureka skill's page.tex (same macros grow.py and bloom_sheet.py call); the skill is not edited. +% bloom_sheet.py fills the contents and title markers (never write the marker text in a comment: it is replaced +% everywhere); there is no fonts marker, so the fonts below are ours. +% Colour names keep the skill's (neon*) because grow.py writes them; here they are inks. +\documentclass{article} +\usepackage[paperwidth=210mm,paperheight=297mm,margin=0mm]{geometry} +\usepackage{fontspec} +\usepackage[T1]{fontenc} +\usepackage{xcolor} +\usepackage{tikz} +\usepackage{array} +\usepackage[most]{tcolorbox} +\tcbuselibrary{fitting} + +% ---------- Inks on parchment ---------- +\definecolor{ground}{HTML}{F1EADA} % paper; visitor cutouts use it +\definecolor{groundtop}{HTML}{F6F0E1} +\definecolor{groundfoot}{HTML}{E8DFC8} +\definecolor{panelbg}{HTML}{FAF6EA} +\definecolor{heading}{HTML}{231C27} +\definecolor{body}{HTML}{2B2630} +\definecolor{muted}{HTML}{6B6558} +\definecolor{neonorange}{HTML}{8C2F39} % oxblood +\definecolor{neonsky}{HTML}{3F6B5E} % verdigris +\definecolor{neonviolet}{HTML}{3A3F6E} % indigo ink +\definecolor{neonrose}{HTML}{A87A32} % ochre +\definecolor{neonwhite}{HTML}{C09A3E} % gold leaf (flower centres, buds) +\colorlet{accent}{neonorange} + +% ---------- The hand ---------- +% Zapf Chancery through NFSS (psnfss `pzc`): LuaTeX's fontspec cannot load the Type 1 file directly. +% It has one weight, so strong and soft are colour, not weight. +\newcommand{\hand}{\fontencoding{T1}\fontfamily{pzc}\fontseries{m}\fontshape{n}\selectfont} +\newcommand{\labelfont}{\hand} +\newcommand{\thinfont}{\hand} +\newcommand{\speakfont}{\hand} +\newcommand{\numfont}{\hand} + +% ---------- Ink primitives, called by the generated layer ---------- +% A flat ink fill with a hairline edge: a pen stroke, no glow. #2 is the percent of ink kept. +\newcommand{\neonfill}[3]{\path[fill=#1!#2!black!6, draw=#1!85!black, line width=0.12pt, line join=round] #3;} +\newcommand{\neondot}[4]{% + \fill[#1!70!white, opacity=0.30] (#2,#3) circle ({1.7*#4}); + \fill[#1!85!black] (#2,#3) circle (#4);} +\newcommand{\petalwash}[2]{\fill[#1, opacity=0.13] #2;} +% A ruled frame: parchment panel, a heavy and a hairline rule. +\newcommand{\neonframe}[2]{% + \fill[panelbg, opacity=0.92] #2; + \draw[#1!80!black, line width=0.7pt] #2; + \draw[#1!80!black, line width=0.2pt, opacity=0.7] #2;} + +% ---------- Text atoms ---------- +% Defined in the preamble (a parameter macro inside a panel breaks tcolorbox fit). +\newcommand{\head}[1]{{\hand\color{accent}#1}\par\vspace{0.25em}} +\newcommand{\sub}[1]{\par\vspace{0.25em}{\hand\color{muted}#1}\par} +\DeclareRobustCommand{\code}[1]{\leavevmode{\color{neonsky}#1}} +\DeclareRobustCommand{\strong}[1]{\leavevmode{\color{heading}#1}} +\DeclareRobustCommand{\soft}[1]{\leavevmode{\color{heading}#1}} +\DeclareRobustCommand{\faint}[1]{\leavevmode{\color{muted}#1}} +\newcommand{\li}[3]{\par{\leftskip=\dimexpr #1em - 1em\relax\hangindent=1em\hangafter=1\noindent\makebox[1em][l]{\color{accent}#2}#3\par}} +\newcommand{\quoted}[1]{\par{\leftskip=0.8em\color{heading}#1\par}} +\newcommand{\codeline}[1]{\par{\color{neonsky}\hangindent=1em\hangafter=1\noindent#1\par}} +\newcommand{\hairline}{\par\vspace{0.2em}{\color{muted}\rule{\linewidth}{0.2pt}}\par\vspace{0.2em}} +\newcommand{\cell}[1]{\raggedright\arraybackslash#1} + +% ---------- One panel (as the skill's) ---------- +\newcommand{\panel}[6]{% + \node[anchor=south west, inner sep=0pt] at (#1mm,#2mm) {% + \begin{tcolorbox}[blank, fit, width=#3mm, height=#4mm, + left=3.1mm, right=3.1mm, top=3mm, bottom=2.6mm, + fontupper=\hand\color{body}\linespread{1.04}\selectfont, + before upper={\colorlet{accent}{#5}\parindent0pt\parskip0.14em\raggedright}] + #6 + \end{tcolorbox}};} + +@@CONTENTS@@ + +\pagecolor{ground} +\pagestyle{empty} +\begin{document} +\begin{tikzpicture}[remember picture, overlay, x=1mm, y=1mm] +\begin{scope}[shift={(current page.south west)}] + +% ---- ground: parchment with a darker foot and foxed corners ---- +\shade[top color=groundtop, bottom color=groundfoot, middle color=ground] (0,0) rectangle (210,297); +\foreach \i in {1,...,24} { + \fill[neonrose, opacity=0.0045] (0,297) circle ({70*\i/24}); + \fill[neonorange, opacity=0.0035] (210,0) circle ({85*\i/24}); +} +% a ruled margin +\draw[neonorange!70!black, line width=0.5pt, opacity=0.55] (2.6,2.6) rectangle (207.4,294.4); +\draw[neonorange!70!black, line width=0.15pt, opacity=0.55] (3.6,3.6) rectangle (206.4,293.4); + +\input{layer.tex} + +@@TITLE@@ + +\end{scope} +\end{tikzpicture} +\end{document} -- 2.47.3