NAME

Pod::Elemental::Transformer::Pod5 - the default, minimal semantics of Perl5's pod element hierarchy

VERSION

version 0.103006

SYNOPSIS

Pod::Elemental::Transformer::Pod5->new->transform_node($pod_elem_document);

...and that's it.

OVERVIEW

The Pod5 transformer is meant to be used to convert the result of a "stock" Pod::Elemental::Document into something simpler to work with. It assumes that the document conforms more or less to the convetions laid out in perlpod and perlpodspec. It is not very strict, and makes very few assumptions, described here:

  • =begin/=end and =for enclose or produce regions within the document

  • regions are associated with format names; format names that begin with a colon enclose more pod-like content

  • regions nest strictly; all inner regions must end before outer regions

  • paragraphs in non-pod regions are "data" paragraphs

  • non-data paragraphs that start with spaces are "verbatim" paragraphs

  • groups of data or verbatim paragraphs can be consolidated

Further, all elements are replaced with equivalent elements that perform the Pod::Elemental::Autoblank role, so all "blank" events can be removed form the tree and ignored.

PERL VERSION

This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.

CONFIGURATION

None. For now, it just does the same thing every time with no configuration or options.

AUTHOR

Ricardo SIGNES <cpan@semiotic.systems>

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by Ricardo SIGNES.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.