1Gtk2::Ex::PodViewer::PaUrsseerr(C3o)ntributed Perl DocumGetnkt2a:t:iEoxn::PodViewer::Parser(3)
2
3
4
6 Gtk2::Ex::PodViewer::Parser - a custom POD Parser for
7 Gtk2::Ex::PodViewer.
8
10 $Gtk2::Ex::PodViewer::Parser::LINK_TEXT_TEMPLATE = '{section} in the {document} manpage';
11
12 my $parser = Gtk2::Ex::PodViewer::Parser->new(
13 buffer => $Gtk2TextView->get_buffer,
14 );
15
16 $parser->parse_from_file($file);
17
19 Gtk2::Ex::PodViewer::Parser is a custom Pod parser for the
20 Gtk2::Ex::PodViewer widget. You should never need to use it directly.
21
22 It is based on Pod::Parser.
23
25 One neat method not implemented by Pod::Parser is
26
27 $parser->parse_from_string($string);
28
29 This parses a scalar containing POD data, using IO::Scalar to create a
30 tied filehandle.
31
33 use Gtk2::Ex::PodViewer::Parser qw(decode_entities);
34 my $text = decode_entities($pod);
35
36 This function takes a string of POD, and returns it with all the POD
37 entities (eg "E<gt>" => ">") decoded into readable characters.
38
40 The $LINK_TEXT_TEMPLATE class variable contains a string that is used
41 to generate link text for POD links for the form
42
43 LE<lt>foo/barE<gt>
44
45 This string is run through the "gettext()" function from
46 Locale::gettext (if installed) before it is used, so if your
47 application supports internationalisation, then the string will be
48 translated if it appears in your translation domain. It contains two
49 tokens, "{section}" and "{document}", that are replaced with "foo" and
50 "bar" respectively.
51
53 · Gtk2::Ex::PodViewer
54
55 · Pod::Parser
56
57 · Locale::gettext
58
60 Gavin Brown, Torsten Schoenfeld and Scott Arrington.
61
63 (c) 2003-2005 Gavin Brown (gavin.brown@uk.com). All rights reserved.
64 This program is free software; you can redistribute it and/or modify it
65 under the same terms as Perl itself.
66
67
68
69perl v5.30.1 2020-01-30 Gtk2::Ex::PodViewer::Parser(3)