BH2TEXT and TEXT2BH                                 16 July 2016, John Elliott
==============================================================================

  BH2TEXT and TEXT2BH are utilities for manipulating the BASHELP.DAT file 
used by Moonstone Software's BasHelp for the Amstrad PCW. BH2TEXT converts 
BASHELP.DAT into a human-readable text file, while TEXT2BH compiles a text 
file in the same format to a BASHELP.DAT.

  The .COM files in this archive are for CP/M systems like the PCW. They 
should compile on anything that supports ANSI C.

Syntax:

  BH2TEXT bashelp.dat {output.txt}
  TEXT2BH input.txt bashelp.dat

  If no output filename is supplied to BH2TEXT, the output is displayed 
onscreen; otherwise it is written to the specified text file. TEXT2BH always
writes to a file, since the output is not in readable text format.

  The format of the text file is a sequence of topics, formed:

[Topic=TOPICID]
[Page]
|Text for first page of topic
|which can go onto more than
|one line.
[Page]
|Text for 2nd page of topic
[Topic=TOPICID2]

etc.

Lines in the file which do not begin "[Topic=", "[Page]" or "|" are ignored,
and can be used for whatever purpose you like.

The topic text can include hyperlinks. In the file, these are specified as 
"[anchortext|TARGETID]". An example from Moonstone's file:

[Topic=ARRAYS]
[Page]
|ARRAYS
|An array is an ordered sequence of one
|or more [variables|VARIABLE_NAME] or [elements|ELEMENT] all of
|which have the same type. 

This will display as:

	An array is an ordered sequence of one
	or more variables or elements all of
	which have the same type. 

The words 'variables' and 'elements' will be underlined, and selecting them
will display, respectively, the VARIABLE_NAME and ELEMENT topics.

Licence
~~~~~~~

BH2TEXT, TEXT2BH Copyright (c) 2016 John Elliott <seasip.webmaster@gmail.com>
 
  Permission is hereby granted, free of charge, to any person obtaining a 
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation 
the rights to use, copy, modify, merge, publish, distribute, sublicense, 
and/or sell copies of the Software, and to permit persons to whom the 
Software is furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included 
in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 
OTHER DEALINGS IN THE SOFTWARE. 

