main

Home-Grown DP Tools

dp2rst.zip Python Converts DP-text into RST. Best to process all comments and -*'s first. Also, suggest moving illustrations and footnotes before running.
To get command-line help: python dp2rst.py -h
diff_no_format.zip Python Strips DP-formatting from one or more files, and optionally saves or diffs them.
To get command-line help: python diff_no_format.py -h
pp_diff_suite18.zip
pp_diff_suite19.zip
Perl and Ruby Utilities to compare raw F2 output to PP'd text and PP'd text to PP'd html to review changes and detect inconsistencies. See readme.txt for details. Contains MS-DOS batch files, but commands can be run by hand as an alternative.
gwmap2_18.zip
gwmap2_19.zip
Ruby Generates reference map of formatting, for final, quick PP-scan of images. (or F2, I'm flexible) Marks any errors it finds (blanks, misspelled footnotes, etc.) with *.
To get command-line help: ruby gwmap2.rb -h
imgclean.zip Ruby My update to Rfrank's tool to crop as much whitespace as possible from around png images. Takes as input the directory and a starting width and height (in pixels), but adjusts them in or out to encompass all of the text. Outputs the cropped pngs to a new directory, trimmed, and makes a copy of the original with a box showing the cropping to another new directory, overlay.

Requires Ruby 1.8.6, RMagick, and ImageMagick. See http://github.com/rmagick/rmagick and, for Windows, http://rmagick.rubyforge.org/install-faq.html#win for more info.
imgsplit.zip Ruby Splits png images into 2 columns lengthwise, if possible. Takes as input the directory and a starting width and height (in pixels) of the minimum allowed columnar separator, and moves it around in the middle of the page until it finds a blank area that matches. Outputs the split pngs to a new directory, split, and makes a copy of the original with a box showing the column-separator to a new directory, split_debug.

Requires Ruby 1.8.6, RMagick, and ImageMagick. See http://github.com/rmagick/rmagick and, for Windows, http://rmagick.rubyforge.org/install-faq.html#win for more info.
ggprep.zip
pptxt.zip
pphtml.zip
ppvimage.zip
Perl
Tools that I think are vital to PPing. Use ggprep immediately after downloading a new PP-project. Right before uploading, run pptxt, pphtml, and ppvimage as final sanity tests. Most initially written by rfrank (exception is dcwilson's ppvimage), with major and/or minor tweaks by yours truly.

Run them with -h to get help on their command-line options.
ppgprep_18.zip
ppgprep_19.zip
Ruby Pre-processes a text, converting it to suitable starting-input to ppg.
Optionally moves illustrations and renumbers and/or moves footnotes. Run after ggprep.
ppg_18.zip
ppg_19.zip
ppg_bird_walkthru.zip
Ruby Generates single-source into text and html. There is also a detailed walkthrough/guide to explain how ppg works.
trnote_perl.zip
trnote_rb.zip
Perl
Ruby
Tags and collects <ins> corrections at end of html. Choices of perl or Ruby. Ruby versions also work with ppg .src files.
newcomer tools.zip
Ruby &
Python
A couple more (updated) tools from rfrank. multizip (Ruby, any version) chunks up a project into multiple "slices". p1p2diff (Python) will diff the two versions and generate a list of diffs for each.

Note: Most Ruby tools work with either Ruby 1.8.6 or Ruby 1.9+. Please make sure you run the proper versions. Run ruby -v to determine your installation.

Č
ċ
ď
K W,
Aug 10, 2011 10:01 AM
ċ
ď
K W,
Jul 13, 2011 8:15 AM
ċ
ď
K W,
Apr 4, 2011 2:41 PM
ċ
ď
K W,
Jul 22, 2011 3:25 PM
ċ
ď
K W,
Aug 4, 2010 7:38 AM
ċ
ď
K W,
Aug 4, 2010 7:38 AM
ċ
ď
K W,
Aug 7, 2010 12:22 PM
ċ
ď
K W,
Aug 7, 2010 12:18 PM
ċ
ď
K W,
Aug 11, 2010 11:11 AM
ċ
ď
K W,
Feb 1, 2011 8:46 AM
ċ
ď
K W,
Aug 16, 2011 9:55 PM
ċ
ď
K W,
Aug 16, 2011 9:56 PM
ċ
ď
K W,
Aug 10, 2011 9:54 AM
ċ
ď
K W,
Aug 10, 2011 9:57 AM
ċ
ď
K W,
Aug 10, 2011 11:21 AM
ċ
ď
K W,
Aug 10, 2011 9:54 AM
ċ
ď
K W,
Aug 10, 2011 9:56 AM
ċ
ď
K W,
Sep 14, 2011 5:31 PM
ċ
ď
K W,
Jul 22, 2011 3:37 PM
ċ
ď
K W,
Aug 4, 2010 7:39 AM
ċ
ď
K W,
Aug 4, 2010 7:39 AM
ċ
ď
K W,
Aug 10, 2011 11:32 AM
ċ
ď
K W,
Jul 26, 2010 10:24 AM
ċ
ď
K W,
Jul 26, 2010 10:28 AM