File: README

package info (click to toggle)
libparse-man-perl 0.03-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: perl: 1,426; makefile: 2
file content (91 lines) | stat: -rw-r--r-- 2,145 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
NAME

    Parse::Man - parse nroff-formatted manpages

DESCRIPTION

    This abstract subclass of Parser::MGC recognises nroff grammar from a
    file or string value. It invokes methods when various nroff directives
    are encountered. It is intended that this class be used as a base
    class, with methods provided to handle the various directives and
    formatting options. Typically a subclass will store intermediate
    results in a data structure, building it as directed by these method
    invocations.

TEXT CHUNK FORMATTING METHOD

    The following method is used to handle formatted text. Each call is
    passed a plain string value from the input content.

 chunk

       $parser->chunk( $text, %opts )

    The %opts hash contains the following options:

    font => STRING

      The name of the current font (R, B, etc..)

    size => INT

      The current text size, relative to a paragraph base of 0.

    Other font requests that are found in \fX or \f(AB requests are handled
    by similarly-named methods.

PARAGRAPH HANDLING METHODS

    The following methods are used to form paragraphs out of formatted text
    chunks. Their return values are ignored.

 para_TH

       $parser->para_TH( $name, $section )

    Handles the .TH paragraph which gives the page title and section
    number.

 para_SH

       $parser->para_SH( $title )

    Handles the .SH paragraph, which gives a section header.

 para_SS

       $parser->para_SS( $title )

    Handles the .SS paragraph, which gives a sub-section header.

 para_TP

       $parser->para_TP( $opts )

    Handles a .TP paragraph, which gives a term definition.

 para_IP

       $parser->para_IP( $opts )

    Handles a .IP paragraph, which is indented like the definition part of
    a .TP paragraph.

 para_P

       $parser->para_P( $opts )

    Handles the .P, .PP or .LP paragraphs, which are all synonyms for a
    plain paragraph content.

 para_EX

       $parser->para_EX( $opts )

    Handles the .EX paragraph, which is example text; intended to be
    rendered in a fixed-width font without filling.

AUTHOR

    Paul Evans <leonerd@leonerd.org.uk>