WordPerfect

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Extracting plain-text content)
(Added new Mac PRONOM ID's and Type/Creator codes)
Line 5: Line 5:
 
|extensions={{ext|wpd}}, {{ext|wp}}, {{ext|wp4}}, {{ext|wp5}}, {{ext|wp6}}, {{ext|wp7}}
 
|extensions={{ext|wpd}}, {{ext|wp}}, {{ext|wp4}}, {{ext|wp5}}, {{ext|wp6}}, {{ext|wp7}}
 
|mimetypes={{mimetype|application/vnd.wordperfect}}
 
|mimetypes={{mimetype|application/vnd.wordperfect}}
|pronom={{PRONOM|fmt/949}}, {{PRONOM|x-fmt/393}}, {{PRONOM|x-fmt/394}}, {{PRONOM|x-fmt/203}}, {{PRONOM|x-fmt/44}}, {{PRONOM|fmt/892}}
+
|pronom={{PRONOM|fmt/949}}, {{PRONOM|x-fmt/393}}, {{PRONOM|x-fmt/394}}, {{PRONOM|x-fmt/203}}, {{PRONOM|x-fmt/44}}, {{PRONOM|fmt/892}}, {{PRONOM|fmt/1220}}, {{PRONOM|fmt/1221}}, {{PRONOM|fmt/1222}}
 
|released=1979
 
|released=1979
 +
|type code={{Type Code|WPD2}}, {{Type Code|WPD3}}, {{Type Code|WPD4}}
 
}}
 
}}
 
'''WordPerfect''' is a word processor that was extremely popular in the 1980s and 1990s. It was first developed on a Data General computer at Brigham Young University in 1979, but later ported to many different operating systems, and was most popular in its PC/MS-DOS version. Currently, only the Windows version is being developed and maintained, though WordPerfect never achieved the dominance in that platform that it had in DOS.
 
'''WordPerfect''' is a word processor that was extremely popular in the 1980s and 1990s. It was first developed on a Data General computer at Brigham Young University in 1979, but later ported to many different operating systems, and was most popular in its PC/MS-DOS version. Currently, only the Windows version is being developed and maintained, though WordPerfect never achieved the dominance in that platform that it had in DOS.
Line 23: Line 24:
 
==Detecting WordPerfect files==
 
==Detecting WordPerfect files==
 
The "signature bytes" at the beginning of a WordPerfect file are (hex) {{magic|FF 57 50 43}}, which spells "WPC" after a flag character #255.
 
The "signature bytes" at the beginning of a WordPerfect file are (hex) {{magic|FF 57 50 43}}, which spells "WPC" after a flag character #255.
 +
 +
Creator Code on Macintosh is "{{magic|WPC2}}"
  
 
==Extracting plain-text content==
 
==Extracting plain-text content==

Revision as of 07:37, 12 May 2019

File Format
Name WordPerfect
Ontology
Extension(s) .wpd, .wp, .wp4, .wp5, .wp6, .wp7
MIME Type(s) application/vnd.wordperfect
PRONOM fmt/949, x-fmt/393, x-fmt/394, x-fmt/203, x-fmt/44, fmt/892, fmt/1220, fmt/1221, fmt/1222
Type Code WPD2, WPD3, WPD4
Released 1979

WordPerfect is a word processor that was extremely popular in the 1980s and 1990s. It was first developed on a Data General computer at Brigham Young University in 1979, but later ported to many different operating systems, and was most popular in its PC/MS-DOS version. Currently, only the Windows version is being developed and maintained, though WordPerfect never achieved the dominance in that platform that it had in DOS.

Contents

Related formats

There are separate articles for these formats:

Introduction

Name for both word processing application and file format.

Printer definitions

WordPerfect uses so called 'printer definitions' for "pretty printing".

Detecting WordPerfect files

The "signature bytes" at the beginning of a WordPerfect file are (hex) FF 57 50 43, which spells "WPC" after a flag character #255.

Creator Code on Macintosh is "WPC2"

Extracting plain-text content

If you're a programmer attempting to get a program to extract the plain text out of a WordPerfect document, and are not interested in the fancy formatting and other features, this is a fairly simple process; just make the program skip the parts that are not text. When reading through the characters of the file in order, this pseudocode manipulates them (using decimal values of the characters/bytes):

For each character c, if its value is:
  #128, #160: treat as space ' '
  #169..#171, #173, #174: treat as dash '-'
  #192..#236: skip ahead and ignore all characters until another occurrence
    of character c is found; resume at the following character
  #0..#31, #129..#159, #161..#168, #172, #175..#191, #237..#255: ignore (control characters)
  else treat as regular text character

Software

Developer utilities

References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox