Node:Running from the Command Line, Next:Building the Application, Previous:Using the Gutenberg Index, Up:Top
The jar file includes a command line version of the program that
works in a similar way to the original C version of makeztxt. To use
this use the following command from the directory where you installed
the makeztxt jar file:
java -cp ./jmakeztxt.jar makeztxtcmd [options] input_file
This will process the given file and product an output file with a
.PDB extension. The input file may be either a text file or zip file,
as with the GUI version.
The available options are:
| Option | Purpose | Default
|
-a N
| Sets format adjust mode to N. For now there is only one formatter available and it accepts values of 0 to 2. | The
default is zero which should be fine for most purposes.
|
-b N
| Sets the format line length to N. | The default value is to compute the best line length from the
text.
|
-r String
| Adds the given string to the list of regular expressions used to generate bookmarks. | This option works exactly as for the C version and can be
repeated many times.
|
-t String
| Sets the title of the output document to the given string. | The default is up to 31 characters of the input filename (minus the extension).
|
-z N
| Sets the compression mode. A value of one selects the new format compression mode. A value of 2 selects the previous format which is smaller but must be decompressed all at once before reading the document. | The default is for new format (1).
|
Example usage:
java -cp ./jmakeztxt.jar makeztxtcmd -t "Return Of Holmes" holm11b.zip