View Single Post
Old 01-27-2022, 05:41 PM   #6
porphyry5
Connoisseur
porphyry5 began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Apr 2013
Device: Kobo Clara, Onyx Boox Monte Cristo
Quote:
Originally Posted by theducks View Post
Class=chapter is a crude way to do it. Actually the word Chapter is a keyword
Au contraire, it is an extremely refined way of doing it, because it may be applied, or not as one chooses, to so many instances where the keyword 'chapter' is unavailable, e.g. Foreword, Preface, Author's Note, Glossary, Epilog etc, even to books that indicate chapters by such formatting "subtleties" as capitalizing the first line or first few words of each chapter; all this merely by coding a regex that fits the peculiarities of the text involved to control a script that codes the chapter heading for each such found in the text. Really the only limit to it is one's imagination.

Quote:
or use the CSS page-break-before: always; attached to the first block where you want a split
I've tried that via the html 'style' tag, but it does not produce the desired effect. I've never learned CSS because my interest in page formatting is minimal, I find calibre's vanilla option completely satisfactory in that respect.

But thank you for your help.
porphyry5 is offline   Reply With Quote