Author: Jill Swift, Montgomery, Texas. USA (jswift@freenet.fsu.edu)
You may, if you wish, use the Attach Ant macro, although the cut and paste method is more reliable.
(Word, for unknown reasons, doesn't always attach a new template properly.)
Two methods of attaching the Ant Template follow :
A macro called "Attach Ant Template" has been included so that you may more easily change a document based
on Word's "Normal" template to the Ant template. (All documents
created in the Ant and saved with .HTM extensions become text files based on the Normal Template.)
If document revisions are necessary, the Attach Ant Template macro automatically re-attaches
the Ant Template, makes imperceptible adjustments to paragraph marks so that the macros will function efficiently
and displays the Ant's Toolbar.
To make the macro readily
available, copy the macro to your "Normal" template.
Although this guide contains many HTML tips and formatting suggestions, it is not intended as an instruction guide for HTML. If you are already familiar with HTML coding, the features will (I hope) seem "intuitive" and enable you to click on a tool and achieve the expected result.
You may toggle (turn on or off) the hidden codes using the
VIEW HIDDEN CODES TOOL provided on the toolbar
(shaped to look as much like spectacles as possible) or by using any standard Word method.
You may also select headings, styles, as well as numbered or unnumbered lists via Word's
When you use styles from the Word Style Box (to the left of the font selections on
Word's standard formatting toolbar), you may quickly insert heading and style codes
by choosing the
In addition to the above options, a
Note: If you use the style called CODE, Word changes some entries like "<code> & lt; </code> ". Word reads it as....{yes, you guessed it}, CODE!
PRE uses a fixed width font. The PRE TOOL inserts the code
"< Pre>
" on a line by itself to indicate where the preformatted formatting
begins and inserts "< /Pre>
" on a line by itself at the end. Spacing (tabs, indents, etc. will
be determined to some degree by HTML browsers, so you may wish to preview your work in a
browser before finalizing your document. Currently, Mosaic likes spaces better than tabs and
likes tabs much better than indents. The PRE font looks like this:
This is a Pre Entry: 4567 8910 This is the second line: 7654 0198
Horizontal Rule is a style which inserts a line across the entire width of the page. It can be inserted either
by clicking the tool or by choosing Horizontal
Rule in Word's Style Box. Because of the way Word moves horizontal lines down the page, it's
easy to insert text into a paragraph formatted with a line and not know it. the Ant attempts to
alert you that you have either accidentally or intentionally formatted in the Horizontal Rule Style
by making the paragraph marker gold. (A difference in shading is also visible in monochrome monitors.)
Inserts a < P> tag (i.e. code) at the cursor location.
If you are creating a new document, you won't need it. The CONVERT AND SAVE TOOL
will add these for you. ( Don't worry,.. it will not do any harm if you use it. )
Inserts a
<BR>
code and a Word line break at the cursor location or at the end of
each line in a selection and changes
each selected paragraph to single line spacing. The <BR>
code at the end of a
line acts as a line
break in hypertext documents. (If you use this in conjunction with any of the other tools, use the
BR TOOL first.)
The CONVERT AND SAVE TOOL or the CHECK STYLES FOR HTML CODES TOOL will insert these
for you wherever you have inserted a line break (SHIFT+ENTER) if the <BR>
tags
are not already there.
Use the standard BOLD and ITALIC TOOLS in any combination.. HTML codes will be inserted
during conversion with the CONVERT AND SAVE TOOL.
When using bold and italic formatting in combination with headings and other styles, use the
toolbar tools to apply the headings and styles first.
(The normal underline feature is not shown in HTML browsers
so it's not supported in this template.
Each paragraph in the selected text is converted to a list item
Allow the template to enter the <LI>
tag to each list item entry for you. If you insert
it yourself, the appropriate <OL>
or <UL>
tags may not be inserted.
(Use Word's Style Box styles if you prefer, or a combination.)
The DISCURSIVE LIST TOOL inserts
<DL>
,<DD>
and </DL>
codes either
at the cursor location or
around selected text. You will be prompted and asked whether you wish to add a Descriptive
Title entry, a <DT>
. If so, you may enter the text in the space provided or you may simply
click OK and add the
text immediately after the <DT>
code in your document.
Below is an example of a Discursive List entry:
This is the first paragraph of a Discursive list entry. It wraps around like this: and just goes on and on and on and on and on and on forever almost and on and on and on and on and on and on and on and on and on and on and on.
And on and on and on and on and on and on and on and on till the words have no more meaning and so on and on and on and on and on and on and on and on and on and on and on until you realize that okay, enough is enough.
The FORM TOOL presents a dialog box with a list you can scroll to choose a form tag. The tool inserts the tag into a text box which you can edit if you like. You may alter or add to any of the entries inside the dialog box, or add text later, after the tag has been inserted into your document. (If you wish to alter or add to the form entries before inserting them into your document, you may either type the text you want or paste it directly into the form tag.) An optional < P> tag can be automatically inserted at the end of the form entry if you so choose. The ANT_PLUS template contains a comprehensive list of possible form tag entries. The ANT_HTML template gives you a taste.
A simple fill-out form with two text entry fields and no default value:
The HTML code for the fill-out form above looks like this:
<FORM METHOD="POST" ACTION="http://www.your.site/somebin-post/post query">
A single text entry field goes here: <INPUT
NAME="entry1" > <P>
Another text entry field goes here: <INPUT
NAME="entry2" > <P>
To submit the query, press this button: <INPUT
TYPE
="submit" VALUE
="Submit Query" > <P>
</FORM>
The HTML code for the checkbox form with three user options looks like this:
<FORM METHOD="POST" ACTION="http://www.your.site/somebin-post/post query">
A single text entry field goes here: <INPUT
NAME="entry1" > <P>
Another text entry field goes here: <INPUT
NAME="entry2" > <P>
<OL>
<LI> <INPUT
TYPE
="checkbox" NAME="box1" VALUE
="activated" CHECKED
>
<LI> <INPUT
TYPE
="checkbox" NAME="box2" VALUE
="primed" >
<LI> <INPUT
TYPE
="checkbox" NAME="box3" CHECKED
>
</OL>
To submit the query, press this button: <INPUT
TYPE
="submit" VALUE
="Submit Query" > <P>
To reset the checkboxes to their default states, press this button: <INPUT
TYPE
="reset" VALUE
="Reset To Default Values"><P>
</FORM>
The first checkbox above is on by default.
The second checkbox is off by default.
The third checkbox is on by default.
VALUE
within an INPUT
tag of
TYPE
"text" specifies the default value of that text field.
VALUE
within an INPUT
tag of
TYPE
"checkbox" specifies the value that checkbox takes when it's on. If it's left blank, the default is "on".
CHECKED
specifies that the checkbox is on by default.
INPUT
tags of TYPE
"submit" and "reset" are special buttons.
( URL Links to locations outside the document or set of local documents)
URL LINK TOOL<
Inserts the appropriate Universal Resource Locator code around
selected text. and presents a dialog box in which you type or paste the URL destination.
(Links within documents and to other local documents):
You can create a hotword (or phrase) called a LOCAL ANCHOR REFERENCE
to point to a specific destination called a
LOCAL ANCHOR DESTINATION
within your document or in another local document.
TO CREATE A LOCAL LINK:
</A>
All this is easier done than said. Just try it.
When you select the GIF TOOL three options are presented.
2... Inserts the appropriate .gif reference and the actual picture into the current document. Note that certain graphic filter requirements must be met or the application can crash. Save often! (The placeholders should not present this problem.)
3... Permits you to type the name of the .gif reference into a text box, then inserts the appropriate codes. This option does not automatically insert a placeholder, You can insert a placeholder in several ways should you wish to do so. Create your own or place the cursor next to your .gif reference and click on the PLACEHOLDER TOOL.
Gif Tip
Sometimes importing .gif files and other graphics into a Word
document can cause the entire application to crash.. The ANT-HTML options,
provide two alternatives that eliminate this problem. If your application is prone
to crashing because of the .gifs, choose to use a placeholder or refer to
the file using "text only" as described in the GIF TOOL options.
Back to Index
Back to Creating A Hypertext Document
If you choose to close the .HTM document after converting and saving it, Word will display a dialog box with the following message:
Answer "NO" to this question. Your document will be saved in the correct format
(The Ant template will display a dialog box reminding you of this if you choose to save it
immediately after the conversion.)
After clicking the CONVERT AND SAVE TOOL, a dialog box will appear which contains conversion options. You may choose whether or not you wish to have each entry checked for tags. If you are creating a new HTML document, the settings you'll need are already set as the defaults. If you have imported a previously coded HTML document, and the HTML tags are just the way you want them, you may wish to choose the Quick Save option. The file will be saved "as is" with an .HTM extension.
(Word imports all text in HTML documents as "Normal" style, so headings, list items and other entries which do not require < P> tags will automatically receive < P> tags if you are editing a previously coded document and do not use the Quick Save option. You may just delete them and select File, Save after the conversion, if you don't wish to use the Quick Save option.) If you experience any temporary embogglement at the apparent complexity of the options, please note that they're easier done than said. Try them.. Some HTML editors do not permit any editing of HTML documents and thus happily avoid the necessity of presenting the user with explanations and descriptions of possible choices. I hope the options and features of the Ant template will compensate.
While working on your document you might wish to add or delete some hidden codes.
Two Ant Tools Menu Items facilitate the removal of hidden codes and text during the document
creation process.
ZAP CODES FROM THE SELECTION when selected, deletes the codes from whatever text you have selected.
ZAP CODES FROM DOCUMENT, when selected, deletes all the hidden codes
from the entire document. ( Since some entries are
ambiguous, it skips the questionable entires. When you select this menu item, a message
will ask you if you're sure you wish to continue.
NOTE to ANT_PLUS users: Click the HTML to WYSIWYG Tool first. This makes the
HTML tags unambiguous and facilitates the tag removal process.
In addition, two other Ant Tools Menu Items may be helpful:
MAKE HIDDEN and MAKE UNHIDDEN.
The names are not clever, but the macros may come in handy.
When clicked...displays Ant info.
If the ANT toolbar is not displayed, click anywhere on the toolbar with the right mouse button and select the ANT TOOLBAR or from the View Menu, choose Toolbars, ANT and OK.
Three characters are special characters and are used to specify HTML tags
&
lt
&
gt
&
amp
The Cut (or Copy) and Paste method is the recommended method for importing an HTML document into the template. An easy way to select the text in an entire document is to triple click the left margin of the document with the left mouse button.
Although there are a variety of ways (and personal styles used) to create an HTML document, and although the template is designed to accommodate most of them, you might discover an exception. If for any reason, during the Convert and Save process, the macro continues to run in an endless loop condition, you may stop it by pressing the ESC key.
CTRL+Spacebar easily changes hidden characters into normal text. The entry called MAKE UNHIDDEN on the Ant Tools Menu will do it , too.
CTRL+Q is handy for restoring the default paragraph formatting.
Just so you don't puzzle over it, HTML language (and therefore, browsers) ignore extraneous spaces,
tabs and paragraph marks (unless they're inside your HTML codes) . Among
other things, this means that tables and other special formatting features possible in Word
but not supported by the HTML language, must be created in some work-around manner. You can
create the appearance of tabs with "< UL>
" tags
and create tables with "< Pre>
" tags.
The macros are locked, as in other programs, for several reasons. One of them (but only one) is that it encourages some users to provide valuable feedback about the program.
Please note that the Ant sometimes adds extra paragraphs at the end of a document because of the way Microsoft Word reacts when it encounters the last paragraph mark in documents. If, after saving or converting your document, you find that additional paragraph marks have been inserted at the end of your document, you may delete them if you wish, but they will have no affect on the appearance of your HTML document.
The answer might be that you imported a text file which contained ANSI characters not supported by Microsoft Windows or Word. If you are importing an ASCII file which contains characters (like ANSI character #127 which generally looks like , for example), you can easily remove them before pasting into Word with an editor like Q Edit. (To remove them in Q Edit, open the file, press CTRL-K, then press X, then ESC to quit. Save the file. The offending characters will have been removed.). Paste the remaining text into a Word document,
Hidden codes (in Tools Options View) should be turned on during the Save process. The template tools are designed to turn hidden codes on, if they were off, and to restore your preferred settings afterward. If this procedure goes bananas for any reason (and special pains were taken so it should not go bananas), your document won't convert properly. Turn Hidden Text ON and try again.
More Information is available through the following hyperlinks:
Special thanks to Eileen Wharmby, without whom, no international versions would exist.
Many thanks also to Brian Moura and Woody Leonhard for introducing me to Eileen.
( What is the liklihood that it is not mere coincidence that, conjointly, each of your first initials spell "WEB" ?!?)
You may distribute the ANT_DEMO.ZIP file in it's entirety for use in non-commercial ventures provided that it's source is acknowledged and provided that the template or the other files included in the zip file are not changed in any way. Under no circumstances may copies be sold or incorporated in other materials which are sold without prior permission from the author, Jill Swift.
The ANT_HTML.ZIP file is available at a cost of $15. The ANT_PLUS.ZIP file (which contains the ANT_HTML tools in addition to the HTML to WYSIWYG utility and other features) is currently available for an additional $5. See the README.WRI file or contact me for more information. None of the ANT templates, nor any ANT zip file, other than the ANT_DEMO.ZIP file may be distributed by any method, except by the author, unless written permission is obtained from the author.
This software is distributed as is and no warranty of any kind is made. Please feel free to send any email to me at jswift@freenet.fsu.edu. No promises are made regarding responses, but I will try to respond to questions as promptly as possible.
Jill Swift
P. O. Box 213
Montgomery, Texas 77356
jswift@freenet.fsu.edu
November 16, 1994