Documentation for the AscToHTM conversion utility |
This documentation can be downloaded as part of the documentation set in .zip format (370k)
The preprocessor was introduced to allow users more flexibility in the HTML they generate. As such it allows AscToHTM to be used as a HTML authoring tool, as opposed to a simple text conversion or migration tool.
The preprocessor looks for
- "Directives". These are lines that begin with a special character sequence. Presently this is "$_$_".
- "Tags" that are enclosed in "[[" and "]]".
A separate document - the Tag manual - has been produced to describe the pre-processor commands in detail. That document replaces much of the contents that were originally in this section and the next.
Some commands may be either tags or directives, this is explained more in the tag manual.
The pre-processor can be used to mark sections in your document so that AscToHTM will process them as you wish.
These include :-
"BEGIN/END_CODE"
"BEGIN/END_CONTENTS"
"BEGIN/END_DIAGRAM"
"BEGIN/END_HTML"
"BEGIN/END_IGNORE"
"BEGIN/END_PRE"
"BEGIN/END_TABLE"
"SECTION""BEGIN/END_COMMA_DELIMITED_TABLE"
"BEGIN/END_DELIMITED_TABLE"
Some commands can be used to control the contents of the HTML <HEAD> section. These attributes are largely non-visual, but may influence how the document is indexed (e.g. by search engines).
Commands include :-
"TITLE"
"DESCRIPTION"
"KEYWORDS"
"STYLE_SHEET"
"BASEHREF"To fully understand how titles are calculated, see the discussion in 5.6.1
These commands exist on a line by themselves. They either cause something to be executed at the point they occur, or are used to mark that location in the file in some way.
The commands include :-
"CONTENTS_LIST"
"HTML_LINE"
"INCLUDE"
"LINERULE"
"NAVIGATION_BAR"
"TOC"
A large number of delimiters influence the detection, analysis and generation of tables. These are discussed in the Tag manual in the The TABLE commands section.
The table commands include :-
"TABLE_BGCOLOR"
"TABLE_BORDER"
"TABLE_BORDERCOLOR"
"TABLE_CAPTION"
"TABLE_CELLPADDING"
"TABLE_CELLSPACING"
"TABLE_CELL_ALIGN"
"TABLE_COLO(U)R_ROWS"
"TABLE_CONVERT_XREFS"
"TABLE_EVEN_ROW_COLO(U)R"
"TABLE_HEADER_COLS"
"TABLE_HEADER_ROWS"
"TABLE_MAY_BE_SPARSE"
"TABLE_MIN_COLUMN_SEPARATION"
"TABLE_ODD_ROW_COLO(U)R""BEGIN/END_COMMA_DELIMITED_TABLE"
"BEGIN/END_DELIMITED_TABLE"
"TABLE_ALIGN"
"TABLE_IGNORE_HEADER"
"TABLE_LAYOUT"
The CHANGE_POLICY command allows policies as described in the Policy manual. You can read more about this in the Tag Manual under The CHANGE_POLICY command
The programs allows you to define "blocks" of text that can later be inserted or embedded wherever you want in the text. For more details read the Tag Manual section Definition blocks and variables
Commands include :-
"DEFINE/END_BLOCK and RESET_BLOCK"
"DEFINE_VARIABLE"
"EMBED_BLOCK"
"INSERT_BLOCK""SAVE_CONTEXT...RESTORE_CONTEXT"
New in version 4
It is possible to define blocks of HTML that the program will use instead of the HTML it normally produces in certain circumstances.
These blocks of HTML can themselves contain special HTML fragment tags to allow the HTML to be customized. For example the block HORIZONTAL_RULE can be used to replace the <HR> tag produced wherever lines are detected by a .gif of your choice. If you want this .gif to adopt suitable length and alignment (to match those in the original text) you can use the HTML fragment tags RULEWIDTH and RULEALIGN.
A full description of HTML fragments can be found in the Tag manual.
In-line tags are introduced in version 3.2. They allow you to place special codes in your source text to achieve effects that couldn't be done by converting plain text alone. As such they greatly enhance AscToHTM's ability to be used as a web authoring tool.
In-line tags are an extension of the preprocessor tags introduced in earlier versions. As the name implies, in-line tags may be placed "in line" with the source tag, giving greater flexibility for their use.
In-line tags are signified by the start and end delimiters "[[" and "]]", for example :-
[[HTML_COMMENT this will become an HTML comment]]
The whole tag must be contained within a single line of the source file, that is there cannot be any newline characters in the middle of a tag. You can have as many tags as you like on any given line, but they may not be nested.
In-line tags are fully documented in the Tag manual. A summary of some of the in-line tags available is given in 7.2.2.
This is a brief list of the available in-line tags. A fuller description of using in-line tags is available in the Tag manual
Tags include :-
"BR (line break)"
"COLO(U)R"
"CONTENTS_LIST"
"ENTITY"
"FONT"
"GOTO"
"HTML"
"HTML_COMMENT"
"HYPERLINK"
"LINKPOINT"
"SPACES"
"NB "non-breaking spaces"
"SUPER and SUB"
"TEXT"
"TIMESTAMP""TABLE_LAYOUT"
"FILENAME"
"FRACTION"
"IGNORE_THIS"
"VARIABLE"
"VERSION"
Converted from
a single text file by
AscToHTM © 1997-2001 John A Fotheringham |