WPIOWPTools Unit
Classes
This unit contains the reader and writer classes to support WPTools (*.WPT) files.
Format Description:
 <!WPTools_Format V=500 -->                              at start of chapter
 <element name=& kind=? range?>...</head>   encapsulate a header or footer
 <pstyle base=? name=? nr=? wpsty="?"/>                    to define a par style
 <cs nr=? wpsty=[[?]]/>                              defines a character attribute
 <c nr=?/>                               use the character attr "nr" from now on
 <div>...</div>                    for paragraph text (also table, td, tr ...)
 <txtobj>...</txtobj>                       for embeded objects text
 <BEGIN Tag=X>...<END Tag=X>               for links and span fields

 Parameters: "wpsty" - the style definition as regular WPCSS string in [[  ]]
             "wsty"  - the style definition as abbreviated WPCSS string in [[  ]]
 Binary values<32 are ignored in the input file (they must be encoded as &N;)

The WPTools format is very similar to HTML and can be opened by most HTML readers. They will see at least the text without formatting. Tables are usually recognized.
So you are usually able to use your favorite index tool which handles HTML to index text which was saved in WPTools format!

In contrast to XML the WPTools format does not require exact (XHTML) tag nesting since this would work against several features, such as bookmarks, fields and links which can span different tag levels.

The WPTools format is compact - but still 'human readable'.
The style properties can be written using the standard names (wpsty="..") or abbreviated (wsty="").
Usually the styles are enclosed in double brackets to avoid problems if they contain other strings. The style definition works from top to bottom, this means the WPTools format does not require any special header.

Another advantage of the WPTools format is that text blocks can be simply appended to each other to actually combine the text. You cannot do this with RTF, HTML or XML!
Like HTML the WPTools format is streamable - text can be formatted as it is read from the file (exception: Tables)

Classes
TWPTOOLSReader 
TWPTOOLSWriter 

Category
WPTools Format


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com