View Source BUPE.Parser (BUPE v0.6.1)

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

Example

BUPE.Parser.parse("sample.epub")
#=> %BUPE.Config{
  creator: "John Doe",
  nav: [
    %{idref: 'ode-to-bacon'},
    %{idref: 'ode-to-ham'},
    %{idref: 'ode-to-egg'}
  ],
  pages: [
    %{
      href: 'bacon.xhtml',
      id: 'ode-to-bacon',
      "media-type": 'application/xhtml+xml'
    },
    %{
      href: 'ham.xhtml',
      id: 'ode-to-ham',
      "media-type": 'application/xhtml+xml'
    },
    %{
      href: "egg.xhtml",
      id: 'ode-to-egg',
      "media-type": 'application/xhtml+xml'
    }
  ],
  styles: [
    %{href: 'stylesheet.css', id: 'styles', "media-type": 'text/css'}
  ],
  title: "Sample",
  unique_identifier: "EXAMPLE",
  version: "3.0"
}

Summary

Functions

EPUB v3 parser

Functions

@spec run(Path.t()) :: BUPE.Config.t() | no_return()

EPUB v3 parser