EBook::EPUB::NCX(3)
π EBook::EPUB::NCX π
okay so bestie, this is the manual page for EBook::EPUB::NCX, and it lives in the User Contributed Perl Documentation section of your man pages. no cap, she's a whole vibe. let's get into it π«Ά
β¨ NAME β¨
EBook::EPUB::NCX β that's her, that's the name, periodt π
β¨ SYNOPSIS β¨
she's the class that handles the "Navigation Center eXtended" file of an OPF document. iconic behavior honestly π
β¨ DESCRIPTION β¨
okay so the Navigation Control file for XML applications (that's NCX, iykyk) is the thing that exposes the hierarchical structure of a Publication so the user can actually navigate through it. π
the NCX is giving table-of-contents energy, because it lets the reader jump straight to any of the major structural elements of the document β think part, chapter, or section. but plot twist: it will often contain more elements of the document than the publisher chooses to include in the original print table of contents. she's extra like that, and we love her for it. π
you can visualize it as a collapsible tree that PC users already know and recognize. it's giving file explorer, fr fr. π³β¨
β¨ SUBROUTINES/METHODS β¨
add_navpoint(%opts)
add a refrence to an OPS Content Document that is a part of the publication. π
%opts is an anonymous hash, and for the possible key values you gotta peek at EBook::EPUB::NCX::NavPoint.
the method returns the created EBook::EPUB::NCX::NavPoint object, which you can hold onto and use later for adding subsections. bestie she hands you the keys ππ
all_navpoints()
returns an array of EBook::EPUB::NCX::NavPoint objects β aka the current content of NCX. the whole roster, right there πΈ
add_author([$author)
add $author to the authors list. author count go up ππ
new(%opts)
create a new object, slay. %opts is an anonymous hash with these possible key values:
author
title
uid
that's the starter pack, go off π«
title([$title)
get/set the book title. she's a getter AND a setter, versatile queen π
to_xml()
returns the XML representation of NCX. here's your XML bestie, go ship it π
uid([$uid)
get/set the unique identfier for the book. every book needs her little fingerprint π«Ά
β¨ AUTHOR β¨
Oleksandr Tymoshenko, <gonzo@bluezbox.com> π
β¨ BUGS β¨
please report any bugs or feature requests to <gonzo@bluezbox.com> π
ngl if you found a bug, tell him! don't just sit there suffering in silence, bestie π
β¨ LICENSE AND COPYRIGHT β¨
Copyright 2009, 2010 Oleksandr Tymoshenko.
this module is free software; you can redistribute it and/or modify it under the terms of the BSD license. see the LICENSE file included with this distribution for the whole thing πβ¨
and that's the whole page, bestie π this manual page ships with perl v5.42.0 and was dated 2025-07-25 β thanks for reading, ily, go navigate something π¦π
π¦ where this page comes from
- fedora 43: perl-EBook-EPUB 0.6-39.fc43 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms