This script converts an RTF file to DTBook XML, and then validates the result.
An RTF file. To ensure correctness of the DTBook output, make sure to follow the RTF authoring guidelines.
A DTBook file, which may or may not be valid - be sure to check the result of the validation pass!
The following mapping between RTF styles and DTBook elements is explicitly supported.
RTF style names appear in bold; opening DTBook tags and attributes in HTML code.
| Normal |
<p>
|
| Heading 1 through Heading 6 |
<h1> through <h6>, with relevant <levelx> section wrappers added. Nesting must proceed in natural DTBook order.
|
| Page numbers |
<pagenum>
|
| Block Text |
<blockquote><p>
|
| Lists | Nesting supported:
|
| Tables | Simple tables are supported, using basic <table> and <tr> elements.
|
| Footnotes |
<noteref>, <note>
|
| Caption | If beside an image, an <imggroup> is created, with a dummy <img> tag and <caption> tag for the text. |
| Page Number |
<pagenum>
|
| italic/underline |
<em>
|
| bold |
<strong>
|
| superscript |
<sup>
|
| subscript |
<sub>
|
| HTML Code |
<code>
|
The documents linked below are parts of the Transformer technical documentation. These are developer and systems-administrator centric documents.