home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 2
/
AUCD2.iso
/
internet
/
htmacrol.arc
/
!HTMacroL
/
!Help
next >
Wrap
Text File
|
1996-01-22
|
6KB
|
107 lines
Name : !HTMacroL
Purpose : A macro insertion tool to make HTML even easier!
Author : Richard Goodwin
Status : Freeware
Version : 1.02 (January 1996)
Features : User definable macros on 51 buttons;
Buttons for long "styles", short commands and 20 characters;
Open extreme top right of any mode with right mouse button click.
This application, along with all files contained within, © Richard Goodwin
1995/6. This application may be freely distributed by any means AS LONG AS
* all files remain intact, with the possible except of "User" (see below)
* wherever possible the default "User" file is distributed,
rather than customised ones (aimed more at PD libraries etc. than users)
* no unreasonable charge is made.
This help file contains:
Preamble
Use
Editing Macros
Versions
Preamble:
~~~~~~~~~
Anyone can create World Wide Web pages on the Acorn range of computers; all you
need is a text editor, such as !Edit, and preferably a web browser to test your
pages - there are at the time of writing this two PD browsers, ArcWeb and
Webster, which can be downloaded from Demon, taken from the Acorn User CD 1 or
probably from a good PD library.
However, the most annoying thing about doing it this way is the repition of
having to type in common commands over and over again. I tried using macro
insertion tools, but they just didn't quite work how I wanted - too slow,
couldn't see enough buttons, forever having to define or load definitions etc.
So, I wrote one myself!
Use:
~~~~
Pretty simple really. Just load it, and click on the icon bar icon to produce
the main window. The left mouse button opens it wherever it was last left, on
startup the default is on the left side just above the icon bar (if your screen
is tall enough). Clicking with the right mouse button however opens it at the
extreme top right of the screen, regardless of mode.
On the window are 51 buttons, marked with various functions. When clicked upon
!HTMacroL will send a stream of characters to the keyboard buffer, the upshot
being that if you have an active cursor in something like Edit, StrongEd, Zap,
Impression etc. your selected command will very quickly be typed in for you.
While it is not possible to alter what these buttons say without resorting to a
template editor, if you alter the text file "!HTMacroL.User" you can alter the
action of every button to insert macros of up to 255 characters.
Editing Macros
~~~~~~~~~~~~~~
Looking at the "User" file you can see that everything is pretty self
explanitary; altering the text after "HEAD=" will define the header, altering
stuff after "POUND=" will redefine what happens after pressing the pound sign.
You will have to be careful where linefeeds go, as !HTMacroL assumes that any
linefeeds are the end of a definition. However, you can in fact insert
linefeeds into you definitions; the backslash character, "\", will be
interpreted as a request for a new line.
If the "User" file is accidentally deleted, there's no need to worry. Firstly,
!HTMacroL defines all macros internally when it is first loaded (although some
will be blank), it then checks to see if the "User" file is present. If it is,
it will go through it and try to decypher any definitions. Note that
definitions /don't/ have to be in the same order, the names /don't/ have to be
in capital letters, and /don't/ have to be all there - !HTMacroL checks for any
macro names, and if it finds any it converts them to capitals automatically
then matches them up with the correct program variable. Secondly you can
always copy the file "Proper" and use this as a "User" file.
The "Proper" file is almost an exact copy of the default "User" file; it's
mainly just a refence file in case you get a bit confused with your
definitions. However, the reason it's called "proper" is because it actually
defines better HTML than the "User" one, i.e. you're supposed to use "£"
rather than "£" to get the pound sign because it will have wider
support. However, I think that this makes documents harder to read, so in the
"User" file I've swapped most of the characters from numbers to named effects;
there are cases in both files where I've not stuck to either of these formats
due to compatibility, as I wanted the characters to work in both Webster and
ArcWeb (Webster seems to have the better support, but many Argonet users will
be using a thinly-disguised copy of ArcWeb). Also I've tweaked things like the
IMAGE definition (to add directory information), and made the horizontal RULEr
a chubby, quarter page wide job just to show what can be achieved.
Have fun!
Rich, Nov. '95.
Versions:
~~~~~~~~~
1.00: first version
1.01: when I actually got round to using it in a real situation, realised I'd
forgotten to include <center> and </center>. Oh well...
1.02: added polling after each character insert so that characters didn't get
lost and line feeds didn't screw up the text underneath. Slows it down a
little, but not too much. Tested in StrongEd, Edit and Zap
.-''-.
nnn (? (o|o)) nnn
.---UUU------''---UUU--------------------------------------------------------.
| House of Mabel Richard Goodwin, |
| for all your 22 Wray Close, St. Anns, Nottingham NG3 2FS. |
| Acorn computer Telephone (0115) 9507466 |
| graphic needs. mabel@argonet.co.uk |
'----------------------------------------------------------------------------'