4 our @ISA = qw(Pod::Parser);
7 our %E = qw( < lt > gt );
10 (undef, my $text) = @_;
11 $text =~ s/([<>])/E<$E{$1}>/g;
15 sub simple_delimiters
{
16 (undef, my $seq) = @_;
17 $seq -> left_delimiter
( '<' );
18 $seq -> right_delimiter
( '>' );
23 my($parser,$text,$line) = @_;
24 print {$parser->output_handle()}
26 { -expand_text
=> q
(escape_ltgt
),
27 -expand_seq
=> q
(simple_delimiters
) },
28 $text, $line ) -> raw_text
();
37 Pod::Plainer - Perl extension for converting Pod to old style Pod.
43 my $parser = Pod::Plainer -> new ();
44 $parser -> parse_from_filehandle(\*STDIN);
48 Pod::Plainer uses Pod::Parser which takes Pod with the (new)
49 'CE<lt>E<lt> .. E<gt>E<gt>' constructs
50 and returns the old(er) style with just 'CE<lt>E<gt>';
51 '<' and '>' are replaced by 'EE<lt>ltE<gt>' and 'EE<lt>gtE<gt>'.
53 This can be used to pre-process Pod before using tools which do not
54 recognise the new style Pods.
62 Robin Barker, rmb1@cise.npl.co.uk