From e3e08870d4d120145d5667a16602fc3a15167b76 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 5 Oct 2026 11:41:06 +0200 Subject: Take series, book, chapter and title from story.md frontmatter An optional --- frontmatter in the story file sets the names instead of letting Gemma invent them. The script writes them into plan.md after every draft and revision and whenever story.md changes. With a chapter number, pages are saved as CC-NNN.png so all chapters of a book share one folder and read in order in book-reader. Co-Authored-By: Claude Opus 5.5 --- docs/superpowers/specs/2026-10-04-fanfictioner-design.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'docs/superpowers') diff --git a/docs/superpowers/specs/2026-10-04-fanfictioner-design.md b/docs/superpowers/specs/2026-10-04-fanfictioner-design.md index 9a34ef6..d762243 100644 --- a/docs/superpowers/specs/2026-10-04-fanfictioner-design.md +++ b/docs/superpowers/specs/2026-10-04-fanfictioner-design.md @@ -49,10 +49,18 @@ Work dir: a directory named after the story file, next to it - `refs/.png`, chosen turnaround sheet per character - `cand//…`, candidates, montages and sd-cli logs -Output: `$LIBRARY///NNN.png` (zero-padded page number), where -`LIBRARY` is read from `~/.config/book-reader.conf` (shell `KEY="value"` lines). +Output: `$LIBRARY///NNN.png` (zero-padded page number), or +`CC-NNN.png` when the story sets a chapter number, so all chapters of a book +share its folder and read in order. `LIBRARY` is +read from `~/.config/book-reader.conf` (shell `KEY="value"` lines). Series and Book come from plan.md. +story.md may start with a `---` frontmatter (`series`, `book`, `chapter`, +`chapter_title`, `title`, all optional). The script writes these into plan.md +after every draft and revision and whenever story.md changes, overriding +Gemma: Series/Book/Chapter header lines, the `# ` heading, and page 1's +`Title:`. plan.json is rebuilt when plan.md or story.md is newer than it. + Resume is derived from disk, no state file: a character with `refs/.png` is skipped; a page whose `NNN.png` exists in the library is skipped. -- cgit v1.2.3