Linux SoftwareProgrammingLibrariesPod::Simple::Subclassing 3.04

Pod::Simple::Subclassing 3.04


Pod::Simple::Subclassing is a Perl module that can write a formatter as a Pod::Simple subclass. SYNOPSIS package Pod::SomeFor
Developer:   Sean M. Burke
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   255K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Pod::Simple::Subclassing is a Perl module that can write a formatter as a Pod::Simple subclass.

SYNOPSIS

package Pod::SomeFormatter;
use Pod::Simple;
@ISA = qw(Pod::Simple);
$VERSION = '1.01';
use strict;

sub _handle_element_start {
my($parser, $element_name, $attr_hash_r) = @_;
...
}

sub _handle_element_end {
my($parser, $element_name) = @_;
...
}

sub _handle_text {
my($parser, $text) = @_;
...
}
1;

This document is about using Pod::Simple to write a Pod processor, generally a Pod formatter. If you just want to know about using an existing Pod formatter, instead see its documentation and see also the docs in Pod::Simple.

The zeroeth step in writing a Pod formatter is to make sure that there isn't already a decent one in CPAN. See http://search.cpan.org/, and run a search on the name of the format you want to render to. Also consider joining the Pod People list http://lists.perl.org/showlist.cgi?name=pod-people and asking whether anyone has a formatter for that format -- maybe someone cobbled one together but just hasn't released it.

The first step in writing a Pod processor is to read perlpodspec, which contains notes information on writing a Pod parser (which has been largely taken care of by Pod::Simple), but also a lot of requirements and recommendations for writing a formatter.

The second step is to actually learn the format you're planning to format to -- or at least as much as you need to know to represent Pod, which probably isn't much.
The third step is to pick which of Pod::Simple's interfaces you want to use -- the basic interface via Pod::Simple or Pod::Simple::Methody is event-based, sort of like HTML::Parser's interface, or sort of like XML::Parser's "Handlers" interface), but Pod::Simple::PullParser provides a token-stream interface, sort of like HTML::TokeParser's interface; Pod::Simple::SimpleTree provides a simple tree interface, rather like XML::Parser's "Tree" interface.

Users familiar with XML-handling will find one of these styles relatively familiar; but if you would be even more at home with XML, there are classes that produce an XML representation of the Pod stream, notably Pod::Simple::XMLOutStream; you can feed the output of such a class to whatever XML parsing system you are most at home with.

The last step is to write your code based on how the events (or tokens, or tree-nodes, or the XML, or however you're parsing) will map to constructs in the output format. Also sure to consider how to escape text nodes containing arbitrary text, and also what to do with text nodes that represent preformatted text (from verbatim sections).

Requirements:
  • Perl
    tags pod simple  pod formatter  sub handle  xml parser  like html  like xml  with xml  text nodes  the output  home with  pod people  tree interface  you want  

    Download Pod::Simple::Subclassing 3.04


     http://mirrors.evolva.ro/CPAN/authors/id/A/AR/ARANDAL/Pod-Simple-3.04.tar.gz


    Authors software

    Pod::Simple::Subclassing 3.04 (by Sean M. Burke)
    Pod::Simple::Subclassing is a Perl module that can write a formatter as a Pod::Simple subclass.

    SYNOPSIS

    package Pod::SomeFor

    Number::Latin 1.01 (by Sean M. Burke)
    Number::Latin is a Perl module that can convert to/from the number system "a,b,...z,aa,ab..."

    SYNOPSIS

    use Number::Latin;

    Pod::Simple::HTMLBatch 3.04 (by Sean M. Burke)

    MIDI::Opus 0.81 (by Sean M. Burke)
    MIDI::Opus are functions and methods for MIDI opuses.

    SYNOPSIS

    use MIDI; # uses MIDI::Opus et al
    foreach $one (@ARGV) {

    HTML::Tree::AboutTrees 3.21 (by Sean M. Burke)
    HTML::Tree::AboutTrees is a article on tree-shaped data structures in Perl.

    This an article, not a module.

    The following articl


    Similar software

    Pod::Simple::Subclassing 3.04 (by Sean M. Burke)
    Pod::Simple::Subclassing is a Perl module that can write a formatter as a Pod::Simple subclass.

    SYNOPSIS

    package Pod::SomeFor

    PXR::Parser 0.1.5 (by Nicholas Perez)
    PXR::Parser is a Pure Perl SAX XML Push Parser.

    SYNOPSIS

    use PXR::Parser;

    my $parser = PXR::Parser->new(

    RDF::Simple::Parser 0.3 (by Jo Walsh)

    HTML::Parser 3.54 (by Gisle Aas)
    HTML::Parser is a HTML parser class

    wwtxt 1.11 (by Kasper Peeters)
    Parsing XML and CSS data is rather simple, but most libraries that aim for this simple goal are bloated with a whole lot of other irr

    Yahoo::Search::XML 1.7.10 (by Jeffrey Friedl)
    Yahoo::Search::XML is a Perl module with simple routines for parsing XML from Yahoo! Search.

    The XML sent back from Yahoo! is fair

    XML::Parser::EasyTree 0.01 (by Eric Bohlman)
    XML::Parser::EasyTree is an easier tree style for XML::Parser.

    SYNOPSIS

    use XML::Parser;
    use XML::Parser::EasyTree;
    $XM

    XML::SimpleObject 0.53 (by Dan Brian)
    XML::SimpleObject is a Perl extension allowing a simple object representation of a parsed XML::Parser tree.

    SYNOPSIS

    use XML:

    Tree::Simple::SAX 0.01 (by Stevan Little)
    Tree::Simple::SAX is a set of classes for using Tree::Simple with XML.

    SYNOPSIS

    use Tree::Simple::SAX;
    use XML::SAX::Parse

    OODoc 0.95 (by Mark Overmeer)
    OODoc is an Object Oriented documentation generator.

    SYNOPSIS

    use OODoc;
    my $doc = OODoc->new(distribution => 'My Name', ver


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags