BUPE v0.1.0 BUPE.Parser

An EPUB 3 conforming parser. This implementation should support also EPUB 2.

Example

BUPE.Parser.parse("sample.epub")
#=> %BUPE.Config{
      title: "Sample",
      creator: "John Doe",
      unique_identifier: "EXAMPLE",
      files: ["bacon.xhtml", "ham.xhtml", "egg.xhtml"],
      nav: [
        %{id: "ode-to-bacon", label: "1. Ode to Bacon", content: "bacon.xhtml"},
        %{id: "ode-to-ham", label: "2. Ode to Ham", content: "ham.xhtml"},
        %{id: "ode-to-egg", label: "3. Ode to Egg", content: "egg.xhtml"}
      ]
    }

Summary

Functions

EPUB v3 parser

Functions

parse(epub_file)

Specs

parse(Path.t) :: BUPE.Config.t | no_return

EPUB v3 parser