BUPE v0.4.0 BUPE.Parser View Source

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"
    }

Link to this section Summary

Functions

EPUB v3 parser

Link to this section Functions

EPUB v3 parser