home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 3
/
FishMoreVol3.bin
/
fishfinders
/
aquarium.doc
< prev
next >
Wrap
Text File
|
1991-10-26
|
10KB
|
292 lines
***************************************************************************
***************************************************************************
Aquarium (c) B Lennart Olsson 1989 - All Rights Reservered.
NewFish (c) B Lennart Olsson 1988 - All Rights Reservered.
***************************************************************************
***************************************************************************
Aquarium and NewFish may be copied and redistributed without any additional
permission, provided that no charge is requested for it's use and that
this information is included.
Special thanks to Niclas Persson, who supported in many ways.
***************************************************************************
0. Contents.
-------------
1. Intro
2. Installation
3. Search methods
4. Search mode and program mode
5. Navigation gadgets
6. Project menu
7. Hardcopy menu
8. Break-"gadget"
9. Key logic
10. Files in data directory
11. Future revisions of Aquarium
12. Using NewFish
13. Version history
1. Intro.
----------
Aquarium is a program intended for searching through a special
database containing information on the contents of Fred Fish's
AmigaLibDisks in order to find programs, etc, with specified features.
NewFish is a program that appends the AmigaLibDisks contents files
to the database. !!!! WARNING! Read this doc before you attempt to run
NewFish: it just might make your database useless if not handled with
care. A future revision will take care of this problem.
2. Installation.
-----------------
There is nothing special about this: just be sure you have Aquarium
and the data directory in the same directory level, and if you're
running it from the CLI you must be in the same directory. See also
10: about the files in data.
3. Search methods.
-------------------
The program searches through the database in three ways: Keys, sub-
string in program name and substring in the describing text.
a: All the requested keys must be defined in the sought item,
otherwise Aquarium continues with the next item.
b: If the keys are all right it scans the item name for the sub-
string ( not case sensitive) specified in the string-gadget 'name'.
If this fails it continues the search.
c: The sub-string specified in the string-gadget 'text' is used to
search in the contents description as in b.
A special feature is included with the 'name' gadget: You may jump to
a disk directly by giving the disk number after a '/'. Example: '/150'.
(Not a beauty, but it works.)
Note that if you're in programming mode no search operations are
performed.
4. Search mode and program mode.
---------------------------------
In search mode you set up the keys by clicking on the keywords and a
navigation gadget (see section 5). In program mode the setting of a key
will change the database directly.
Programming mode is recognized by a red screen and by a special image
for the mode-gadget.
5. Navigation gadgets.
-----------------------
Double left arrows:
With this gadget you move directly to the beginning of the
database.
Left and right arrow:
With these gadgets you search the database towards the beginning
or the end for a match. In programming mode you take only one
step in the chosen direction.
Printer:
Make a hardcopy of the item shown, using the settings in the
Hardcopy menu.
Right gadget with open lock:
Search the database for the next item which does not have any keys
specified.
Mode gadget:
Switches between search mode and program mode. In program mode the
screen turns red and in search mode green-blue.
6. Project menu.
-----------------
About.
About Aquarium and me.
Save.
If you have made any changes to the keys settings in the data
base, these will be saved to disk.
Save & Quit.
Save changes as mentioned above and quit THIS program.
7. Hardcopy menu.
------------------
Options - Include text.
The content description is included in all printouts.
Options - Sorted list.
Normally, when a printed search is started, the program prints directly
any item found. With this option enabled it first puts all items found in
a buffer, sorts them when end of file is reached, and then prints them.
Options - Formfeeds.
With this enabled it send a FormFeed character to the printer whenever a
new page is to start. Otherwise it sends linefeeds according to the
settings in preferences.
Count them:
Search through the database, beginning at the top, count the matches, and
show the result in the text field.
New Page:
Start a new page.
Print:
Search through the database and print the matching items.
8. Break-"gadget".
-------------------
When time consuming actions take place, as in searching for substring
in the text or printing, you'll find that a special gadget appears in
the text field. Clicking in the neighbourhood of this will stop the
current action.
9. Key philosophy.
-------------------
We have tried to make the keys self-explanatory and the settings
logical and consistent, but there are a few things that can help you
understand the logic used:
a: IFF pictures and such - Data & Graphics
b: Sound files - Data & Sound
c: Fonts - Data, Text processing & Graphics
d: The Subroutine key stands for libraries and useful routines
in general.
There are some unused keys that you can use for your own purpose.
Just put the names in the file 'KeyNames' in the 'Data' directory.
10. Files in data directory.
----------------------------
The data directory must reside in the same directory as Aquarium.
If you run this program from CLI, you must make this your current
directory. You don't have to make any assignments.
Data:
This file contains the text describing the programs.
Index:
Contains the keys and pointers to data file.
Names:
Contains item names.
KeyNames:
Contains the key names appearing in the key-gadgets.
11. Future revisions of Aquarium.
----------------------------------
If you have any suggestions or thoughts concerning this program,
please let me know.
12. Using NewFish.
-----------------
NewFish is a program to read the contents files of the Fish's disks
and append them to Aquarium's database.
WARNING:
You MUST take a backup copy of all files in the data directory
before you run NewFish. This program is not very smart and if it failes
to interpret the contents file correctly and you accept the result,
there is NO WAY to delete the incorrect item from the data base.
The program reads the contents file and tries to extract the different
items from the text. For each item it asks you if it is OK and then
saves it directly to disk. A problem might occure if the file is only
partly correct and you abort the program. This leaves you with an
incomplete disk in the database. To correct the situation you must edit
a version of the contents file and delete those items already appended.
A file with no separable items will be read as one item and called
Diskxxx.
Make a hardcopy of all the contents files before you try to append
them to the data base. Read them carefully and check if the following
rules apply.
a: A contents file with separate items is allowed to have a multi
line comment at the beginning, if all the lines start at the
first column.
b: All items must be separated by a blank line.
c: An item's first line must start in the first column and the lines
thereafter must start with a tab or space.
d: A contents file that is to be interpreted as only one item must
not contain any white spaces at the beginning of lines if it
is to be be correctly interpreted. You may try to read it with NewFish
to see if it reads correctly. You will be advised whether or not the
program treats it as a disk item. Just abort if it separate it
into different items.
In some way I'll make this program easier to use. It's just to
silly the way it is now.
13. Version history.
--------------------
Aquarium 1.11:
Changes that make it easier to compile for another language by
linking with a special text file. This also applies for the
names of files. The program will use the names specified in
the text file and if these don't work, it tries the default
Swedish names and thereafter the English names.
Centering of key names did not work if the line in the key-name
file ended directly after the name. Now it does.
Save caused the program to start at the beginning of the data
base. Changed.
The disk number option in the name gadget did not always work.
This bug is now removed.
Aquarium 1.12:
A minor internal enhancement.
Aquarium 1.13:
Two bugs removed:
1/ If an error occured during a "save and quit" action the
standard output was filled with garbage.
2/ Breaking a "count them" action caused an extra found item.
--------------------------------------------------------------------------
That's all. If you have any suggestions or thoughts around this program,
please don't hesitate to contact me.
B Lennart Olsson
Brunnsgatan 8
223 60 LUND
Sweden