Kouji Tominaga
and 2 contributors

NAME

EPUB::Parser::File::OPF::Context::Spine - parses spine node in opf file

METHODS

ordered_list

Attribute of each child nodes of spine is added to hash. For exsample,

 [
    { idref => "_cover.xhtml",  linear => "no"},
    { idref => '_nav.xhtml' },
    { idref => "_document_0_0.xhtml" },
    ....
 ]

attrs

Get Manifest infomation corresponding to Spine. For example,

 [{
     'href' => 'cover.xhtml',
     'media-type' => 'application/xhtml+xml'
 },{
     'href' => 'nav.xhtml',
     'media-type' => 'application/xhtml+xml',
     'properties' => 'nav'
 },{
     ...
 }]

items_path

Return path of item which spine has is obtained.

items

Return item which spine has is obtained. 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>