home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
h
/
hlpdk11.zip
/
HELPC.DOC
next >
Wrap
Text File
|
1992-11-26
|
9KB
|
184 lines
╔══════════════════════════════════════════════════════════════════════════╗
║ ║
║ ISoft D&M ║
║ POB. 5517 ║
║ Coralville IA 52241 ║
║ U.S.A ║
║ ║
╚══════════════════════════════════════════════════════════════════════════╝
*******************************************************************************
* HELPC Help Engine Technical specification and compiler user guide *
* LAST UPDATE - Nov. 26, 1992. (c) 1992 - Loewy Ron. *
*******************************************************************************
*******************************************************************************
* General Overview *
*******************************************************************************
The Help Engine database is a combination of text that is read by the user,
and a Topic and Links database that allows the user to view the topics
he is interested in, using hyper-text methods.
Each help database is built of 4 file components :
1. Help Data File - this file contains the raw text data.
2. Topic Index File - a database table that contains the topic names, and
the references to the topics in the Data File.
3. Links Index File - a database table that contains the list of links
defined for each topic, and positional data.
4. Set Data File - a database configuration file that contains the
names of the 3 components defined above, ans some
additional information.
Version 1.0 is the bare-bones version that includes only the basic
operations needed from a hyper-text database, this version is implemented
using the Paradox Engine V2.0 to hold the Topic and Link index tables.
The format of the help database is released to the public domain, if
you implement a database viewer on this database structure, I would be
happy to receive a copy ..
*******************************************************************************
* Compiler Usage *
*******************************************************************************
The HELPC help compiler is a dos command line program that receives a
help definition file (.HDF) and produce a help database.
The helpC command line is :
HELPC source.fil [/Htopic-table-name] [/Llink-table-name] [/Ddata-file-name]
[/R-] [/W+]
The output of the compiler is a set data file called source.SET, that
includes the names of the other help database components.
Please Notice - if the /W+ switch is defined, the compiler will generate
a .HPJ and .RTF files that can be fed to the Microsoft HC (v3.00b) help
compiler, and output a .HLP windows help file!. (The HC31 compiler will
issue a warning on the generated code, but will compile it, and it works!)
By default the help compiler produces a help cross reference report on the
topics/links used in the database, if the /R- switch is set, no cross-ref
report will be generated, and no database integrity indicators will be
given.
IMPORTANT - Scan the output cross reference report for links defined, that
are not defined as topics!
*******************************************************************************
* Help Definition Format *
*******************************************************************************
The help definition file format is as follows :
remarks ...
remarks ...
.ENTRY topic-name
topic text and link reference ..
topic text and link reference ..
topic text and link reference ..
topic text and link reference ..
.END-ENTRY
remarks ...
.ENTRY topic2-name
topic2 text ...
.end-entry
As can be seen - lines between the .ENTRY and .END-ENTRY keywords are
the lines processed by the help compiler, to create the help database,
every other line is considered a remark, and is not parsed or evaluated by
the help compiler.
The topic text and link reference lines are simple text lines, with
special link marks.
A sample will provide the details :
This is a text help line that includes one ~link~link-topic-name~ in it.
This line will be displayed in the help engine program as :
This is a text help line that includes one link in it.
The word "link" will be in a different color then the rest of the line,
to indicate that this is a link. If the user hi-lights the link, and
presses Enter (or points the mouse cursor and clicks), the help engine will
look for a topic called "link-topic-name", and display it.
Browse the HELPDEMO.HDF file for a demo of a help database definition file.
*******************************************************************************
* Topic Index Format *
*******************************************************************************
The topic index table format is as follows :
TOPIC - 15 charcters string key - this is the topic "name".
FILENAME - 38 characters string field - includes the name of the
help raw data file. (Notice - V1.0 ignores the value of this
field, it is here for future expansion).
START - longint (long) field that contains the offset from the data file
start, to the start of the topics text data, in bytes.
LEN - integer (int) field that contains the length (in bytes) of the
text data of the topic.
*******************************************************************************
* Links Index Format *
*******************************************************************************
The links index table format is as follows :
TOPIC - 15 characters string key - the name of the topic that
has the link.
SEQ - integer (int) key - contains the sequential number of
the link in the topic. (This way you can assign the links
order in the topic).
LINK - 15 characters string key - the name of the link topic to
display if the link is chosen.
LINE - integer (int) field - the line (from the start of the topic)
this link is displayed on.
COL - integer (int) field - the column this link is displayed on.
TXT - 30 characters string field - the text to display on the line.
*******************************************************************************
* Set-File-Format *
*******************************************************************************
The set file is a text file that contains one entry in each line, using
the following format :
topic-index-table name
links-index-table name
help-raw-data-file name
number-of-topics
length-of-file
*******************************************************************************
* Implementation *
*******************************************************************************
Notice - The Paradox tables (Topic, Links) include one additional field
(wtGeneration) for future expansion purpose only.
*******************************************************************************
* Distribution *
*******************************************************************************
To distribute a database of your creation, compile the help definition
file, and include the HELPENG.EXE file with the .DB, .PX files, and the
.HDT file created by the compiler. Do not forget to include the
Paradox Engine overlay file - PXENGINE.OVL .
If you generated the Windows (/W+) help file, you can complile the
.HPJ and .RTF generated file, and distribute the resulting .HLP .