The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

 EPUB::Parser::File::OPF::Context::Manifest - parses manifest node in opf file

METHODS

Get navigation file path from item element with the property 'nav'.

cover_image_path(\%opt)

Get cover image path from item element with the property 'cover-image'. Valid options are:

abs
 $manifest->cover_image_path({ abs => 1 });
 Get absolute path.

attr_by_media_tyep({ regexp => qr{ ... }ix })

Retrun in the following format.

 {

    'image/png' =>  [{
        href => "cover.png", id => "_cover.png", properties => "cover-image"
    },{
        href => "fig01.png", id => "_fig01.png"
    }],
    'text/css' => [{
        .....
    }],
 }

attr_by_id

Retrun in the following format.

 {
    "_cover.png"   => { "media-type" => "image/png", href => "cover.png", properties => "cover-image" },
    "_style.css"   => { "media-type" => "text/css",  href => "style.css" },
    "_toc.ncx"     => { "media-type" => "application/x-dtbncx+xml", href => "toc.ncx" },
    "_cover.xhtml" => { "media-type" => "application/xhtml+xml",  href => "cover.xhtml" },
    "_nav.xhtml"   => { "media-type" => "application/xhtml+xml",  href => "nav.xhtml", properties => "nav" },
    ....
 }

items_path

Returns all item path.

items_path_by_media_type

Returns items path with media-type specified by Regular expression.

items

Returns all item. The item is instance of EPUB::Parser::Util::Archive::Iterator.

items_by_media

Returns items with specified media-type. image/*, video/* ,audio/* . The item is instance of EPUB::Parser::Util::Archive::Iterator.

items_by_media_type({ regexp => qr{ ... }ix })

Returns items with media-type specified by Regular expression. The item is instance of EPUB::Parser::Util::Archive::Iterator.

LICENSE

Copyright (C) tokubass.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

tokubass <tokubass {at} cpan.org>