Parse::Man - parse nroff-formatted manpages
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.
The following method is used to handle formatted text. Each call is passed a plain string value from the input content.
%opts hash contains the following options:
The name of the current font (
The current text size, relative to a paragraph base of 0.
Other font requests that are found in
\f(AB requests are handled by similarly-named methods.
The following methods are used to form paragraphs out of formatted text chunks. Their return values are ignored.
.TH paragraph which gives the page title and section number.
which gives a section header.
which gives a sub-section header.
which gives a term definition.
which is indented like the definition part of a
which are all synonyms for a plain paragraph content.
Paul Evans <firstname.lastname@example.org>