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 :-
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 :-
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 :-
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 :-
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"
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)"
"NB "non-breaking spaces"
"SUPER and SUB"
a single text file by
© 1997-2001 John A Fotheringham