Sha256: efc3925f3717c6a9f48ff23832ee14dc4b3207a51ce33e4fafc975d3f1ef5250

Contents?: true

Size: 1.51 KB

Versions: 13

Compression:

Stored size: 1.51 KB

Contents

{file:docs/Home.markdown} > **{file:docs/Publication.markdow}**

Publication(Information about EPUB book)
========================================

EPUB Publications is information about EPUB books.

EPUB Parser represents it as {EPUB::Publication} module and classes under the namespace and you can access them such like `EPUB::Parser.parse("path/to/book.epub").package`

Let

    book = EPUB::Parser.parse("path/to/book.epub")

for continuing.

Five Models
-----------

`book.package` is a package document, a root of information tree about the book, and it has attributes to access five major models of the publication; {EPUB::Publication::Package::Metadata Metadata}, {EPUB::Publication::Package::Manifest Manifest}, {EPUB::Publication::Package::Spine Spine}, {EPUB::Publication::Package::Guide Guide} and {EPUB::Publication::Package::Bindings Bindings}.

Each of them has information the book in the way its own.

Metadata
--------

{EPUB::Publication::Package::Metadata Metadata} is literally metadata of the book, including identifiers, titles, languages, links and so on.

You can access them by:

    md = book.package.metadata # => EPUB::Publication::Package::Metadata
    md.titles # => [#<EPUB::Publication::Package::Metadata::Title...>, #<EPUB::Publication::Package::Metadata::Title...>, ...]
    # ...

Manifest
--------

Spine
-----

Guide
-----

Bindings
--------

Package
-------

References
----------

* [EPUB Publications 3.0][publications] on IDPF site

[publications]: http://www.idpf.org/epub/30/spec/epub30-publications.html

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
epub-parser-0.2.4 docs/Publication.markdown
epub-parser-0.2.3 docs/Publication.markdown
epub-parser-0.2.2 docs/Publication.markdown
epub-parser-0.2.1 docs/Publication.markdown
epub-parser-0.2.0 docs/Publication.markdown
epub-parser-0.1.9 docs/Publication.markdown
epub-parser-0.1.8 docs/Publication.markdown
epub-parser-0.1.7.1 docs/Publication.markdown
epub-parser-0.1.7 docs/Publication.markdown
epub-parser-io-0.1.6b docs/Publication.markdown
epub-parser-io-0.1.6a docs/Publication.markdown
epub-parser-io-0.1.6 docs/Publication.markdown
epub-parser-0.1.6 docs/Publication.markdown