EBook-Ishmael
view release on metacpan or search on metacpan
lib/EBook/Ishmael/TextBrowserDump.pm view on Meta::CPAN
1;
=head1 NAME
EBook::Ishmael::TextBrowserDump - Format HTML through different installed programs
=head1 SYNOPSIS
use EBook::Ishmael::TextBrowserDump;
my $dump = browser_dump($file);
=head1 DESCRIPTION
B<EBook::Ishmael::TextBrowserDump> is a module for dumping the contents of
HTML files to formatted text, via programs like L<lynx(1)>. For
L<ishmael> user documentation, you should consult its manual (this is
developer documentation).
B<EBook::Ishmael::TextBrowserDump> requires at least one of the following
programs to be installed:
=over 4
=item L<elinks(1)>
=item L<links(1)>
=item L<lynx(1)>
=item L<w3m(1)>
=item chawan
=item L<pandoc(1)>
=item L<queequeg(1)>
=back
=head1 SUBROUTINES
=head2 $dump = browser_dump($file, $opt_ref)
Subroutine that dumps the formatted text contents of C<$file> via a text
web browser.
C<browser_dump()> can also be given a hash ref of options.
=over 4
=item browser
The specific browser you would like to use for the dumping. See above for a list
of valid browsers. If not specified, defaults to the first browser
C<browser_dump()> finds installed on your system.
=item xhtml
Bool specifying whether the input file is XHTML or not. Defaults to C<0>.
=item width
Specify the width of the formatted text. Defaults to C<80>.
=back
=head1 GLOBAL VARIABLES
=head2 $EBook::Ishmael::TextBrowserDump::CAN_DUMP
Bool stating whether this module is able to dump or not (is a valid
text browser installed or not).
=head1 AUTHOR
Written by Samuel Young, E<lt>samyoung12788@gmail.comE<gt>.
This project's source can be found on its
L<Codeberg Page|https://codeberg.org/1-1sam/ishmael>. Comments and pull
requests are welcome!
=head1 COPYRIGHT
Copyright (C) 2025-2026 Samuel Young
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
=head1 SEE ALSO
L<queequeg(1)>, L<elinks(1)>, L<links(1)>, L<lynx(1)>, L<w3m(1)>, L<cha(1)>,
L<pandoc(1)>,
=cut
( run in 0.747 second using v1.01-cache-2.11-cpan-39bf76dae61 )