epub2txt(1)
π 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 ofepub2txtinto 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, from0(none) to4(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.,moredo 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--noansiis implied. This is the fastest way to extract text, and is appropriate when feeding output to an external formatter such asgroff. 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 to80characters. 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 β¨πβ¨
π AUTHOR AND LEGAL π
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
- alpine 3.24: epub2txt-doc 2.08-r1 Β· GPL-3.0-only
- nixos 26.05: epub2txt2 2.08
- nixpkgs unstable: epub2txt2 2.08
- Copyright (C) 2013-22 Kevin Boone
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms