[][src]Module gen_epub_book::ops

Main functions doing actual work.

First, use parse_descriptor() to get an element list from a descriptor file, then construct an EPubBook::from_elements(), validate and absolutise paths via EPubBook::normalise_paths() and write the book with EPubBook::write_zip().

Structs

EPubBook

Full ePub book, bundled together.

Enums

BookElement

A single element of the e-book

EPubContentType

Enum representing what can go in an ePub

IncludeDirectory

Representation of an -Include directory.

Functions

find_file

Find an appropriate IncludeDirectory for the specified file, or None otherwise

find_title

Find an ePub title line in the specified input stream.

parse_descriptor

Parse the whole descriptor with a specified separator with the specified rigidness, stopping at the first encountered error.

Type Definitions

EPubData

An (ID, filename, data) tuple that represents a single data point of an ePub.