Work Text:
Chapter 2: Chapters
Chapter Text
Chapters come from the file's own structure:
- Markdown and web pages split at their headings, when there are at least two.
- Text files split at lines like
CHAPTER IorIV. The Purple Wig. - EPUBs use one chapter per section of the book.
- PDFs use their bookmarks (the outline in the sidebar of a PDF viewer).
A file with none of those is a one-shot.