Introduction
These are the documents saved by WordPerfect for the Macintosh, in versions 1.x, 2.x, 3.0 to 3.5 and 3.5e. Like the DOS files they hold text with formatting codes between the characters. The layout changed between 1.x and 2.x, so two layouts are in use.
Neither layout has a public specification. These pages follow libwpd, the open-source WordPerfect reader used by LibreOffice, and say where something is not known. A manual for the 3.5e format circulates, but its cover marks it confidential, and it was not used.
Structure
Version 1.x writes a headerless stream close to
WordPerfect 4.2 for DOS: the same byte
ranges, but different lengths for the multiple-byte functions. Versions 2.x and later
write the 16-byte WPC header with file type 0x2C, then a Macintosh resource
fork, then a stream with codes of their own: single-byte functions, fixed-length groups
and variable-length groups. Numbers inside the Macintosh streams are big-endian (high
byte first).
16WPC header signature, document pointer, file type 0x2C, version, encryption2.x and laternResource fork the pictures of graphics boxes (PICT and WBOX resources)up to the document pointernDocument text, single-byte functions, fixed-length and variable-length groupsfrom the document pointer
The file header and encryption page covers the header, the versions, how to tell the layouts apart and the password scrambling; the function codes page every code libwpd reads in both layouts.
Not described
Known, not yet covered
- Reference: the 3.5e (“4.0”) format manual that circulates, listed by WordPerfect for DOS Updated. Its cover marks it confidential, so it was not used and the codes it would settle are unnamed on the function codes page.
- Viewer: the explorer has no WordPerfect viewer. A 2.x or later
file would show as raw bytes with its
WPCsignature; a 1.x file has no signature. The codes libwpd reads are listed, so a viewer can be built.
Unknown
- Reference: the single-byte functions other than those libwpd
names, the fixed-length groups it names as not known (
C4toC7,C9toCC,CE,CF), the style groupDB, the meaning of the control characters below0x20in 2.x and later, and the contents of the groups libwpd skips by length (D3,D4,D7,DDtoE1,E3toEF). - Reference: the byte order of the WPC header’s own fields in Macintosh files, which no source states.
- Reference: the 1.x functions that libwpd skips by their lengths (version 1.x).
Variants
- WordPerfect 4.2 and earlier for DOS – a headerless stream of text and function codes, described by WordPerfect Corporation’s own 1986 document
- WordPerfect for Macintosh – version 1.x headerless; versions 2.x to 3.5e with a WPC header and an embedded resource fork
- WordPerfect 5 – a WPC header, prefix packets, then the document area (DOS 5.0 and 5.1, Windows 5.1 and 5.2)
- WordPerfect 6 and later – a WPC header, an index header and packets; the layout kept by every later version
Links
Software
- LibreOffice Writer – free office suite’s word processor, which imports WordPerfect for Macintosh documents through libwpd (Windows, macOS, Linux)
Developers
- libwpd – library that reads WordPerfect documents including the Macintosh ones, used by LibreOffice (C++)
Reference
- libwpd source code –
WP1*files for version 1.x,WP3*files for 2.x and later, andWPXHeader - WordPerfect for DOS Updated: software and file formats – lists the surviving format documents, including the confidential Macintosh 3.5e manual that is not used here