{ Author: I. Vatton 1994-2002 } { If variable XML is set, the document is saved in the XHTML syntax. Otherwise, it is saved in plain HTML } TRANSLATION HTML; LINELENGTH 78; CONST DoubleQuote = '"'; RULES #ifdef XML Document: BEGIN Create '\12'; END; #endif HTML : BEGIN Use MathMLT for MathML; Use SVGT for SVG; Use XLinkT for XLink; Create PI Before; #ifdef XML Create '\12'; Create '\12' After; END; HEAD: BEGIN Create '
\12' Before; Indent +2 Before; Indent -2 After; Create '\12\12' After; END; Document_URL: BEGIN Remove; END; TITLE: BEGIN Create '';
Create '
' After;
END;
Sample:
BEGIN
Create '';
Create '' After;
END;
Keyboard:
BEGIN
Create '';
Create '' After;
END;
Variable:
BEGIN
Create '';
Create '' After;
END;
Cite:
BEGIN
Create '';
Create '' After;
END;
ABBR:
BEGIN
Create '';
Create '' After;
END;
ACRONYM:
BEGIN
Create '';
Create '' After;
END;
Font_: BEGIN
Create '';
Create '' After;
END;
Applet: BEGIN
Create '\12' After;
END;
Parameter: BEGIN
Create '\12';
#else
Create '>\12';
#endif
END;
Object: BEGIN
Create '\12' After;
END;
INS: BEGIN
Create '';
Create '' After;
END;
DEL: BEGIN
Create ''; Create '' After; END; BDO: BEGIN Create ''; Create '' After; END; Paragraph: BEGIN if not within List_Item and not within Definition and not first Create '\12'; Create '
'; Create '
\12' After; END; Pseudo_paragraph: BEGIN if not last Create '\12' After; END; TEXT_UNIT: BEGIN IF Within Text_Input Remove; END; Definition_List: BEGIN Create ''; Indent Suspend; Indent Resume After; Create '\12' After; END; Horizontal_Rule: BEGIN Create '
\12'; Indent +2; Indent -2 After; Create '\12' After; END; PICTURE_UNIT: BEGIN if IsInput BEGIN Create ''; #else Create '>'; #endif END; if Immediately within Object Remove; if NOT Immediately within Object AND NOT IsInput BEGIN Create ''; #else Create '>'; #endif END; if NOT within Paragraph AND NOT Immediately within Object AND NOT within Pseudo_paragraph Create '\12' After; END; SVG_Image: BEGIN if IsInput BEGIN Create ''; #else Create '>'; #endif END; if Immediately within Object Remove; if NOT Immediately within Object AND NOT IsInput BEGIN Create ''; #else Create '>'; #endif END; if NOT within Paragraph AND NOT Immediately within Object AND NOT within Pseudo_paragraph Create '\12' After; END; SVG_ImageContent: BEGIN Remove; END; Embed_: BEGIN if NOT Immediately within Object AND NOT IsInput BEGIN Create ''; END; if NOT within Paragraph AND NOT Immediately within Object AND NOT within Pseudo_paragraph Create '\12' After; END; Embed_Content: BEGIN Remove; END; Anchor: BEGIN Create ''; Create '' After; END; MAP: BEGIN Create '\12' After; END; map: BEGIN Create '\12' After; END; AREA: BEGIN Create '\12'; #else Create '>\12'; #endif END; { ---- Tables ---- } Table: BEGIN Create '\12