home *** CD-ROM | disk | FTP | other *** search
- 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 of the file
- where the lines would be inserted is on a blue background. The
- central area will show a blue triange comming to a point just prior to
- the one line highlighted in blue, signifying all the text from the
- other file gets inserted "here". This is done to make it easier to
- see the line before which the text is inserted.
-
- Clicking on "First", "Prev", "Next", or "Last" will position the
- respecitve difference at the top of the display area, unless the
- beginning or end of the file prevents it. The beginning of the file
- will never appear below the top line, and the end of the file will
- never appear above the bottom line. The one exception to this is if
- the entire file is smaller than the display area.
-
- Also, the lines are appended to the end of a file, and the end of the
- file is being displayed, the line number will not be displayed on the
- file which does not have the appended lines.
-
- To select or deselect text, merely click the mouse pointer on the text
- you wish to select or deselect. Do not click on the center area, you
- must click on the text areas. The state will then change from
- selected to deselected, or from deselected to selected. If "Linked
- L/R Select" is on, you select either the left, or the right section,
- but not both. Selecting one side deselects the other, and vice-versa.
- If "Linked L/R Select" is off, the left side can be selected or
- deselected independently from the right side. You can have neither,
- both, or either of the sides selected. Note that you cannot change
- the selected status of the text which is highlighted in blue to show
- lines being inserted.
-
- Click on the Merge button to perform the merge. The merge is done as
- follows. All lines which are common between the left and right files
- are written once to the merge file. A section highlighted in blue
- will have the left side text written first (if selected), followed by
- the right side (if selected). Proper order is maintained. The
- default selection is set up so that the merge file will be a copy of
- the right file unless you change the selection status of one or more
- difference sections.
-
- The sliders around the text area move the text around so that you can
- see the entire line and the entire file. Most likely, the entire line
- will not fit into the small space provided, so this allows you to see
- the whole line.
-
- Both the horizontal and vertical sliders can be locked (default), or
- not. By unlocking the left side from the right side, you can slide
- the left or right file around independently from the other. Locking
- the sliders attempts to keep the display of the files in sync. You
- can lock or unlock the horizontal and vertical sliders independently.
-
- You can change the font and size if desired so that more or less
- characters will appear on screen. Note that tabs will not be
- expanded, they will appear as whatever the font's tab character is,
- unless "Ignore White Space" is selected, in which case they will
- appear as a single space.. AXDiff also supports use of the styles
- "Bold", and "Italic".
-
- Quitting is done by selecting "Quit" from the menu, typeing A-Q, or by
- hitting the window close button in the upper left.
-
- Hints
- =====
-
- Be careful about merging when "Ignore White Space" option is on.
- Lines which do not differ between the left and right files are taken
- from the left file. So, if white space is being ignored, the lines
- from the left file are copied to the merge file and may differ from
- those in the right file by number of spaces, tabs, etc.
-
- Be careful on binary files. I've tried to filter them out and give
- warning to the user before doing a compare, but there may be some
- files which look like text, but are binary in fact. Attempting to
- compare binary files will likely crash the computer.
-
- Registration
- ============
-
- To register, please use the registration form enclosed. Fill in the
- requested informatoin and enclose $12 for the registration fee. Also
- enclose a text string you wish to use as your username, eg. "lawrie".
- Please enclose the string in quotes as above so there will be no
- mistake. I will then send you a registration number. To then make
- use of the full facilities of the program, you must create a file in
- the s: directory called "AXDiff.reg" containing one line of the format
- <username>=<registration number>. For example, a file may read:
- username=01482.
-
- Send to:
-
- Jim Lawrie
- 10 Holly Dr.
- Norwood, MA 02062-3011
-
- I will either send you a note to the address you request, or I can
- EMail you. Either your Internet address or Compuserve ID is fine.
-
- Problems & Futures
- ==================
-
- If you have a problem with the program, you may send me a note to the
- above address, or EMail me. Send to either my Internet address
- "lawrie@merlin.dev.cdx.mot.com", or my Compuserve ID: Jim Lawrie
- (72517,2340). Internet is better.
-
- Also, I want to make the program more useful. Items such as removing
- the restriction on needing SAS's "diff", IFF and AREXX support seem
- useful to me. If you have an idea, please send me a note, or two,
- telling me what would be useful, and I'll try to oblige.
-