package oepub

  1. Overview
  2. Docs

ImagedText drives Book.Make to build a book where each chapter contains a list of either an image (bytes of the image) or some texts.

type t = (string, string) Stdlib.Either.t list
val empty : t
val finalize : Stdlib.Buffer.t -> t -> t
val of_file : filename:string -> media_type:string -> title:string -> EpubArchive.t -> Opf.t -> Toc.t -> t Book.Chapter.t list -> t -> Stdlib.Buffer.t -> string -> (string * t * Stdlib.Buffer.t * t Book.Chapter.t list) option
val of_tag : tag:string -> title:string -> dirname:string -> (string * string) list -> EpubArchive.t -> Opf.t -> Toc.t -> t Book.Chapter.t list -> t -> Stdlib.Buffer.t -> string * t * Stdlib.Buffer.t * t Book.Chapter.t list
OCaml

Innovation. Community. Security.