Text
Characters are 8-bit, in the Windows ANSI code page. The text of the main document is
one run from fcMin to fcMac, followed by the other stories in
the order given by the character counts in the FIB. A paragraph ends with
0x0D, a table cell with 0x07.
Formatting pages
Character formatting is stored in 512-byte pages, reached through a bin table of FCs with 2-byte page numbers. A page has the positions of each run (4 bytes each), then one byte per run that is half the offset of the run’s properties, then the properties. The page’s last byte is the number of runs. A run’s properties are a size byte and fixed character properties: the first byte holds flags, bit 0 bold and bit 1 italic, and the top bit hidden text.
Paragraph pages have the same layout with one difference: each run has a one-byte
offset (half the entry’s position in the page) and no paragraph height, so a page holds
crun + 1 positions, crun offset bytes and the entries. An entry
is a size byte counting 16-bit words (the entry takes 2 × size bytes after
it), the style byte, six bytes of paragraph height (the same PHE that Word 6
keeps in its page index), and then property codes. Checked against the 83 Word 1.x and 2.0
files on one machine: the codes are those of Word 6,
one byte of code and an operand whose size the code decides, in particular
24 (the paragraph is in a table) and 25 (it ends a table row).
In a table, each cell is its text, a paragraph mark (0x0D) and then a cell
mark (0x07); both belong to the paragraph that has code 24. The row ends with
a paragraph made of those two marks alone that has codes 24 and 25 and, with the column
definition, a property whose code (such as 148 or 232) this site does not interpret. The
viewer builds the table from these flags. The style sheet of these versions is not
interpreted.