EBook::...st::Item(3)
π EBook::EPUB::Manifest::Item π
okay bestie, so this is EBook::EPUB::Manifest::Item, a little module that lives in the User Contributed Perl Documentation collection, and it's basically the main character of your EPUB's <manifest> element. no cap. π«Ά
β¨ NAME β¨
EBook::EPUB::Manifest::Item β the item class, fr fr.
πΈ SYNOPSIS πΈ
It's givingβ¦ an item for the <manifest> element of an OPF file. Each one describes a document, an image file, a style sheet, or literally any other component that's considered part of the publication. so like, every little piece of your book gets its own item and honestly? iconic. π
π SUBROUTINES/METHODS π
Here's the whole roster, no gatekeeping:
new(%opts)β makes you a fresh item. the%optsis an anonymous hash, and it might contain the following keys:idhrefmedia_type
encode($xmlwriter)β encodes the object into XML form, using anXML::Writerinstance. that's the whole vibe. β¨id([$id])β get/set the ID of the OPS Content Document that this item refers to.href([$href])β get/set the URI of the OPS Content Document that this item refers to.media_type([$media_type])β get/set the item's MIME media type. π
lowkey the pattern here is get when you pass nothing, set when you pass something β that's just what the brackets in[$id],[$href]and[$media_type]mean, bestie.
π¦ AUTHOR π¦
Oleksandr Tymoshenko, <gonzo@bluezbox.com> β absolute legend, we stan. π
π BUGS π
Found a bug? Got a feature request? Please report any bugs or feature requests to <gonzo@bluezbox.com>. do NOT suffer in silence, babes. π
π 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. slay. π
π POD ERRORS π
not me having to tell you this, but the doc above had some coding errors, and here's the tea:
Around line 82:
Non-ASCII character seen before =encoding in 'itemβs'. Assuming
UTF-8
so yeah, the apostrophe in itemβs showed up before any =encoding was declared, and Perl just went "fine, assuming UTF-8." we move. π
and that's the whole page, bestie β courtesy of perl v5.42.0, dated 2025-07-25, and it's the EBook::...st::Item(3) page from the User Contributed Perl Documentation crew. mwah. πβ¨
π¦ 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