Previous | Table of Contents | Next |
In writing this book, I used two kinds of style notation. Most of the styling is done using Microsoft Words built-in style tools and a style sheet provided by MIS:Press. Some of the information, like Notes, Output, Warnings, and Sidebars, uses markup notation very similar to XML. Notes, for instance, started with <NOTE> and ended with </NOTE>. Although these solutions work reasonably well, there are many ways they could improve. XML addresses most of those needs, simplifying the style sheet structure and opening up new media to this document at the same time.
The styles defined in Word are a combination of structural information and formatting information, as shown in Table 6.1.
Style | Usage | |
---|---|---|
TOC0 CT | Chapter number and title. This text will be used in table of contents when generated. | |
TOC1 A | A headthe top level of headings in a chapter. This text will be used in table of contents when generated. | |
TOC2 B | B headthe level of headings under A heads. This text also appears in table of contents. | |
C | C headlevel below B. Not in table of contents. | |
D | D headlevel below C. Not in table of contents. | |
E | E headlevel below D. Not in table of contents. | |
BT | Body textfirst paragraph of text after a header, icon, list, figure caption, or other free-standing graphic. Not indented. | |
BT INDENT | Body text following a BT element. Indented. | |
BL/NL1 TOP | Bulleted or numbered listtop line. (Formatted with extra space above.) | |
BL/NL2 MID | Bulleted or numbered listmiddle lines. (Formatted with no extra space above or below.) | |
BL/NL3 BOT | Bulleted or numbered listbottom line. (Formatted with extra space below.) | |
GL | Glossary textword defined should be in bold, definition in normal text. | |
CC1 TOP | First line of multiline code listing. Formatted with extra space above. | |
CC2 MID | Middle lines of multiline code listing. No extra space above or below. | |
CC3 BOT | Last line of multiline code listing. Formatted with extra space below. | |
CC4 SINGLE | Single line of multiline code listing. Formatted with extra space above and below. | |
ICON | Icon textused in combination with markup (<NOTE>, <WARNING>, etc.) to identify text that needs to be called out from body text. | |
FG | Figure captionFigure chapterNum.FigureNum should be in bold, rest of text plain. | |
LC | Listing captiongoes above code listing. | |
TBC | Table captiongoes above table. | |
TBH | Table headsuse above each column. | |
TB | Table body. | |
UL | Unnumbered list. | |
SN | Source notesfootnotes or notes at bottom of table. |
The structures defined with markup are mostly icons and bullets. Bullets are entered as <b> on PCs to avoid collisions between operating systems. Note icons are indicated as <NOTE>. A few structures are indicated with simple formatting. Keystrokes and menu items are supposed to be in bold, and titles are in italic.
Even though the current model has worked well for MIS:Press over the years, we may be able to indicate document structures more easily and more clearly in XML. Unless they begin to use XML-enabled publishing tools, this effort wont do much for them, but it may shed some light on how to restructure formatting styles into structural styles. Structural styles can escape from some of the redundancy that is required to make formatting styles work and make converting this document from format to format easier.
Previous | Table of Contents | Next |