$_$_CHANGE_POLICY Document author : John A Fotheringham $_$_CHANGE_POLICY Document Subject : Tag Manual for JafSoft text conversion utilities $_$_CHANGE_POLICY Document Company name : JafSoft Limited $_$_TITLE Tag Manual for JafSoft text conversion utilities $_$_CHANGE_POLICY Highlight Definition Text : Yes $_$_CHANGE_POLICY Bullet Char : '-' $_$_CHANGE_POLICY Minimum TABLE column separation : 2 $_$_CHANGE_POLICY Default TABLE Header cols : 1 $_$_CHANGE_POLICY Default TABLE Border size : 0 $_$_CHANGE_POLICY Default TABLE cell padding : 2 $_$_CHANGE_POLICY Cross-refs at level : 1 $_$_CHANGE_POLICY Preserve underlining of headings : no $_$_DEFINE_HTML_FRAGMENT HTML_HEADER
The most recent version of this document can always be found online
Converted from
a single text file by AscToHTM © 1997-2004 John A. Fotheringham |
...markup or
...
markup (see the discussion about the policy
[[HYPERLINK POLICY,"Use ..
markup"]] to see why the former
is used as default).
BEGIN/END_COMMA_DELIMITED_TABLE
===============================
Type: Directive
Description: Delimits a table of comma-delimited data
Applies to: Text analysis
See policy: (none)
Syntax:
$_$_BEGIN_PRE
$_$_BEGIN_COMMA_DELIMITED_TABLE
...
(lines of comma-delimited data)
...
$_$_END_COMMA_DELIMITED_TABLE
$_$_END_PRE
The BEGIN_COMMA_DELIMITED_TABLE ... END_COMMA_DELIMITED_TABLE directives
can be used to delimit a series of comma-delimited data values that should
be interpreted as a table (e.g. data originally exported from a
spreadsheet such as Excel)
The presence of these directives overrides any value set in the
[[HYPERLINK POLICY,"Attempt table generation"]] policy
BEGIN/END_CONTENTS
==================
Type: Directive
Description: Delimits a contents list in the original source file
Applies to: Text analysis. Mainly HTML generation.
See policy: (none)
Syntax:
$_$_BEGIN_PRE
$_$_BEGIN_CONTENTS
...
(original contents list)
...
$_$_END_CONTENTS
$_$_END_PRE
The BEGIN_CONTENTS ... END_CONTENTS directives are used to bracket a
contents list in the source document. The program will attempt to
automatically detect the presence and location of any contents list
in the document, but the algorithm can be problematic.
Use this markup only when the document contains a contents list that
the program fails to detect correctly.
BEGIN/END_DELIMITED_TABLE
=========================
Type: Directive
Description: Delimits a table of delimited data
Applies to: Text analysis
See policy: (none)
Syntax:
$_$_BEGIN_PRE
$_$_BEGIN_DELIMITED_TABLE [...markup. BEGIN/END_HTML ============== Type: Directive Description: Delimits some HTML to be copied to the output Applies to: HTML generation only See policy: (none) Syntax: $_$_BEGIN_PRE $_$_BEGIN_HTML ... (block of HTML code) ... $_$_END_HTML $_$_END_PRE $_$_BEGIN_HTML $_$_END_HTML The BEGIN_HTML ... END_HTML directives are used to bracket actual HTML in the source document. The bracketed HTML will be transcribed to the output file unconverted. This device will allow you to embed images, tables and other HTML constructs not normally generated by AscToHTM. This is how the image to the right has been added to the HTML version of this document. If you simply wish to insert a single line of HTML, the [[POPUP HTML_LINE]] tag offers a more compact form. For in-line HTML use the [[POPUP HTML]] in-line tag. BEGIN/END_IGNORE ================ Type: Directive Description: Delimits a section of input to be ignored Applies to: All (ignored) See policy: (none) Syntax: $_$_BEGIN_PRE $_$_BEGIN_IGNORE ... (text to be ignored) ... $_$_END_IGNORE $_$_END_PRE This markup can be used to delimit a section to be wholly ignored. Any markup and tags in the ignored section will have no effect. BEGIN/END_PRE ============= Type: Directive Description: Delimits a region of pre-formatted ASCII text Applies to: Text analysis See policy: [[HYPERLINK POLICY,"Minimum automatic
size"]] Syntax: $_$_BEGIN_PRE $_$_BEGIN_PRE ... (lines of pre-formatted ASCII text) ... $_$_END_PRE $_$_END_PRE The BEGIN_PRE ... END_PRE directives are largely replaced by the BEGIN/END_TABLE, BEGIN/END_CODE and BEGIN/END_DIAGRAM directives. They are maintained for backwards compatability, and have the same effect as the BEGIN/END_DIAGRAM commands BEGIN/END_TABLE =============== Type: Directive Description: Delimits a plain text TABLE Applies to: Text analysis See policy: (none) Syntax: $_$_BEGIN_PRE $_$_BEGIN_TABLE ... (plain text table with data all aligned) ... $_$_END_TABLE $_$_END_PRE The BEGIN_TABLE ... END_TABLE directives are used to bracket a plain text table in the source text. The program will then attempt to analyse this table as best it can. This is explained more in the [AscToTab Doco]. Inside this section you can add other TABLE pre-processor commands to tailor the HTML generated (see [[GOTO The TABLE commands]]). BEGIN/END_USER_TABLE ==================== Type: Directive Description: Delimits a user-tagged table Applies to: Text analysis See policy: (none) *New function* Syntax: $_$_BEGIN_PRE $_$_BEGIN_USER_TABLE ... $_$_COLUMN_DETAILS ... $_$_NEW_ROW $_$_NEW_CELL ... contents of cell (1,1) $_$_NEW_CELL ... contents of cell (1,2) $_$_NEW_ROW $_$_NEW_CELL ... contents of cell (2,1) $_$_NEW_CELL ... contents of cell (2,2) ... $_$_END_TABLE $_$_END_PRE The BEGIN_USER_TABLE ... END_TABLE directives are used to bracket a series of tags that describe in detail the layout of a table. The tags used inside the section are $_$_COLUMN_DETAILS $_$_NEW_ROW $_$_NEW_CELL This approach is only really suitable for use when the files being converted by AscToRTF are themselves being generated by a software package that already knows the table structure. Here's a sample of a user-tagged table (with blank lines added for clarity) :- $_$_BEGIN_PRE $_$_BEGIN_USER_TABLE C,1 in $_$_COLUMN_DETAILS 1,,,L, 2 in $_$_COLUMN_DETAILS 2,,,C, 1 ins $_$_TABLE_BORDER 1 $_$_NEW_ROW HEAD $_$_NEW_CELL Substance (units) $_$_NEW_CELL Year Sampled $_$_NEW_ROW DATA $_$_NEW_CELL Alpha emitters (pCi/L) $_$_NEW_CELL 1999 $_$_NEW_ROW DATA $_$_NEW_CELL Asbestos (MFL) $_$_NEW_CELL 1993 $_$_END_TABLE $_$_END_PRE Here's how this table appears when converted into the current format $_$_BEGIN_USER_TABLE C,1 in $_$_COLUMN_DETAILS 1,,,L, 2 in $_$_COLUMN_DETAILS 2,,,C, 1 ins $_$_TABLE_BORDER 1 $_$_NEW_ROW HEAD $_$_NEW_CELL Substance (units) $_$_NEW_CELL Year Sampled $_$_NEW_ROW DATA $_$_NEW_CELL Alpha emitters (pCi/L) $_$_NEW_CELL 1999 $_$_NEW_ROW DATA $_$_NEW_CELL Asbestos (MFL) $_$_NEW_CELL 1993 $_$_END_TABLE See also:- - [[goto COLUMN_DETAILS]] - [[goto NEW_ROW]] - [[goto NEW_CELL]]. BR (line break) =============== Type: In-line Description: Signals a forced line break Applies to: HTML and RTF generation See policy: (none) Syntax: $_$_BEGIN_PRE [[OT]]BR[[CT]] $_$_END_PRE This tag has no attributes. CHANGE_POLICY ============= Type: Directive Description: Changes one of the program's "policies" Applies to: All See policy: (none) Syntax: $_$_BEGIN_PRE $_$_CHANGE_POLICY: $_$_END_PRE where and form a policy line as it would appear in a policy file, and (usually) as it appears in the [Policy Manual]. NOTE: This feature has the potential to cause mayhem, and as such is offered to users on a "as is" basis. That is, we offer no support for getting this feature to have the effect a user may desire. This directive allows you change a particular policy in part of a document. This is a potentially powerful feature, allowing you to tailor the conversion of your file *in different sections of that file*, or to embed the policy particular to a file in commands inserted at the top of the file itself. For example the following would all be valid directives $_$_BEGIN_PRE $_$_CHANGE_POLICY Background Colour : red $_$_CHANGE_POLICY Ignore multiple blank lines : Yes $_$_END_PRE Although how and when they would take affect will depend on the policy. For example, the background colour would only take effect if splitting the file up, and only on the next file generation. This works, BTW, so if anyone wants to split a file into many pages, all different colours, then be my guest. There are a *many* caveats to this behaviour :- - *Not all policies are supported* Not all policies may be changed in this way. In particular policies that open other policy files are not supported. Even if a policy if "changed", it does not follow that changing the policy will have an effect. - *analysis policies* It is unlikely that this feature can be sensibly used to influence the analysis of file, other than when placed at the top of the file only. If such a manner it is simply an alternative to using a separate policy file. - *output policies* Output policies are referenced at different times. Only those that are referenced *after* the line is read from the source file may be influenced, thus things like output file name may have no effect. - *toggleable policies* Not all policies once changed, can be changed back. This is particularly of policies that contain values to be added to a list. This is an issue that may be addresses in later versions. - *unpredictable behaviour* Messing with policies can cause unpredictable behaviour. For example if you alter the section splitting parameters, then the chances of a section cross-reference elsewhere in the document being calculated as a correct hyperlink diminishes. *That's why this feature is offered UNSUPPORTED* - *readahead buffer* To further complicate matters, the software uses a readahead, write behind buffer which means that you may need to experiment with the placing of your policy change to within 40 lines (the size of the buffer). This problem is alleviated since version [[TEXT 3.2]]. COLUMN_DETAILS ============== Type: Directive Description: Defines a column in a user-tagged table Applies to: Tagged table generation inside a BEGIN/END_USER_TABLE section See policy: (none) *New function* Syntax: $_$_BEGIN_PRE $_$_COLUMN_DETAILS , , $_$_END_PRE where $_$_BEGIN_TABLE This is the column number, starting at 1 This is the alignment of data in this column. If omitted this will be auto-detected, but you can choose to set it to L(eft), R(ight) or C(enter) The width of the column. If omitted the width will be calculated. As with the on the table the width can be specified in points, inches or centimetres. If a width is set too narrow, it may be ignored. $_$_END_TABLE In a user tagged table section BEGIN/END_USER_TABLE the COLUMN_DETAILS commands are used to define characteristics of each column in the table. See also :- - [[goto BEGIN/END_USER_TABLE]] - [[goto NEW_ROW]] - [[goto NEW_CELL]] CONTENTS_LIST ============= Type: Directive or in-line, but better as a directive. Description: Defines the location to place the contents list (if any). By default the contents list is placed at the top of the document before any other end-user text. Applies to: Mostly HTML generation See policy: (none) Syntax: $_$_BEGIN_PRE $_$_CONTENTS_LIST ,