App::pandoc::preprocess - Preprocess Pandoc before Processing Pandoc
version 0.6.2
cat chapters/input-*.pandoc | ppp | pandoc -o output.pdf --smart [more pandoc options...]
Additionally see `etc/input.txt` for concrete examples.
dot/neato (neato is new!)
rdfdot
ditaa
Image::Magick (for downscaling of large images)
much simpler design than version 1: pipeable & chainable, reading line-by-line
parallelized work on image file creation
1. while-loop will iterate line by line and is using the flip-flop-operator:
* as soon, as a ditaa/rdfdot/dot-block starts, globals ($fileno, $outfile, etc) are set, so all other routines can see them * when actually *inside* the block, the block's contents are printed to the newly generated file (image-X.(ditaa/rdfdot/dot))
2. once the flip-flop-operator hits the end of the ditaa/rdfdot/dot-block, a child will be spawned to take over the actual ditaa/rdfdot/dot-process to create the png-file and the globals are reset
3. all other lines which are not part of a ditaa/rdfdot/dot-block will simply be piped through to stdout
4. at the end of the program, all children are waited for
5. in the meantime, the new pandoc contents are printed to stdout
6. all child-processes will remain quiert as far as stdout is concerned and write to their individual log-files
Captions
Checks whether ditaa... are available
check whether ditaa has file.encoding set
bundle ditaa with this
'make CPAN happy -- we only have a main in bin/ppp'
DBR <dbr@cpan.org>
This software is Copyright (c) 2014 by DBR.
This is free software, licensed under:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004
To install App::pandoc::preprocess, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::pandoc::preprocess
CPAN shell
perl -MCPAN -e shell install App::pandoc::preprocess
For more information on module installation, please visit the detailed CPAN module installation guide.