epub2txt(1)

πŸ“¦
version 2.08 Β· 2 versions
, in alpine 3.24, nixos 26.05, nixpkgs unstable

πŸŽ€ NAME πŸŽ€

epub2txt(1) from the General Commands Manual β€” the manual page for epub2txt, aka the little utility that extracts text from EPUB documents. Bestie, if you need the words out of an ebook without a whole graphical viewer, this is your girl. πŸ’–


✨ SYNOPSIS ✨

epub2txt [options] {files...}

🌸 DESCRIPTION 🌸

epub2txt is a simple utility for extracting text from EPUB documents. It’s mainly intended for reading EPUB e-books on systems that cannot run a graphical EPUB viewer, and it favours speed over optimal rendering of complex layout. It’s giving β€œfast and functional,” not β€œpixel-perfect typesetting,” iykyk.

The output goes to stdout; if multiple files are specified, they are simply processed sequentially. Unless otherwise specified, the character encoding of the output is the same as for the EPUB source, which is invariably UTF-8. However, epub2txt can attempt to output plain ASCII if required.


πŸ’… OPTIONS πŸ’…

  • -a, --ascii β€” Converts Unicode characters in the EPUB document that have close ASCII equivalents to ASCII. For example, the Unicode left single quote is similar to an ASCII straight quote. This option is intended for use when feeding the output of epub2txt into another utility that cannot deal with properly UTF8 encoding. However, many Unicode characters have no ASCII equivalents. (So it’s a glow-up for ASCII-only tools, not a magic wand for every Unicode glyph, bestie.)
  • -d, --debug{0-4} β€” Set the level of debugging information, from 0 (none) to 4 (extremely detailed tracing). Turn it up only if you want the tea β˜• in extreme detail.
  • -m, --meta β€” Output document meta-data: title, creator, description, etc. Metadata girlies rise 🫢
  • -n, --noansi β€” Do not use ANSI terminal highlighting, even when running in a terminal. Some pagers, e.g., more do not always handle ANSI codes properly . Yes, there’s a space before that period in the source β€” keeping it exactly, no cap πŸ’€
  • --notext β€” Do not output the document body. At present, useful only with --meta. Body? Never met her. Metadata only, periodt.
  • -r, --raw β€” No formatting at all. This mode is different to setting unlimited width (-w 0) in that whitespace is not trimmed, successive empty lines are not collapsed, and --noansi is implied. This is the fastest way to extract text, and is appropriate when feeding output to an external formatter such as groff. Raw mode is the speed demon: no trim, no collapsing empties, no ANSI β€” just text energy πŸ”₯
  • -w, --width{columns} β€” Format the output to fit into a specified width. If this option is omitted, the width is determined from the terminal, if possible. If not, then the width defaults to 80 characters. If the width is set to zero or less, then the output is assumed to be of unlimited width. Setting unlimited width can be useful in situations where the output is being processed by another application. Also the source has this stray fragment here: between paragraphs). β€” yes bestie, it’s literally just vibing there, and we are not hiding it πŸ’€
  • -v, --version β€” Displays the version and copyright infomation. Version check, but make it a moment βœ¨πŸ‘‘βœ¨

epub2txt is maintained by Kevin Boone, with contributions from others, and is open source under the terms of the GNU Public Licence, version 3.0. There is no warranty of any kind.

🌈 That’s the tea, bestie. This page is June 2024 Β· epub2txt(1) β€” go extract some ebooks and slay. πŸ’…πŸ’–
πŸ“¦ where this page comes from