Creation of an OCF instance for the final book.
The main processing steps are:
the user supplied data, i.e., the result of JSON parsing of the input argument
whether the package stops at the creation of an EPUB content and displays the content of the OPF file itself (for debugging)
a Promise holding the final OCF content.
Creation of the real book data. The method runs a conversion for a single document on all chapters, creates the relevant Chapter instances, and retrieves some book level data to be used in subsequent steps.
user supplied configuration data
the Collection structure with all Chapter entries properly initialized.
Main Entry point for collections
This is the core entry point for the management of collections. It is a layer on top of the “core” r2epub functionality, i.e., the creation of an EPUB 3 instance for an individual HTML document.
The general approach for the creation of collection is as follows:
See create_epub for further details.