From DPWiki
Jump to: navigation, search

The PPVhtml program was originally developed for Post-Processing Verification of the HTML version of a book. As with PPVtxt, PPVhtml continues to be useful to the post-processor as well. Its checks include: display title; show unusual tags used; show classes used; show styles used; check images for size match, count; check page numbers for skips or sequence errors; specials (missing mdashes, table summaries, abandoned ligatures, superfluous white-space in source, superfluous characters in CSS, etc.)

Go to ppvhtml for more information about this program.

Note: The command-line version of this tool, pphtml, can be downloaded here.

Using pphtml

The pphtml tool will create a log file describing suspected problems. You will need to have perl installed to run pphtml.pl.

The pphtml program accepts three inputs:

  • -i : the file to be analyzed (e.g. "-i C:\DP\ebook.html"). An input file is required. Be sure to include the full file path if the html file is in a different directory than pphtml.pl. (See also this forum post.) If there is no input file specified, you get the following error:
readline<> on closed filehandle INFILE at C:\PGDP\pphtml.pl line 55
  • -o : the output log (e.g. "-o ebook.log"). If no location is specified for the log, it will create pphtml.log in the same directory as pphtml.pl.
  • -h : displays the "help" file
usage: pphtml.pl [-i infile.txt] [-o pphtml.log]