3 package Pod::Perldoc::ToNroff;
7 # This is unlike ToMan.pm in that it emits the raw nroff source!
9 use base qw(Pod::Perldoc::BaseTo);
11 sub is_pageable { 1 } # well, if you ask for it...
12 sub write_with_binmode { 0 }
13 sub output_extension { 'man' }
17 sub center { shift->_perldoc_elem('center' , @_) }
18 sub date { shift->_perldoc_elem('date' , @_) }
19 sub fixed { shift->_perldoc_elem('fixed' , @_) }
20 sub fixedbold { shift->_perldoc_elem('fixedbold' , @_) }
21 sub fixeditalic { shift->_perldoc_elem('fixeditalic' , @_) }
22 sub fixedbolditalic { shift->_perldoc_elem('fixedbolditalic', @_) }
23 sub quotes { shift->_perldoc_elem('quotes' , @_) }
24 sub release { shift->_perldoc_elem('release' , @_) }
25 sub section { shift->_perldoc_elem('section' , @_) }
27 sub new { return bless {}, ref($_[0]) || $_[0] }
34 map {; $_, $self->{$_} }
39 defined(&Pod::Perldoc::DEBUG)
40 and Pod::Perldoc::DEBUG()
41 and print "About to call new Pod::Man ",
42 $Pod::Man::VERSION ? "(v$Pod::Man::VERSION) " : '',
44 @options ? "[@options]" : "(nil)", "\n";
47 Pod::Man->new(@options)->parse_from_file(@_);
55 Pod::Perldoc::ToNroff - let Perldoc convert Pod to nroff
59 perldoc -o nroff -d something.3 Some::Modulename
63 This is a "plug-in" class that allows Perldoc to use
64 Pod::Man as a formatter class.
66 The following options are supported: center, date, fixed, fixedbold,
67 fixeditalic, fixedbolditalic, quotes, release, section
69 Those options are explained in L<Pod::Man>.
73 perldoc -o nroff -w center:Pod -d something.3 Some::Modulename
77 This module may change to use a different pod-to-nroff formatter class
78 in the future, and this may change what options are supported.
82 L<Pod::Man>, L<Pod::Perldoc>, L<Pod::Perldoc::ToMan>
84 =head1 COPYRIGHT AND DISCLAIMERS
86 Copyright (c) 2002 Sean M. Burke. All rights reserved.
88 This library is free software; you can redistribute it and/or modify it
89 under the same terms as Perl itself.
91 This program is distributed in the hope that it will be useful, but
92 without any warranty; without even the implied warranty of
93 merchantability or fitness for a particular purpose.
97 Sean M. Burke C<sburke@cpan.org>