Table of Contents

Enum EpubChapterSplit

Namespace
DocWright.Formats.Epub
Assembly
DocWright.Formats.Epub.dll

Where one content document ends and the next begins.

public enum EpubChapterSplit

Fields

WholeDocument = 0

One content document for the whole book.

Simple and correct, and the wrong default for anything long: a reading system loads a content document whole, so a three-hundred-page book in one file is a three-hundred-page parse before the first page appears.

Heading = 1

A new content document at every heading of HeadingLevel or above. The default.

Section = 2

A new content document at every Word section break.

Remarks

Every option here is a question the document model can answer. Splitting by page is deliberately absent: a flow format has no pages, the page a heading falls on depends on the reading device, and asking the layout engine would mean reaching across the one-way bridge for a number that would be wrong on the first device that used a different font size.