PBib::ReferenceConverter - Main controller class for processing references within documents
use PBib::ReferenceConverter; my $inDoc = new PBib::Document( 'filename' => 'sample.xml', 'mode' => 'r', ); my $outDoc = new PBib::Document( 'filename' => 'sample-pbib.xml', 'mode' => 'w', ); my $conv = new PBib::ReferenceConverter( 'inDoc' => $inDoc, 'outDoc' => $outDoc, 'refStyle' => new PBib::ReferenceStyle(), 'labelStyle' => new PBib::LabelStyle(), 'bibStyle' => new PBib::BibliographyStyle(), 'itemStyle' => new PBib::BibItemStyle(), 'verbose' => 1, 'quiet' => 0, ); $conv->convert($refs); $inDoc->close(); $outDoc->close();
Main controller class of the PBib system for processing references within documents.
See module PBib::PBib for an example how to use it.
Scan $rc's inDoc for used references and paragraphs that need to be converted. This does preprocessing for convert().
The fields "parInfo" and "foundInfo" are set.
Scan the inDoc for paragraphs with references and collect information on which references are used, how often they are used, and in which parahraphs they are used.
This method is called by scan() via inDoc's processParagraphs().
Convert $inDoc to $outDoc.
This is the main method of ReferenceConverter.
Replace references in $par. $i is the index of this paragraph (as used in parInfo().
This method is called by convert() via inDoc's processParagraphs().
To install Biblio::BP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Biblio::BP
CPAN shell
perl -MCPAN -e shell install Biblio::BP
For more information on module installation, please visit the detailed CPAN module installation guide.