home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 10
/
Fresh_Fish_10_2352.bin
/
fishdisks
/
d1001.lha
/
Programs
/
AmigaGuide
/
AG_V34
/
Docs
/
AmigaGuide.txt
< prev
Wrap
Text File
|
1993-03-25
|
34KB
|
1,212 lines
AmigaGuide TM
David N. Junod
(C) Copyright 1990-93 Commodore-Amiga, Inc. All Rights Reserved
INTRODUCTION
The standard Amiga keyboard sports a HELP key, yet there has been no
system provided support for this key. Now, there is AmigaGuide,
which provides a standard method of displaying help and other on-line
documentation to the user.
Capabilities
AmigaGuide uses an Intuition window that contains a scroll bar,
buttons and pull-down menus, to display plain ASCII text files or
AmigaGuide databases.
An AmigaGuide database is a set of related documents contained in one
file. Each document may contain references to other documents, using
what is called a link. A document may contain any number of links,
pointing to any number of other documents. When the user selects a
link, the document that the link points to will be displayed. The
user may then use the links to read through the database, following
whatever path they may choose. The technical term for AmigaGuide's
abilities, is hypertext.
The user may at any time print a document or a portion of the
document. They may also send portions of a document to the
clipboard, for use in other applications.
Using ARexx, the user may write scripts, or an application could
provide scripts, to control AmigaGuide.
Cross-reference tables can be loaded that specify where a keyword, or
phrase is defined. The user can then use AmigaGuide's Find Document
facility to quickly display a document based on keyword, without
having to know the name of the database that it is located in.
AmigaGuide provides a unique feature to hypertext systems, called
Dynamic Nodes. A Dynamic Node is a hypertext or plain text document
that is generated in real-time as opposed to coming from a static
file. An application that generates Dynamic Nodes is called a
Dynamic Node Host.
Interfacing
AmigaGuide databases are accessed in three different ways:
o Databases can be browsed directly from the Workbench or Shell
using a utility named AmigaGuide, a hypertext replacement for
More.
o AmigaGuide support can be added to an existing application, that
supports ARexx, by using AmigaGuide's ARexx function host
capabilities.
o Applications can use the functions of AmigaGuide to provide help
on gadgets, menus and windows. For example, the user could
position the pointer over any gadget or menu item, press help,
and the appropriate document would be displayed in the
AmigaGuide window. The application could also have AmigaGuide
display a pertinent portion of the current project.
Other Uses
In addition to help or on-line documentation, AmigaGuide has other
possible uses. For example,
Tutorials
An application that has an ARexx port and supports AmigaGuide could
set up a help system that not only provides help, but could also give
examples. The user could read about a feature, then click on the
EXAMPLE button, which would run an ARexx script that would give an
example of use. For instances, to show Pattern Fill, the script
could draw a circle, select a pattern, and then fill the circle.
Computer Aided Instruction
The student could read about different topics, following links. A
multiple choice quiz could be set up at the end where the questions
and answers run ARexx scripts to accumulate the score.
Program by Query
Many programmers develop using a Cut & Paste technique. They
clip modules from the various applications or utilities that they
have written, and paste them together to build new applications.
A database could be set up of all these different code fragments
(such as loading and saving ILBM's, clipboard access, playing sounds,
etc.), you could step through, answering questions, while the sections
that you need are being appended to a new source file.
USING AmigaGuide FROM WORKBENCH OR CLI
A number of utilities are provided to access AmigaGuide databases
from the Workbench or Shell. These utilities are:
AmigaGuide
This tool is much like the system utility, More, but is also capable of
interpreting AmigaGuide databases.
LoadXRef
Used to load a cross-reference from disk into memory. Multiple
files can be loaded.
ExpungeXRef
Used to clear the cross-reference table from memory.
AmigaGuide
The AmigaGuide utility is used for browsing through AmigaGuide
databases. It can be run from the Workbench or the Shell.
To use it from Workbench, set the default tool of an AmigaGuide
database's icon to AmigaGuide. Currently, the AmigaGuide utility
doesn't recognize any tool type parameters.
From the Shell, AmigaGuide uses the following command template.
DataBase,Document/K,Line/N,PubScreen/K,PortName/K:
The following are descriptions of the arguments.
DataBase
The name of the AmigaGuide database to display.
AmigaGuide will look in the current directory for the database. If the
database isn't found, then AmigaGuide will search through its path for
the database. To set the path, see the Path paragraph in the USER
PREFERENCES section.
Document
The document within the database to display. AmigaGuide will use
the cross-reference table to automatically supply the DataBase and
Line parameters.
Line
The line of the document to start displaying from.
PubScreen
The public screen to open on. Remember that public screen names are
case sensitive.
PortName
The name to assign to the ARexx port for this occurence of AmigaGuide.
LoadXRef
The LoadXRef utility can be used from Workbench or the Shell to load
cross-reference files from disk into memory. Multiple cross-
reference files may be loaded at a time.
From Workbench, just set the default tool of a cross-reference file's
project icon to LoadXRef. This tool doesn't support any tool type
parameters.
From the Shell, just specify the name of the cross-reference file to
load. LoadXRef will look in the current directory for the file. If
the file isn't found, then LoadXRef will search through the users
preference path for the file.
ExpungeXRef
The ExpungeXRef utility is used to remove all entries from the cross-
reference table in memory.
USER PREFERENCES
AmigaGuide allows a number of items to be tailored to the users'
preference. These preference items are stored in environment variables.
The AmigaDOS command SetEnv can be used to set any of these variables.
In order to set any of the following environment variables, an
ENV:AmigaGuide directory must be made.
makedir ENV:AmigaGuide
A Preference Editor that sets the AmigaGuide preferences would write
in the ENV:AmigaGuide directory when "Use is selected, and write in
the ENVARC:AmigaGuide directory when "Save" is selected.
Following is a list of the variable names, and what they control.
Path
This variable contains the list of directory names that AmigaGuide will
search through when it attempts to open a database. The directory names
are separated by a space.
For example:
SetEnv AmigaGuide/Path "Workbench:Autodocs Workbench:Includes"
Text
Used to specify the graphical style that the links are presented in.
The possible styles are:
BUTTON Draw a raised border around the text (default).
UNDERLINE Underline the text.
BOLD Bold the text.
ITALIC Italicize the text.
For example:
SetEnv AmigaGuide/Text BUTTON
Pens
This variable provides the user with the ability to specify the
colors to use for the various renderings that AmigaGuide performs.
SetEnv AmigaGuide/Pens <abcdefgh>
Where:
a = Background pen
b = Button text pen
c = Button background pen
d = Highlighted button text pen
e = Highlighted button background pen
f = Outline pen
g = Highlight outline pen
h = Text on background pen
For example:
SetEnv AmigaGuide/Pens 21213001
SetEnv AmigaGuide/Text BOLD
Internally, AmigaGuide subtracts '0' from the pen number, so values
can range from 0 to 207.
AUTHORING AmigaGuide DOCUMENTS
Authoring an AmigaGuid