Pod-PseudoPod-0.19 000755 001750 001750 0 13533030227 15170 5 ustar 00chromatic chromatic 000000 000000 Pod-PseudoPod-0.19/Build.PL 000444 001750 001750 1315 13533030227 16621 0 ustar 00chromatic chromatic 000000 000000 use Module::Build; my $build = Module::Build->new ( module_name => 'Pod::PseudoPod', license => 'perl', build_requires => { 'Test::More' => 0, }, requires => { 'Pod::Simple' => 3.02, 'Text::Wrap' => 98.112902, 'HTML::Entities' => 0, }, script_files => [ 'bin/ppod2html', 'bin/ppod2txt', 'bin/ppod2docbook', 'bin/ppodchecker' ], recursive_test_files => 1, dist_author => 'Allison Randal (allison@perl.org)', dist_abstract => "A framework for parsing PseudoPod", ); $build->create_build_script; Pod-PseudoPod-0.19/Changes 000444 001750 001750 5631 13533030227 16625 0 ustar 00chromatic chromatic 000000 000000 Revision history for Pod::PseudoPod 0.19 Sep 01, 2019 - fix a warning in Perl 5.30 - allow detailed item list numbering 0.18 Aug 09, 2010 - improved HTML validity - allowed more PP nesting after certain constructs 0.17 Nov 28, 2010 - Removed Text::Wrap from Pod::PseudoPod::HTML altogether (RT #58784) 0.16 Mar 29, 2010 - Remove Pod::Simple tests, Pod::PseudoPod is compatible with old and new versions of Pod::Simple, doesn't need to be dictating the behavior of an external module. 0.15 Jun 11, 2009 - Update Tutorial for change in maintainership. - Further improvements to the DocBook formatter. 0.14 Mar 20, 2007 - Add a DocBook 4.4. formatter, to output the new format O'Reilly needs for book production with help from Lakshmi Sadasiv at O'Reilly. 0.13 Aug 03, 2006 - Resolve failing tests, check for encoded entities with pattern match instead of exact text match. 0.12 Jul 17, 2005 - Now install ppod2html, ppod2txt, and ppodchecker during the make or build process. - Applied patch from chromatic and Timothy Appnel to HTML formatter to automatically escape certain characters in verbatim sections. - Added support for listing blocks at the request of a user. 0.11 Jun 26, 2004 - Applied patch from Boris Zentner to make example scripts use File::Basename. - Applied patch from chromatic to display figure titles in HTML formatter, and display a "no errors" message from the checker when the file parses without errors. - Updated main Pod::PseudoPod module to take advantage of Pod::Simple 3.02 (pieces of Pod::PseudoPod were integrated into Pod::Simple). 0.10 Apr 26, 2004 - Added the tutorial to the manifest, ooops. 0.09 Apr 24, 2004 - Added a PseudoPod tutorial, based on O'Reilly's docs. - Added rudimentary text index generation. - Now supports 'Build' or 'make'. - Makefile.PL explicitly generates list of tests (change suggested by Jeff Zucker because Win98 couldn't read the "*.t".) 0.08 Feb 18, 2004 - Parse formatting codes in verbatim code blocks. - Preserve entities in HTML formatter. - Update text formatter to take advantage of new features. 0.07 Jan 6, 2004 - Also allow =for directives with '=end for' directives. The PseudoPod docs disagree on which is right, so I'm allowing both. 0.06 Jan 5, 2004 - Allow =for directives with empty =end directives. 0.05 Jan 2, 2004 - Fixed sidebars and tables so they can handle codes within their text. 0.04 Jan 1, 2004 - Add support for tables, including: "=begin table", =row, =cell, =headrow, =bodyrows. 0.03 Dec 31, 2003 - Add generic support for =begin entities with title text after the target name. 0.02 Nov 30, 2003 - Switch to call style similar to Pod::Simple::Methody. 0.01 Jan 6, 2003 - Original simple subclass of Pod::Simple. Pod-PseudoPod-0.19/LICENSE 000444 001750 001750 50101 13533030227 16347 0 ustar 00chromatic chromatic 000000 000000 Terms of Perl itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --------------------------------------------------------------------------- The General Public License (GPL) Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS --------------------------------------------------------------------------- The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. Aggregation of this Package with a commercial distribution is always permitted provided that the use of this Package is embedded; that is, when no overt attempt is made to make this Package's interfaces visible to the end user of the commercial distribution. Such use shall not be construed as a distribution of this Package. 9. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End Pod-PseudoPod-0.19/MANIFEST 000444 001750 001750 724 13533030227 16441 0 ustar 00chromatic chromatic 000000 000000 Build.PL Changes LICENSE Makefile.PL MANIFEST META.yml README Todo bin/ppodchecker bin/ppod2docbook bin/ppod2html bin/ppod2txt examples/ppodindex examples/style.css lib/Pod/PseudoPod.pm lib/Pod/PseudoPod/Checker.pm lib/Pod/PseudoPod/DocBook.pm lib/Pod/PseudoPod/HTML.pm lib/Pod/PseudoPod/Index.pm lib/Pod/PseudoPod/Text.pm lib/Pod/PseudoPod/Tutorial.pod t/basic.t t/beginend.t t/checker.t t/docbook.t t/fcodes.t t/for.t t/html.t t/index.t t/text.t t/table.t META.json Pod-PseudoPod-0.19/META.json 000444 001750 001750 3244 13533030227 16751 0 ustar 00chromatic chromatic 000000 000000 { "abstract" : "A framework for parsing PseudoPod", "author" : [ "Allison Randal (allison@perl.org)" ], "dynamic_config" : 1, "generated_by" : "Module::Build version 0.4229", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "Pod-PseudoPod", "prereqs" : { "build" : { "requires" : { "Test::More" : "0" } }, "configure" : { "requires" : { "Module::Build" : "0.42" } }, "runtime" : { "requires" : { "HTML::Entities" : "0", "Pod::Simple" : "3.02", "Text::Wrap" : "98.112902" } } }, "provides" : { "Pod::PseudoPod" : { "file" : "lib/Pod/PseudoPod.pm", "version" : "0.19" }, "Pod::PseudoPod::Checker" : { "file" : "lib/Pod/PseudoPod/Checker.pm", "version" : "0.19" }, "Pod::PseudoPod::DocBook" : { "file" : "lib/Pod/PseudoPod/DocBook.pm", "version" : "0.19" }, "Pod::PseudoPod::HTML" : { "file" : "lib/Pod/PseudoPod/HTML.pm", "version" : "0.19" }, "Pod::PseudoPod::Index" : { "file" : "lib/Pod/PseudoPod/Index.pm", "version" : "0.19" }, "Pod::PseudoPod::Text" : { "file" : "lib/Pod/PseudoPod/Text.pm", "version" : "0.19" } }, "release_status" : "stable", "resources" : { "license" : [ "http://dev.perl.org/licenses/" ] }, "version" : "0.19", "x_serialization_backend" : "JSON::PP version 4.02" } Pod-PseudoPod-0.19/META.yml 000444 001750 001750 2117 13533030227 16577 0 ustar 00chromatic chromatic 000000 000000 --- abstract: 'A framework for parsing PseudoPod' author: - 'Allison Randal (allison@perl.org)' build_requires: Test::More: '0' configure_requires: Module::Build: '0.42' dynamic_config: 1 generated_by: 'Module::Build version 0.4229, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Pod-PseudoPod provides: Pod::PseudoPod: file: lib/Pod/PseudoPod.pm version: '0.19' Pod::PseudoPod::Checker: file: lib/Pod/PseudoPod/Checker.pm version: '0.19' Pod::PseudoPod::DocBook: file: lib/Pod/PseudoPod/DocBook.pm version: '0.19' Pod::PseudoPod::HTML: file: lib/Pod/PseudoPod/HTML.pm version: '0.19' Pod::PseudoPod::Index: file: lib/Pod/PseudoPod/Index.pm version: '0.19' Pod::PseudoPod::Text: file: lib/Pod/PseudoPod/Text.pm version: '0.19' requires: HTML::Entities: '0' Pod::Simple: '3.02' Text::Wrap: '98.112902' resources: license: http://dev.perl.org/licenses/ version: '0.19' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' Pod-PseudoPod-0.19/Makefile.PL 000444 001750 001750 1616 13533030227 17303 0 ustar 00chromatic chromatic 000000 000000 use ExtUtils::MakeMaker; # The list of tests has to be explicitly generated on Win98. my @tests; for my $dir (qw(t)) { opendir TESTS, $dir or die $!; push @tests, map { "$dir/$_" } grep { /\.t$/ } readdir TESTS; closedir TESTS; } WriteMakefile( NAME => 'Pod::PseudoPod', VERSION_FROM => 'lib/Pod/PseudoPod.pm', # finds $VERSION PREREQ_PM => { 'Pod::Simple' => 3.02, 'Text::Wrap' => 98.112902, 'HTML::Entities' => 0, 'Test::More' => 0, }, EXE_FILES => [ 'bin/ppod2html', 'bin/ppod2txt', 'bin/ppod2docbook', 'bin/ppodchecker', ], test => {TESTS => "@tests"}, AUTHOR => 'Allison Randal (allison@perl.org)', ABSTRACT => "A framework for parsing PseudoPod", PL_FILES => {}, # ignore the Build.PL file ); Pod-PseudoPod-0.19/README 000444 001750 001750 1513 13533030227 16205 0 ustar 00chromatic chromatic 000000 000000 DESCRIPTION PseudoPOD is an extended set of POD tags for book manuscripts. Standard POD doesn't have all the markup options you might want for marking up files for publishing production. PseudoPOD adds a few extra tags for footnotes and tables, and has extended uses of "=begin" elements. See Pod::PseudoPod::Tutorial. INSTALLATION perl Makefile.PL make make test make install # or perl Build.PL ./Build ./Build test ./Build install USAGE The standard installation includes ppod2html and ppod2txt converters and a ppodchecker script. $ ppod2html filename.pod If you copy the sample style.css from the "examples/" directory into the same directory as the html files you generate, the output is a tolerable simulation of O'Reilly's animal book format. Pod-PseudoPod-0.19/Todo 000444 001750 001750 571 13533030227 16140 0 ustar 00chromatic chromatic 000000 000000 TODO list for Perl module Pod::PseudoPod - Handle X<> tags for html output. They should create an html anchor (randomly generated number?), and an index list at the end of the document. - Add a utility to generate a table of contents from a list of files (module and script, probably). - Handle N<> tags so they output document-end footnotes instead of inline text. Pod-PseudoPod-0.19/bin 000755 001750 001750 0 13533030227 15740 5 ustar 00chromatic chromatic 000000 000000 Pod-PseudoPod-0.19/bin/ppod2docbook 000444 001750 001750 6442 13533030227 20413 0 ustar 00chromatic chromatic 000000 000000 #!/usr/bin/perl ###################################################################### # # A PseudoPod to DocBook converter script that uses # Pod::PseudoPod::DocBook. # # usage: # # $ ppod2html [-i bookid] [-n include.xml] filename1.pod filename2.pod # # It produces a single XML file 'book.xml' that contains all chapters # passed to it. # # If the -i option is passed in, with a one-word identifier for the # book, the formatter uses that identifier as part of all autogenerated # ID tags in the book (on chapters, sections, tables, figures, # footnotes, and index items). # # If the -n option is passed in, with the full path to a partial XML # file, the contents of that file are included raw in the generated XML # file (at the beginning of the file where the book
' } sub start_Verbatim { $_[0]{'scratch'} .= '
'; $_[0]{'in_verbatim'} = 1}
sub start_head0 { $_[0]{'scratch'} = '' }
sub start_head1 { $_[0]{'scratch'} = '' }
sub start_head2 { $_[0]{'scratch'} = '' }
sub start_head3 { $_[0]{'scratch'} = '' }
sub start_head4 { $_[0]{'scratch'} = '' }
sub start_item_bullet { $_[0]{'scratch'} .= '
' }
sub start_item_number { $_[0]{'scratch'} .= " $_[1]{'number'}. " }
sub start_item_text { $_[0]{'scratch'} .= ' ' }
sub start_over_bullet { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub start_over_text { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub start_over_block { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub start_over_number { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub end_over_bullet { $_[0]{'scratch'} .= '
'; $_[0]->emit('nowrap') }
sub end_over_text { $_[0]{'scratch'} .= '
'; $_[0]->emit('nowrap') }
sub end_over_block { $_[0]{'scratch'} .= '
'; $_[0]->emit('nowrap') }
sub end_over_number { $_[0]{'scratch'} .= ''; $_[0]->emit('nowrap') }
# . . . . . Now the actual formatters:
sub end_Para { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub end_Verbatim {
$_[0]{'scratch'} .= '
';
$_[0]{'in_verbatim'} = 0;
$_[0]->emit('nowrap');
}
sub end_head0 { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub end_head1 { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub end_head2 { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub end_head3 { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub end_head4 { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub end_item_bullet { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub end_item_number { $_[0]{'scratch'} .= ''; $_[0]->emit() }
sub end_item_text { $_[0]->emit() }
sub start_sidebar {
my ($self, $flags) = @_;
$self->{'scratch'} = $self->{'css_tags'} ? ' ' : ''; $_[0]->emit() }
sub start_figure {
my ($self, $flags) = @_;
$self->{'in_figure'} = 1;
$self->{'figure_title'} = $flags->{'title'} if $flags->{'title'};
}
sub end_figure {
my ($self, $flags) = @_;
$self->{'in_figure'} = 0;
if ($self->{'figure_title'})
{
$self->{'scratch'} .= "" . $self->{'figure_title'} . "
"; delete $self->{'figure_title'}; } $self->emit('nowrap'); } # This handles =begin and =for blocks of all kinds. sub start_for { my ($self, $flags) = @_; if ($self->{'css_tags'}) { $self->{'scratch'} .= 'Table: " . $flags->{'title'} . "
\n"; } $self->{'scratch'} .= '' }
sub end_C { $_[0]{'scratch'} .= '
' }
sub start_E { $_[0]{'scratch'} .= '&' }
sub end_E { $_[0]{'scratch'} .= ';' }
sub start_F { $_[0]{'scratch'} .= ($_[0]{'in_figure'}) ? 'EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =begin sidebar Title Text This is the text of the sidebar. =end sidebar EOPOD is($results, <<'EOHTML', "a sidebar with a title");This is the text of the sidebar.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =begin sidebar Title Text This is the text of the ZTitle Text
This is the text of the sidebar.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =begin programlisting This is used for code blocks and should have no effect beyond ordinary indented text. =end programlisting EOPOD is($results, <<'EOHTML', "allow programlisting blocks");Title Text
This is the text of the sidebar.
This is used for code blocks
and should have no effect
beyond ordinary indented text.
EOHTML
initialize($parser, $results);
$parser->add_css_tags(1);
$parser->parse_string_document(<<'EOPOD');
=begin programlisting
This is used for code blocks
and should have no effect
beyond ordinary indented text.
=end programlisting
EOPOD
is($results, <<'EOHTML', "programlisting blocks with css tags turned on");
This is used for code blocks
and should have no effect
beyond ordinary indented text.
This is used for code blocks
and should have no effect
beyond ordinary indented text.
EOHTML
foreach my $target (qw(blockquote comment caution epigraph
example important note screen tip warning)) {
initialize($parser, $results);
$parser->parse_string_document(<<"EOPOD");
=begin $target
This is a $target.
=end $target
EOPOD
is($results, <<"EOHTML", "allow $target blocks");
This is a $target.
EOHTML } initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =begin figure FThis is a sample figure
EOHTML ###################################### sub initialize { $_[0] = Pod::PseudoPod::HTML->new (); $_[0]->output_string( \$results ); # Send the resulting output to a string $_[1] = ''; return; } Pod-PseudoPod-0.19/t/checker.t 000444 001750 001750 1526 13533030227 17365 0 ustar 00chromatic chromatic 000000 000000 #!/usr/bin/perl -w # t/checker.t - test Checker.pm BEGIN { chdir 't' if -d 't'; } use strict; use lib '../lib'; use Test::More tests => 3; use_ok('Pod::PseudoPod::Checker') or exit; my $parser = Pod::PseudoPod::Checker->new (); isa_ok ($parser, 'Pod::PseudoPod::Checker'); my $results; initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =begin sidebar A sidebar with some content. =end EOPOD is($results, <<'EOERR', "catch mismatched =begin/=end tags"); POD ERRORS Hey! The above document had some coding errors, which are explained below: Around line 5: '=end' without a target? (Should be "=end sidebar") EOERR ###################################### sub initialize { $_[0] = Pod::PseudoPod::Checker->new (); $_[0]->output_string( \$results ); # Send the resulting output to a string $_[1] = ''; return; } Pod-PseudoPod-0.19/t/docbook.t 000444 001750 001750 20771 13533030227 17424 0 ustar 00chromatic chromatic 000000 000000 #!/usr/bin/perl -w # t/docbook.t - check output from Pod::PseudoPod::DocBook BEGIN { chdir 't' if -d 't'; } use strict; use lib '../lib'; use Test::More tests => 27; use_ok('Pod::PseudoPod::DocBook') or exit; my $parser = Pod::PseudoPod::DocBook->new (); isa_ok ($parser, 'Pod::PseudoPod::DocBook'); my $results; initialize($parser, $results); $parser->chapter_num(5); $parser->parse_string_document( <<'EOPOD' ); =head0 Narf! =head1 Poit! =head2 I think so Brain. =head3 I say, Brain... =head3 What do you want to do tonight, Brain? =head4 Zort! =head1 Egads! EOPOD is($results, <<'EODB', "multiple head level output");Egad! You astound me, Brain!
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod literal code with B literal code with bold characters
and some more lines, to test.
EOHTML
######################################
sub initialize {
$_[0] = Pod::PseudoPod::HTML->new ();
$_[0]->output_string( \$results ); # Send the resulting output to a string
$_[1] = '';
return;
}
Pod-PseudoPod-0.19/t/for.t 000444 001750 001750 4336 13533030227 16551 0 ustar 00chromatic chromatic 000000 000000 #!/usr/bin/perl -w
# t/for.t - check PseudoPod for blocks
BEGIN {
chdir 't' if -d 't';
}
use strict;
use lib '../lib';
use Test::More tests => 8;
use_ok('Pod::PseudoPod::HTML') or exit;
my ($parser, $results);
initialize($parser, $results);
$parser->parse_string_document(<<'EOPOD');
=for editor
This is an ordinary for with no end directive.
EOPOD
is($results, <<'EOHTML', "a simple for");
This is an ordinary for with no end directive.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =for editor This is a PseudoPod for with an end directive. =end EOPOD is($results, <<'EOHTML', "a for with an '=end' directive");This is a PseudoPod for with an end directive.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =for editor This is a PseudoPod for with an end for directive. =end for EOPOD is($results, <<'EOHTML', "a for with an '=end for' directive");This is a PseudoPod for with an end for directive.
EOHTML initialize($parser, $results); $parser->add_css_tags(1); $parser->parse_string_document(<<'EOPOD'); =for editor This is a PseudoPod for with css tags turned on. =end EOPOD is($results, <<'EOHTML', "an ended for with css tags");This is a PseudoPod for with css tags turned on.
This is a PseudoPod for with an end directive.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =for production This is a PseudoPod for with an end directive. =end EOPOD is($results, <<'EOHTML', "production for");This is a PseudoPod for with an end directive.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =for ignore This is a PseudoPod for with an end directive. =end EOPOD is($results, '', "for with 'ignore' target is always ignored"); ###################################### sub initialize { $_[0] = Pod::PseudoPod::HTML->new (); $_[0]->output_string( \$results ); # Send the resulting output to a string $_[1] = ''; return; } Pod-PseudoPod-0.19/t/html.t 000444 001750 001750 17723 13533030227 16753 0 ustar 00chromatic chromatic 000000 000000 #!/usr/bin/perl -w # t/html.t - check output from Pod::PseudoPod::HTML BEGIN { chdir 't' if -d 't'; } use strict; use lib '../lib'; use Test::More tests => 31; use_ok('Pod::PseudoPod::HTML') or exit; my $parser = Pod::PseudoPod::HTML->new (); isa_ok ($parser, 'Pod::PseudoPod::HTML'); my $results; initialize($parser, $results); $parser->parse_string_document( "=head0 Narf!" ); is($results, "Gee, Brain, what do you want to do tonight?
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod B: Now, Pinky, if by any chance you are captured during this mission, remember you are Gunther Heindriksen from Appenzell. You moved to Grindelwald to drive the cog train to Murren. Can you repeat that? P: Mmmm, no, Brain, don't think I can. EOPOD my $html = 'B: Now, Pinky, if by any chance you are captured during this mission, ' . 'remember you are Gunther Heindriksen from Appenzell. You moved to ' . "Grindelwald to drive the cog train to Murren. Can you repeat that?
\n\n" . "P: Mmmm, no, Brain, don't think I can.
\n\n"; is($results, $html, "multiple paragraphs"); initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =over =item * P: Gee, Brain, what do you want to do tonight? =item * B: The same thing we do every night, Pinky. Try to take over the world! =back EOPOD is($results, <<'EOHTML', "simple bulleted list");Gee, Brain, what do you want to do tonight?
The same thing we do every night, Pinky. Try to take over the world!
1 + 1 = 2;
2 + 2 = 4;
EOHTML
initialize($parser, $results);
$parser->parse_string_document(<<'EOPOD');
=pod
A plain paragraph with a CA plain paragraph with a functionname
.
A plain paragraph with a (footnote: footnote entry).
EOHTML initialize($parser, $results); $parser->add_body_tags(1); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with body tags turned on. EOPOD is($results, <<"EOHTML", "adding html body tags");A plain paragraph with body tags turned on.
EOHTML initialize($parser, $results); $parser->add_body_tags(1); $parser->add_css_tags(1); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with body tags and css tags turned on. EOPOD is($results, <<"EOHTML", "adding html body tags and css tags");A plain paragraph with body tags and css tags turned on.
EOHTML initialize($parser, $results); $parser->add_css_tags(1); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with aNA plain paragraph with a (footnote: ' . "footnote entry) and css tags.
\n\n"; is($results, $html, "css footnote entity in a paragraph"); initialize($parser, $results); $parser->add_css_tags(1); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with a UA plain paragraph with a ' . "http://test.url.com/stuff/and/junk.txt.
\n\n"; is($results, $html, "URL entity in a paragraph"); initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with a ZA plain paragraph with a .
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with a AA plain paragraph with a link.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with a GA plain paragraph with a superscript.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with a HA plain paragraph with a subscript.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with BA plain paragraph with bold text.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with IA plain paragraph with italic text.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with RA plain paragraph with replaceable text.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod A plain paragraph with a FA plain paragraph with a filename.
EOHTML initialize($parser, $results); $parser->parse_string_document(<<'EOPOD'); =pod # this header is very important & don't you forget it my $text = "File is: " .Cell 1 | Cell 2 |
Table: An Example Table
Cell 1 | Cell 2 |
Header 1 | Header 2 |
---|---|
Cell 1 | Cell 2 |
Table: An Example Table
Cell 1 | Cell 2 |
Cell 1 | Cell 2 |
This is a really, really long cell. So long, in fact that it wraps right around. | Cell 2 |