[02.05.06 06:48:24]
Text2Html-Documentation (Author: Thomas Schneider, April/2006)

1. Introduction

The tool text2html tries to convert a given text file with known formatting
elements into a html file. The html file will be generated inside the same
directory as the text file with extension .html. The style elements
are grouped into two types:
  1. structure elements
  2. formatting elements
All style elements have to be defined inside the property file text_styles.properties
and inside the file HtmlLogbook.properties. In the first file you define
the text style, in the second the html style.
The structure elements structure the text into headers, lists, tables,
standard (=info), comments, warnings, errors. Errors and warnings are useful
for formatted logfiles (see tsl.text.LogBook). This type only defines a
beginning style. The end of the style is always the newline (\n).
F.e.: paragraph2=--
The formatting elements only format each given line of text. Each style has
to have start and an end element (like brackets).
F.e.: link=<-->
The <--> expression is the devider between the starting element [ and the
ending element ].
The main class tsl.text.TextFormat reads its configuration elements (styles)
through the property file text_styles.properties, gives each line a format
and prints each line through tsl.text.HtmlLogbook.

2. Styles/Formats [0.062 sec]

2.1. Text Structures

Style Description
Header Header element is the title of the document
Footer Footer is a summary at the end of the document
Paragraph1 Header1 in html, has to have a separator line
Paragraph2 Header2 in html, has to have a separator line
Paragraph3 Header3 in html, has to have a separator line
Info Standard text
Trace grayed text (like comments!)
Warning colored text (warning messages)
Error colored text (error messages)
List listing elements
NList numbered list elements

2.2. Formatting Elements [0.031 sec]

Style Description
info1 some style see HtmlLogbook
info2 some style see HtmlLogbook
info3 some style see HtmlLogbook
link will be shown as url

2.3. User defined Formatting Elements [0.047 sec]

To define own style elements (only formatting elements) you can change the two
property files
  1. text_styles.properties
  2. HtmlLogbook.properties
Each text style, you define inside the first property file must have a corresponding
element in the second property file.
[02.05.06 06:48:24]
Text2Html-Documentation (Author: Thomas Schneider, April/2006) [errors: 0, warnings: 0, 1-headers: 2, lines: 54]
1