TRANSLATION HTML; LINELENGTH 78; COUNTERS ItemCounter : Rank of List_Item; AnchorCounter : Set 1 on BODY Add 1 on Anchor; CONST TmpFileName = 'test'; TmpFileExt = '.tmp'; TmpFileDir = '/tmp/'; DoubleQuote = '"'; VAR OUT_AnchorCounter : Value(AnchorCounter); TmpFile : TmpFileDir TmpFileName TmpFileExt; RULES HTML : BEGIN Create '\12' After; END; HEAD: BEGIN Create in TmpFile '\12' After; END; Document_URL: BEGIN Create In TmpFile 'The URL of the document is: '; Create Attributes; Create In TmpFile '\12' After; {Waiting for a change of HTML.S} Remove; END; TITLE: BEGIN Create '\12\12' After; END; ISINDEX: BEGIN Remove; END; BASE: BEGIN Create IN TmpFile 'The base of the document is: '; Create Attributes; Create IN TmpFile '\12' After; END; Styles:BEGIN END; StyleRule: BEGIN END; SCRIPT: BEGIN END; META: BEGIN Remove; END; LINK: BEGIN Remove; END; BODY: BEGIN Indent +3; Indent -3 After; Create '\12\12' After; Create '-------------------------\12' After; Create 'List of References\12\12' After; Include '/tmp/test.tmp' After; END; H1: BEGIN Create '\12'; Indent -3; Indent +3 After; if not within Preformatted Create '\12' After; END; H2: BEGIN Create '\12'; if not within Preformatted Create '\12' After; END; H3: BEGIN Create '\12'; Indent +3; Indent -3 After; if not within Preformatted Create '\12' After; END; H4: BEGIN Create '\12'; Indent +6; Indent -6 After; if not within Preformatted Create '\12' After; END; H5: BEGIN Create '\12'; Indent +9; Indent -9 After; if not within Preformatted Create '\12' After; END; H6: BEGIN Create '\12'; Indent +12; Indent -12 After; if not within Preformatted Create '\12' After; END; BaseFont: BEGIN Remove; END; BR: BEGIN Create '\12'; Remove; END; Italic_text: BEGIN END; Bold_text: BEGIN END; Teletype_text: BEGIN END; Underlined_text: BEGIN END; Struck_text: BEGIN END; Big_text: BEGIN END; Small_text: BEGIN END; Subscript: BEGIN END; Superscript: BEGIN END; Emphasis: BEGIN END; Strong: BEGIN END; Def: BEGIN END; Code: BEGIN END; Sample: BEGIN END; Keyboard: BEGIN END; Variable: BEGIN END; Cite: BEGIN Create DoubleQuote; Create DoubleQuote After; END; Font_: BEGIN Remove; END; Applet: BEGIN Create Attributes; Remove; Create '\12' After; END; Parameter: BEGIN Remove; END; #ifdef COUGAR Object: BEGIN Create Attributes; Remove; Create '\12' After; END; #endif Paragraph: BEGIN Create '\12'; Create '\12' After; END; Pseudo_paragraph: BEGIN Create '\12'; Create '\12' After; END; TEXT_UNIT: BEGIN IF *Style\240 and not Within HEAD BEGIN Create ''; Create '' After; END; IF *Class and not Within HEAD BEGIN Create ''; Create '' After; END; IF Within Text_Area Remove; IF Within Text_Input Remove; END; Definition_List: BEGIN Create '\12'; Indent +3; Indent -3 After; END; Term: BEGIN Create '\12' After; END; Definition: BEGIN Indent +5; Indent -5 After; Create '\12' After; END; Unnumbered_List: BEGIN Create '\12'; Indent +3; Indent -3 After; END; Numbered_List: BEGIN Create '\12'; Indent +3; Indent -3 After; END; Address: BEGIN Create Attributes; Create '\12' After; END; Menu: BEGIN Create '\12'; Create '\12\12' After; END; Directory: BEGIN Create '\12'; END; List_Item: BEGIN Create Attributes; Indent +3; Indent -3 after; Create '\12' After; END; Preformatted: BEGIN NoLineBreak; Create Attributes; Create '\12' After; END; Horizontal_Rule: BEGIN Create '-----------------------------\12'; Remove; END; Form: BEGIN Create '
\12' After; END; Option_Menu: BEGIN Create '\12\12' After; END; Option: BEGIN Create '\12