EBook::...st::Item(3)

πŸ“¦
version 0.6 Β· 2 versions
, in fedora 43

πŸ’– 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 %opts is an anonymous hash, and it might contain the following keys:
    • id
    • href
    • media_type
  • encode($xmlwriter) β€” encodes the object into XML form, using an XML::Writer instance. 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. 😭


Copyright 2009, 2010 Oleksandr Tymoshenko.

<http://bluezbox.com>

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