December Adventure Day 12

Published as part of 'December Adventure 2025' series.

When I had tried cutting up Standard Ebook's Frankenstein as a possible book for the book-posting bot, the script failed with an error that suggested there was a "navigation item" with a "target" that wasn't in the "manifest". I looked into that today and discovered that a nav item's target can include an anchor. In this case there's a subsection in chapter 24 for "Walton, in Continuation" that points to text/chapter-24.xhtml#walton-in-continuation.

The manifest only lists the files themselves, so there was nothing matching exactly text/chapter-24.xhtml#walton-in-continuation.

So I did the easiest thing I could think of: I strip any anchors off and track which files have already been processed (so I don't end up repeating the content of text/chapter-24.xhtml).

This will work as long as I'm dealing with linear narrative, which I think should be a safe assumption for a while.