aboutsummaryrefslogtreecommitdiffstats
path: root/docs/superpowers/specs/2026-10-04-fanfictioner-design.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-05 11:41:06 +0200
committerDanilo M. <danix@danix.xyz>2026-10-05 11:41:06 +0200
commite3e08870d4d120145d5667a16602fc3a15167b76 (patch)
treed9b8225775413f76282e108f7515309c3fae3f93 /docs/superpowers/specs/2026-10-04-fanfictioner-design.md
parent7017ceddad7750c54aed5a4323aec0ef3f2e119f (diff)
downloadfanfictioner-e3e08870d4d120145d5667a16602fc3a15167b76.tar.gz
fanfictioner-e3e08870d4d120145d5667a16602fc3a15167b76.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'docs/superpowers/specs/2026-10-04-fanfictioner-design.md')
-rw-r--r--docs/superpowers/specs/2026-10-04-fanfictioner-design.md12
1 files changed, 10 insertions, 2 deletions
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/<Name>.png`, chosen turnaround sheet per character
- `cand/<stage>/…`, candidates, montages and sd-cli logs
-Output: `$LIBRARY/<Series>/<Book>/NNN.png` (zero-padded page number), where
-`LIBRARY` is read from `~/.config/book-reader.conf` (shell `KEY="value"` lines).
+Output: `$LIBRARY/<Series>/<Book>/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/<Name>.png`
is skipped; a page whose `NNN.png` exists in the library is skipped.