'. Keep things simple. Remember: Just because it comes out of Pod::HTML2Pod doesn't mean it's happy normal pod. You can do lots of things in HTML that will produce POD that is strange but technically legal (like having huge and complex content in a `'/=head1) but that will make perldoc scream bloody murder about nroff macros stretched past their limit. Try to avoid using a WYSIWYG HTML editor, as they often produce scary source. Ditto for taking selecting "Save as... HTML" in your word processor. You can always try it, but look at the HTML to survey the damage before you try converting it to POD. Always look at the POD that's been output by HTML2Pod - never just blindly include it. Consider starting from this template:
Things::Stuff NAME
Things::Stuff -- does some things with stuffSYNOPSIS
use HTML::Stuff; do some more stuff; la la la la la; oogah;DESCRIPTION
This module does things with stuff. It exports these functions:
thingify( ... )- This function takes stuff, and returns their value as things.
destuffulate( ... )- This function returns the things, from stuff.
It will throw a fatal exception if applied to things.
So don't do that.enthinction( ... )- This is where I run out of ways to make up silly sentences involving "thing" and "stuff". Mostly.
Caveats and WYA's
Things to be wary of:
- The things.
- And the stuff
Don't forget about that stuff. Gotta keep an eye on that.
BUGS
Stuff is hard.SEE ALSO
Class::Classless, strict, Lingua::EN::Numbers::Ordinate, perlvar,COPYRIGHT
Copyright 2000, Joey Jo-Jo Jr. Shabadoo.This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Joey Jo-Jo Jr. Shabadoo,jojojo@shabadoo.intBUG REPORTS =========== If you do find a case where this converter misinterprets what you consider straightforward HTML (which you should really really have run thru an HTML syntax checker, by the way!), report it to me as a bug, at `sburke@cpan.org'. Be sure to include the entire document that causes the error - then specify exactly what you consider the error to be. BUGS AND CAVEATS ================ * Doesn't try to turn "smart quotes" characters into simple " and '. Maybe should? * Fails to turn foo thing bar baz quux into foo Squux I.e., currently just turns ` ''s into normal spaces. * Numeric entities (`E ') are used when necessary - but these are not understood by some older POD converters. * No HTML that you provide will turn into `F<...>' * Currently maps bar to X bar but is this correct? SEE ALSO ======== *Note Perlpod: (perl.info)perlpod,, *Note Pod/Html: Pod/Html,, *Note HTML/TreeBuilder: HTML/TreeBuilder, And HTML Tidy, at `http://www.w3.org/People/Raggett/tidy/' COPYRIGHT ========= Copyright (c) 2000 Sean M. Burke. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR ====== Sean M. Burke `sburke@cpan.org' File: pm.info, Node: Pod/HTML_Elements, Next: Pod/Hlp, Prev: Pod/HTML2Pod, Up: Module List Convert POD to tree of LWP's HTML::Element and hence HTML or PostScript *********************************************************************** NAME ==== Pod::HTML_Elements - Convert POD to tree of LWP's HTML::Element and hence HTML or PostScript SYNOPSIS ======== use Pod::HTML_Elements; my $parser = new Pod::HTML_Elements; $parser->parse_from_file($pod,'foo.html'); my $parser = new Pod::HTML_Elements PostScript => 1; $parser->parse_from_file($pod,'foo.ps'); DESCRIPTION =========== *Pod::HTML_Elements* is subclass of `*Pod::Parser* in this node'. As the pod is parsed a tree of **Note HTML/Element: HTML/Element,* objects is built to represent HTML for the pod. At the end of each pod HTML or PostScript representation is written to the output file. BUGS ==== Parameter pass-through to *Note HTML/FormatPS: HTML/FormatPS, needs to be implemented. SEE ALSO ======== *Note Perlpod: (perl.info)perlpod,, *Note Pod/Parser: Pod/Parser,, *Note HTML/Element: HTML/Element,, *Note HTML/FormatPS: HTML/FormatPS, AUTHOR ====== Nick Ing-Simmons