Sha256: efa4bb8c86e27404c6d77d47103f478751b4cb281bfe7cd94fd8b66e35c061ac

Contents?: true

Size: 1.02 KB

Versions: 25

Compression:

Stored size: 1.02 KB

Contents

{file:docs/Home} > **{file:docs/EpubOpen}**

`epub-open` command-line tool
=============================

`epub-open` tool provides interactive shell(IRB) which helps you research about EPUB book.

Usage
-----

    epub-open path/to/book.epub

IRB starts. `self` becomes the EPUB book and can access to methods of `EPUB`.

    title
    => "Title of the book"
    metadata.creators
    => [Author 1, Author2, ...]
    resources.first.properties
    => ["nav"] # You know that first resource of this book is nav document
    nav = resources.first
    => ...
    nav.href
    => #<Addressable::URI:0x15ce350 URI:nav.xhtml>
    nav.media_type
    => "application/xhtml+xml"
    puts nav.read
    <?xml version="1.0"?>
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
        :
        :
        :
    </html>
    => nil
    exit # Enter "exit" when exit the session

For command-line options:

    epub-open -h

Development of this tool is still in progress.
Welcome comments and suggestions for this!

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
epub-parser-0.3.5 docs/EpubOpen.markdown
epub-parser-0.3.4 docs/EpubOpen.markdown
epub-parser-0.3.3 docs/EpubOpen.markdown
epub-parser-0.3.2 docs/EpubOpen.markdown
epub-parser-0.3.1 docs/EpubOpen.markdown
epub-parser-0.3.0 docs/EpubOpen.markdown
epub-parser-0.2.9 docs/EpubOpen.markdown
epub-parser-0.2.8 docs/EpubOpen.markdown
epub-parser-0.2.7 docs/EpubOpen.markdown
epub-parser-0.2.6 docs/EpubOpen.markdown
epub-parser-0.2.5 docs/EpubOpen.markdown
epub-parser-0.2.4 docs/EpubOpen.markdown
epub-parser-0.2.3 docs/EpubOpen.markdown
epub-parser-0.2.2 docs/EpubOpen.markdown
epub-parser-0.2.1 docs/EpubOpen.markdown
epub-parser-0.2.0 docs/EpubOpen.markdown
epub-parser-0.1.9 docs/EpubOpen.markdown
epub-parser-0.1.8 docs/EpubOpen.markdown
epub-parser-0.1.7.1 docs/EpubOpen.markdown
epub-parser-0.1.7 docs/EpubOpen.markdown