home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 128 22
/
q22.d81
/
indexer.doc
< prev
next >
Wrap
Text File
|
2022-08-28
|
28KB
|
661 lines
Indexer 128 by e.g.bell
Over the years, the most frequent complaint I have seen about
software is in regard to the documentation. Good documentation
plays a large part in the success of a program. People have to
know how to use it. At best, a poorly documented program will
not be fully utilized. At worst, it will not be used.
Successful documentation involves familiarity with the program
and ability to express the features, functions, and requirements
clearly. A certain amount of style goes a long way toward
making it interesting also. Though style and the ability to
convey the information rest with the documenter, there are two
features you will find in virtually all good documentation which
anyone can do professionally, and with Indexer 128, easily.
These features are a table of contents and an index of key words
which serve as a quick reference to things covered in the text.
Documentation is tedious at best, even for the person who
created the program. Creating a table of contents may prove to
be a relatively painless task for shorter documents or those
which don't change often, because you are usually dealing with a
limited number of entries. An index, on the other hand, is a
potential nightmare for a sizable project. This is a nightmare
I faced. Documentation for one of my programs was in excess of
190 thousand bytes, a 152 page document. It was divided into 45
sections, each referenced in my table of contents. There was an
index of 102 words and phrases which served as quick references
to various features and functions documented in the text. It
was made up of six linked files, three of which each consumed
the whole buffer in The Write Stuff.
I wanted a professional manual. My decision, my method, was to
'print' the whole document to disk as ONE sequential ASCII text
file. My documentation, in this format, takes up over 800 disk
blocks. How would you like to index that?
I selected this sequential ASCII text format because it allowed
me to ignore control and escape sequences particular to various
word processors and concentrate only on the task I really needed
performed. The file was on disk exactly as it would be on
paper, in one package, ready to yield the information I wanted.
In addition, this made the process available to ANY word
processor able to 'print' data to disk in sequential format. In
this regard, there is one caution. If you have made use of
formats a disk can't recognize, italics, underlining, and such,
make a copy of the file without these before creating your
Document file. Things like centering, margins, page length,
etc. require no such consideration however. In addition,
obviously for files the size of my documentation file, you'll
need a 1571 ,1581, RamLink, or one of the other high capacity
storage devices sold by Creative Micro Designs. But for files
up to 664 blocks, you can use a 1541.
Page 1
Indexer 128 by e.g.bell
Indexer processed my 832 block documentation file in just over
seven minutes. That included the 45 entry table of contents and
over 750 page-references for the 102 words/phrases. The search
words spanned a wide spectrum, from REU to Modem Selection.
Your results will be different, affected by the length and
format of your document, the words and phrases you specify, etc.
One thing, however, will be the same. You'll be pleased with
the results!
*** On With The Show
When you run Indexer 128, the first thing you will be asked is
if you want to
<C>reate <P>rint or <Quit>
Printing will print a table of contents or index (or any text
file) from the 'target' drive. That is the way it is set up.
Indexer 128 will make sure you enter the needed information, and
make sure it is correct also. See the section on the source
file names below for getting directories, and the section toward
the end of this document regarding DOS commands.
*** What You Get
The output can be in CBM ASCII, screen code [as used by
Speedscript and The Write Stuff], or True ASCII, if that is
required. This was to allow easy formatting of the finished
files with a word processor if desired. You can also use
Indexer 128 to dump existing Index and Contents files (or any
text file for that matter) to printer. Just follow the
prompts.
The net effect of this, then, is that you can take files created
by Indexer 128 and load and edit, print, or link them to any
other file created with that word processor or editor.
*** Document Preparation
I originally considered doing all of this searching in RAM but,
as I mentioned previously, some of my files were just too large.
In addition, this would have required processing of linked
files, format commands, etc. I felt this would be too much
work, duplicating functions the word processor already
performed. Thus, the index and the table of contents are
created from a document filed on disk. This can be as large as
a disk will allow, up to 3160 blocks for a 1581 drive, and a
world larger for some of the new CMD mass storage devices like
RamLink or the HD or FD drives.
Indexer 128 allocates 6144 bytes, 6K, for handling pages of the
document. It assumes you are using documents in 80 column
Page 2
Indexer 128 by e.g.bell
format on 66 line pages, although there is some room for
variety. Still, this 6144 bytes will handle 75 lines of 80
characters each, so you can see it is over-qualified for
anything likely to be thrown at it. You will probably never see
a document of even 66 lines containing 80 characters in every
line, and there are other factors that make this capacity even
more lofty. They will be discussed later in this document.
As stated previously, Indexer 128 requires this file to be in
ascii text format, literally printed to disk instead of the
printer. It may be in either true ASCII or PETSCII format on
the disk. Indexer 128 will process all of that 'on the fly'.
*** To Disk In Sequence
You might wonder exactly how to get your file to disk in
'sequential ASCII file' format with your word processor,
particularly if you use a screen code type word processor. How
about a couple of common examples!
If you use Speedscript, first press Shift-Control-P. Then, at
the status line prompt, press 'D' for disk. Select and enter a
name for your file when you are asked to do so.
If you use The Write Stuff, use the ^ to put the cursor on the
status line, then move the block cursor over the word 'Print'.
At the next menu, move the block cursor over 'Disk'. Enter a
name for your Document. If you are processing a group of linked
files, answer 'YES' when asked.
Using this method, all controls and word-processor-specific
functions are taken care of by the program designed to take care
of them... the word processor.
*** In The Beginning The Word Was...
The search file must also be