GutJack

From DPWiki
Jump to navigation Jump to search

GutJack is a software tool that aids in Post-processing. It is part of the Windows-only GutWrench suite, but can be used in combination with other tools as well. Its main function is to quickly insert various types of HTML and other special markup at appropriate points in the text. It searches for isolated lines of text (with blank lines before and after) and lets you add HTML <hx>Header</hx>, <center>Centering</center>, and other special markups.

How to use GutJack

GutJack takes as input a text file and aids in preparing a "well-marked-up version," which is a text that has been readied for PPing at DP, with the addition of a few additional markups (mostly HTML). GutJack helps to add three types of HTML and shorthand markups including:

  • HTML Header tags: <h1>...</h1>, etc.
  • HTML centering tags: <center>...</center>
  • Shorthand tag for "author" markup: >>Authorname (see below).

The file must reside in the same Windows directory (folder) as the GutJack.exe application and must have a text-file suffix, of the form *.txt.

To begin, select the e-book text from the input-file menu at upper left, then click the "Go" button. GutJack then scans the text down to the first isolated line of text (between blank lines), which it displays within its context in the text box. The user may then either add markups to this line or skip to the next such line.

To add markups, click on the appropriate button. For example, clicking h1 adds <h1>...</h1> heading markups around the current line. If the "Replace bold markup" box is checked, the added markup will replace the existing <b>bold</b> tags.

The ">>" button adds ">>" to the beginning of the current line. For several of its styles (notably Punch, IWM, Lippincott's, Notes & Queries, Mirror, and My Style), GutCutter, the tool for making an HTML version in the GutWrench suite, will convert this into "author"-class markup in the HTML version, which results in this line being right-justified (up against the right margin).

Click Continue to advance to the next isolated line of text.

Click Revert to restore the current line to its original state.

GutJack interface, during editing of text file "Copy of GSout.txt"

The usual Windows keyboard shortcuts are available. For example, note that the "1" on the h1 button is underlined. This indicates that typing Alt-1 (hold down the Alt key while typing a "1") has the same effect as clicking this button. Most of the other buttons also have underlined characters to operate them.