BUPE.Parser (BUPE v0.6.2)
View SourceAn 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: [
%BUPE.Item{
duration: nil,
fallback: nil,
href: "bacon.xhtml",
id: "ode-to-bacon",
media_overlay: nil,
media_type: "application/xhtml+xml",
description: nil,
properties: "scripted",
content: "<!DOCTYPE html>\n...",
}
],
styles: [
%BUPE.Item{href: "stylesheet.css", id: "styles", "media-type": "text/css", content: "..."}
],
title: "Sample",
unique_identifier: "EXAMPLE",
version: "3.0"
}
Summary
Functions
@spec run(Path.t()) :: BUPE.Config.t() | no_return()
EPUB v3 parser