best way to add numbered chapters to a book with no chapters
in this case, the retail epub version of Wilbur Smith - War Cry. no headers, no chapters, just 200 ish pages of text with scene breaks.
i was able to do it in a very convoluted way involving find the scene break style, regex it into having a h2 and add the text" chapter", then generate a new toc, then convert the book in calibre to get toc classes assigned, then regex those to extract a number to use as a chapter number
there is surely a slicker and sigil only way ? - a plug in ??
start point - a book with no chapters, just scenes- the entire story is in a single xhtml ( others just contain also by, dedications etc )
target : a book with numbered chapters and one xhtml file per chapter
|