home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
util
/
axdiff-1.0.lha
/
AXDiff
/
AXDiff.doc
< prev
next >
Wrap
Text File
|
1994-09-17
|
13KB
|
290 lines
DOCUMENTATION and other information for AxDiff (by Jim Lawrie)
==============================================================
Unless the program is registered (see section on Registration below
for instructions), you will only get a maximum of 5 differences.
Files may contain more than 5 sections which differ, but only the
first five will be seen by AXDiff. The rest of the file is assumed to
have no differences, which may look strange on screen. Full print and
merge capabilities exist for the 5 differences found. After the 5th
difference, the left file is copied to the merge file if merging.
AXDiff may be executed from the Workbench or from the CLI. If
executed from the CLI, the names of the files may be given with which
to compare and do the merge to. If run from the Workbench, then only
the name of the merge file may be given in the tool types of the
AXDiff icon.
The only requirement is that the SC diff file exist somewhere in the
search path. The search path is either the search path in effect
in the SHELL invoked from if invoked from the SHELL, or the search
path in effect when Workbench loads if invoked from the Workbench.
To execute AXDiff from the Workbench, select the tool types desired.
They are all in the "info" display, but unused ones contain
parentheses around them. The available tool types are:
FONT=<font-name>, used to select a specific font to use instead of the
default. System font and size used by default.
FONT_SIZE=#, used to select the point size of the font.
MERGE=<filename>, used to specify the file which to merge the result
to.
LOCK_VERT=<TRUE/FALSE>, locks the left and right files in the vertical
dimension so that when you move the slider of the left or right file,
both files are affected and will move by similar line counts unless
impossible to do because of file size differences.. By default TRUE.
LOCK_HORIZ=<TRUE/FALSE>, locks the left and right files in the
horizontal dimension. By default TRUE.
LINE_NUM=<TRUE/FALSE>, displays or does not display the line numbers
of the bounds of the difference sections. By default true.
WINDOW=<number>, specifies # of pixels high the window should be when
opened. If out of bounds (<minimum, >maximum), window will open with
minimum height or maximum height, whichever is closer. Default = 400.
LOCK_SELECT=<TRUE/FALSE>, locks (synchronizes) the selection of
difference blocks between the left and right files. If on, selecting
the left difference block will deselect the right difference block,
while deselecting the left block, will select the right block. The
same goes for operations made to the right difference block. If off,
each difference block may be selected or deselected independent of the
difference block on the other side.
IGNORE_WHITE=<TRUE/FALSE>, tells AXDiff to ignore all white-space
differences between the files and display white-space as one space.
This is the default.
All of the above options except for "WINDOW" can be changed once the
program is running. "IGNORE_WHITE" requires the "Compare" button to
be hit again to take effect, although the display change of the
white-space on the lines takes effect immediately. The window can
resized in the vertical dimension via the size gadget in the lower
right of the window.
The format for running the program from CLI is as follows:
AXDiff [options] [left_filename] [options] [right_filename] [options]
Options are as follows:
-f <font_name>, specify the name of the font to use for display
+f <font_name>, same.
-fs <number, point size of font to use.
+fs <number, same
-m <merge_filename>, specify the name of the merge file to use. Note
space between "-m" and "filename"
+m <merge_filename>, same as above
-l do not display line #s
+l display line #s (default)
-v do not lock the left and right vertical sliders
+v lock the left and right vertical sliders (default)
-h do not lock the left and right horizontal sliders
+h lock the left and right horizontal sliders (default)
-i do not ignore white-space differences.
+i ignore white-space differences, display all white-space as one
space. (default)
-s do not lock the difference select between left and right files.
+s lock the difference select between left and right files. (default)
-w <number>, set the window height to <number>. If less than minimum,
window height will be set to minimum. If more than maximum, window
height will be set to maximum. Minimum allows for one line in the
display area of text of default font. Maximum is screen height.
Default is 400.
+w <number>, same as above
? By itself, with not other arguments, will print out usage text.
If no options are specified, the defaults will be used. This is the
same as specifying:
AXDiff +l +v +h +s -w 400 +i
The left and right filenames may also be specified. They may be given
anywhere on the command line. Either no filenames can be specified,
or both. One filename, or more than two are not allowed. If two are
given, then the first filename specified will be the left filename and
the second filename specified will be the right filename.
Operation
=========
Files may be loaded into AXDiff via the shift-select method from the
Workbench. Simply select two icons of files to be compared while
holding the shift key down and double-click on the AXDiff icon while
still holding the shift key down. The two files will now be loaded
into AXDiff and used with the left file being the first file selected
and the right file being the second file selected. If only one, or
more than two files are shift-selected, an error indicating the wrong
number of arguments will be displayed.
Once the program is running, new filenames may be given for the Left,
Right, and Output (or Merge) files. The "Compare" gadget must be hit
to begin the compare if new filenames are given, or if started from
the Workbench. If both the left and the right filenames are given on
the command line, or via the shift-select method, the compare will
begin immediately without having to to hit the "Compare" gadget.
The main part of the window is the text/file area which shows the left
file on the left side and the right file on the right side, seperated
by a central area which connects the two sides.
There are two menus, a "Project" menu, and a "Preferences" menu. The
"Project" menu allows you quit the program. You may also quit by
clicking on the window close gadget. The "Preferences" menu allows
you to turn on or off certain options which tailors the program
operation to your liking. The "Preferences" items which are described
below are:
Linked Horizontal Sliders
Linked Vertical Sliders
Line Numbers
Ignore White Space
Linked L/R Select
Font Selection
AXDiff uses the following conventions. Text is either pen 1 (Black)
or pen 2 (White). The Black indicating either text which is the same
between files, or text which is selected to be sent to the merge file.
Text which is the same between files will be written to the merge file
also. The white text indicates text which is not selected to be sent
to the merge file and will only appear in a difference section.
A pen 0 (Grey) background indicates there is no difference between the
text of the left and right files. A pen 3 (Blue) background indicates
that the left and right files differ on these lines. This is a
difference section. The blue rectange of the left file is connected
to the blue rectange of the right file by a blue polygon, showing
exactly where the differences occur and how that difference section
corresponds to the other file.
If selected, line numbers will appear in the center section showing
the first and last line numbers of the difference section, or the line
number before which inserted lines go. Line numbers will always
appear midway between text lines unless the number is at the top or
bottom of the text display area. Note that line numbers always
indicate the line number below the number.
Only lines which differ between files will be written on a blue
background. One exception: If lines appear in one file but not the
other file (they are inserted, not changed), then one line