Ebread

;

NAME

ebread - EPUB dumper

SYNOPSIS

ebread [options] epub

DESCRIPTION

ebread is a simple script/program that extracts and dumps the XHTML contents of a given EPUB ebook archive. It accomplishes this by taking advantage of the dump feature found in many text-mode web browsers. The output should be suitable for piping into other programs for further processing.

OPTIONS

  • -D|--dumper=dumper

    Specify the dumper to use for text formatting. The following are valid options, as long as the respective browser is installed on your system:

  • elinks

  • links

  • lynx

  • w3m

  • If this option is not specified, ebread will just use dumper specified by the EBREAD_DUMPER environment variable if defined, or the first dumper it finds on your system.

  • -w|--width=width

    Specify the output width. Must be at least 10, at most 512. Defaults to 80.

  • -m|--metadata

    Instead of dumping the text contents of an EPUB, dump its metadata.

  • -o|--out=file

    Write dumped text to file instead of stdout.

  • -x|--extract=dir

    Instead of dumping the text contents of an EPUB, extract the EPUB's archive contents to dir.

  • -h|--help

    Print usage message and exit.

  • -m|--man

    Print manual and exit.

  • -v|--version

    Print version/copyright information and exit.

ENVIRONMENT

  • EBREAD_DUMPER

    Name of the default dumper to use. See the -D option documentation for a list of valid dumper names.

AUTHOR

Written by Samuel Young, [email protected].

COPYRIGHT

Copyright 2024-2025, Samuel Young

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

SEE ALSO

elinks(1), links(1), lynx(1), w3m(1), unzip(1)

App::Ebread v0.2.3

EPUB dumper

Authors

  • Samuel Young

License

Artistic-2.0

Dependencies

File::TempFile::WhichPod::To::TextXMLunzip:from<bin>any: elinks:from<bin>, links:from<bin>, links2:from<bin>, lynx:from<bin>, w3m:from<bin>

Test Dependencies

Provides

  • App::Ebread
  • App::Ebread::Epub
  • App::Ebread::Epub::Unzip
  • App::Ebread::TextBrowserDump

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.