SET File Format

SET File Format

A SET file is used only with DOS and not with Windows. It is a specialized document file containing the unique packet types described below that are used only in SET files. Refer to the Document File Format section of this manual for a description of document files and of non-unique packet types which will also be included in a SET file. The information in a SET file will be wholly contained within the document prefix. A SET file will not contain a document area.

Packet Type 129 (0x81)

Miscellaneous 1

This information cannot be changed outside of setup.

<beep flag>	default = 20 (0x14)

bit 0:	1 = beep on search failure

bit 1:	1 = beep on error

bit 2:	1 = beep on hyphenation

bit 3:	0 = side by side column display mode

bit 4:	1 = display comments (default = on)

bit 5:	1 = display summary (default = off)

bit 6:	1 = display detail of reveal codes (default = off)

bit 7:	1 = auto enter document information when file is saved

[hard return character]	default = 32 (0x20)

<display filename flag>	default = 1

Bits 0 and 1 are mutually exclusive.

bit 0:	1 = display filename

bit 1:	1 = display font

[time between backups]	default = 10 minutes

low byte = minutes

high byte = hours

<backup flag>	default = 2

bit 0:	1 = original document backup

bit 1:	1 = timed backup active

<available>	default = 1

<available>	default = −1

<default unit for conversion routines>

<horizontal position unit of status line>

<vertical position unit of status line>

<mnemonic menu selection attribute>	default = 0x0C (bold)

<keyboard speedup value (1-5)>	normal = 0, default = 5, NEC = 3

<system file flags>	set at startup from .trs

bit 0:	1 = fast save flag

bit 1:	1 = format retrieved documents for default printer

bit 2:	1 = merge codes display in document

bit 3:	1 = alternate keyboard

bit 4:	1 = set QuickMark

bit 5:	1 = merge code icon displayed

[document summary subject search string] x 20

[reserved]

[default document type that is used] x 21	during document management)

<graphics driver filename> x 13

<packet ID of external driver code>	default = 0

<graphics driver code ID>	default = 0

<graphics driver mode parameter>

bits 7-4:	used by WordPerfect

bit 7:	1 = internal text driver

bit 6-4:	undefined

bits 3-0:	used by external driver

bit 3:	1 = preserve DOS font

bit 2:	1 = preserve DOS palette

bit 1-0:	undefined

<graphics driver ID parameter>

bits 7-6:	used only by external driver

bit 7:	1 = saved font

bit 6:	1 = saved palette

bit 5:	1 = override EGA being set to CGA in colors menu if rows not = 25

bit 4:	1 = text driver successfully loaded

bit 3:	0 = normal attribute table

1 = dialog attribute table

bit 2:	0 = normal attribute table

1 = dialog attribute table

Text driver packet definitions:

<packet ID of graphics driver error messages>

<graphics driver error ID>

<video driver font metrics/information packet flags>

Information pending.

<packet ID of video driver font metrics/information>

<index of main entry>	used for marking during selection

<menu text of selected graphics driver> x 98

<text driver filename> x 13

<packet ID of text driver code>	default = 0

<reserved>

<text driver mode parameter>	default = 0x80

bits 7-4:	used by WordPerfect

bit 7:	internal text driver

bit 6-4:	undefined

bits 3-0:	used by external driver

bit 3:	1 = preserve DOS font

bit 2:	1 = preserve DOS palette

bit 1-0:	undefined

<text driver ID parameter>	default = 0

bits 7-6:	used only by external driver

bit 7:	1 = saved font

bit 6:	1 = saved palette

bit 5:	1 = override EGA being set to CGA in colors menu if rows not = 25

bit 4:	1 = text driver successfully loaded

bit 3:	0 = normal attribute table

1 = dialog attribute table

bit 2:	0 = normal attribute table

1 = dialog attribute table

<packet ID of text driver error messages packet>

<reserved>

<index of main entry>	used for marking during selection

<space to store menu text of selected text driver> x 98

<WordPerfect mouse resource file> x 13	default = "STANDARD.IRS"

[packet ID of mouse driver code in external file]	default = 2

[packet ID of mouse driver error packet]	default = 0

<index of main entry>	used for marking during selection

<ID information> x 98

<WordPerfect audio resource file> x 13	default = "STANDARD.ARS"

[packet ID of sound driver code in external file]

[packet ID of sound driver error packet]

<index of main entry>	used for marking during selection

<sound information> x 98

<file manager sort order>	default = 1

1 = short name

2 = extension

3 = date and time

4 = size

5 = long name

6 = type

7 = no sorting done

<file manager display>

bit 0:	1 = DOS filenames

bit 1:	1 = descriptive names and types

bit 2:	1 = indexed files

bit 3:	undefined

bit 4:	undefined

bit 5:	1 = descending sort

bit 6:	1 = WordPerfect documents only

bit 7:	1 = compressed print for list

<reserved>

<current view mode and print preview flags>	default = 8

bits 0-4:	view mode

bit 0:	1 = full page

bit 1:	1 = actual size

bit 2:	1 = 200% enlarged

bit 3:	1 = facing page

bit 4:	1 = thumbnails

bit 5:	available

bit 6:	1 = view graphics in black and white

bit 7:	1 = view text in black on white

<mouse menu mnemonic attribute>	default = redline

<mouse menu text attribute>	default = shadow

<menu bar mnemonic attribute>	default = redline

<menu bar text attribute>	default = shadow

Possible attribute values for previous four bytes:

0 = extra large (chapter heading)

1 = very large (heading)

2 = large (sub-heading)

3 = small print

4 = fine print

5 = superscript

6 = subscript

7 = outline

8 = italics

9 = shadow

10 (0x0A) = redline

11 (0x0B) = double underline

12 (0x0C) = bold

13 (0x0D) = strike-out

14 (0x0E) = underline

15 (0x0F) = small caps

16 (0x10) = blink

17 (0x11) = reverse video

<type of mouse>	default = 3

1 = bus

2 = serial

3 = neither

<default mouse port>	default = 1 (COM1)

<reserved>

[mouse acceleration factor]	in units of 1200ths (.025 = 30); default = 19

[mouse sub-menu delay time]	in units of .01 seconds, default = 15

<options flag>	default = 0x11

bits 0-1:	hyphenation

0 = never prompt

1 = prompt when required

2 = always prompt

bit 2:	1 = create document summary on save/exit

bit 3:	undefined

bit 4:	1 = update quick list

bit 5:	undefined

bit 6:	undefined

bit 7:	undefined

<equation options>	default = 0

bits 0-2:	equation horizontal alignment

0 = left aligned

1 = right aligned

2 = center aligned

bits 3-5:	equation vertical alignment

1 = top aligned

2 = center aligned

3 = bottom aligned

bit 6:	available

bit 7:	1 = print equation as text

[mouse double-click time]	in units of .01 seconds, default = 50 (.50 sec)

<Alt key selects pull-down menus>

0 = alt key does not select menus

1 = alt key selects menus

<left-handed mouse>

0 = right-handed mouse

1 = left-handed mouse

[equation base font size]	default = 0

<edit mode flags>	default = 0

bit 0:	1 = literal insert mode

bit 1:	1 = (5.1) left/right arrow movement, confirm deletions

bit 2:	1 = disable Undo

IRQ (interrupt request) driver parameters:

<sound driver address command> x 7	default = " /addr:"

<sound board base address> x 5	default = "220 "

<sound driver IRQ command> x 6	default = " /irq:"

<sound board IRQ> x 3	default = "7 "

<third party driver> x 13	default = 0,"2345678.COM",0

Sound options medium:

{sample rate}	default = 11025

[bit length]	default = 8

[stereo]	default = 0

[file format]	default = 1 (WAVFILE)

[compression]	default = 0

[reserved]	default = 0

[reserved]	default = 0

[reserved]	default = 0

Sound options high:

{sample rate}	default = 22050

[bit length]	default = 8

[stereo]	default = 0

[file format]	default = 1 for WAVFILE

[compression]	default = 0

[reserved]	default = 0

[reserved]	default = 0

[reserved]	default = 0

Sound board parameters:

<driver type>

<options>

[default base address]

<default IRQ>

[interrupt requests]

[sample rates]

<MIDI mode>	default = 0

0 = VOCFILE

1 = WAVFILE

2 = RAWFILE

3 = MIDIFILE

<color display units>	default = 0

0 = display color values in RGB units

1 = display color values in HSL units

2 = display color values in CMYK units

Text delimiter definitions:

[strip characters] x 21

[encapsulate character] x 6	default = '"'

[field delimiters] x 21	default = ','

[record delimiters] x 21	default = (CR/LF) = (0xF90D/0xF90A)

<current palette filename> x 13	default = "STANDARD.CPL",0

<display laser and dot-matrix labels>	default = 3

bit 0:	1 = laser labels

bit 1:	1 = dot-matrix labels

<document compare type>

0 = phrase

1 = word

2 = sentence

3 = paragraph

<lockout byte>	default = 0

The lockout variable is used to lock out certain features in WordPerfect. It will be tested but never modified by WordPerfect.

1 = lockout document passwords

2 = lockout go to DOS/shell

<number of thumbnails>	default = 1

Macro set flags:

<record short versions>	macro record default = 0

<mnemonic attribute in graphics mode>	default = 0xE (underline)

[space display character]	default = 32 (0x20)

SET file screen flags:

[screen setup flags]

bit 0:	1 = Button Bar is active

bit 1:	1 = ribbon line is active

bit 2:	1 = outline bar is active

bit 3:	1 = pull-down menus are active

bit 4:	1 = horizontal scroll bar is active

bit 5:	1 = vertical scroll bar is active

bit 6:	1 = document has an active ruler

bit 7:	1 = display comments

<automatic conversion of formulas in tables flag> default = 1 (automatic conversion)

[default save file type]	default = WordPerfect 6,7,8 file type

<text for default save type> x 38	omitted if save file type is WordPerfect 6.0/7

[screen setup flags - graphics version]

bit 0:	1 = Button Bar is active

bit 1:	1 = ribbon line is active

bit 4:	1 = horizontal scroll bar is active

bit 5:	1 = vertical scroll bar is active

If Asian version, then the following byte exists:

<mnemonic menu character type>

0 = English

1 = katakana

In Japanese (FEP) or Asian versions, the following information exists (to end of packet):

<ID (file position) of FEP>	default = 3

<filename> x 13	default = "STANDARD.KRS",0

<WPFEP information> x 13	default = "WPFEP Ver 1.0"

<FEP information bytes> x 85

<FEP type>

<index of main entry>	(used for marking during selection) default = 1

[packet ID of FEP driver error packet]	default = 0

[FEP defaults]

bit 0:

1 = zenkaku

0 = hankaku

bit 1:

1 = romaji henkan on

0 = romaji henkan off (kana)

bit 2:

1 = kanji henkan on

0 = kanji henkan off

bit 3:

1 = romaji henkan on

0 = romaji henkan off (kana)

bit 4:

1 = kanji henkan on

0 = kanji henkan off

<function key ownership>

0 = FEP

1 = WordPerfect

[FEP punctuation defaults]

bit 9:

1 = comma

0 = ten

bit 10:

1 = period

0 = maru

bit 11:

1 = ten

0 = comma

bit 12:

1 = maru

0 = period

bit 13:

1 = dot

0 = slash

bit 14:

1 = nobasu

0 = dash/hyphen

bit 15:

1 = kakko brackets

0 = regular brackets

Packet Type 130 (0x82)

Miscellaneous 2

This information may be changed outside of setup.

[used in counting for cursor movement]	default = 8

<table of authorities definition byte>	default = 2

bit 0:	1 = allow underlining

bit 1:	1 = combine sequential page numbers

<WYSIWYG editing flags>

0 = text mode

1 = graphics mode

3 = full page mode

6 = printing mode (reserved for internal use)

[default zoom percentage]	0 = margin width

<merge - begin record delimiter> x 20

<merge - end record delimiter> x 20	default = 13

<merge - begin field delimiter> x 20

<merge - end field delimiter> x 20	default = ','

<merge - characters to be removed> x 20

[reveal codes window percentage of screen (1-100)]

Packet Type 134 (0x84)

Monitor Attributes

<EGA font index>	default = 255 (no EGA font)

0 = italics font

1 = underline font

2 = small caps font

3 = chars 512 font

<hrf (Hercules RAM font) index>	default = 255 (no hrf font)

0 = HRF (12 fonts)

1 = HRF (6 fonts)

<hic (Hercules-In-Color) foreground>	not used by WordPerfect 6.0/7

<hic background>	not used by WordPerfect 6.0/7

<hic cursor> x 7	not used by WordPerfect 6.0/7

<hic underline> x 7	not used by WordPerfect 6.0/7

<hic strikeout> x 7	not used by WordPerfect 6.0/7

<hic highlight> x 63	not used by WordPerfect 6.0/7

<CGA fast text mode flag>	fast text display will cause snow on CGA monitor

[text color scheme name] x 40

[graphics color scheme name] x 40

Packet Type 133 (0x85)

Pathnames

The following space is reserved regardless of how long the pathnames are.

[length of printer files pathname]

<printer files pathname (.PRS & .ALL)> x 68	null terminated

[length of dictionary pathname]

<dictionary pathname> x 68	null terminated

[length of supplemental dictionary pathname]

<supplementary dictionary pathname> x 68	null terminated

[length of backup pathname]

<backup pathname> x 68	null terminated

[Length of key/macro files pathname]

<keyboard/macro files pathname> x 68	null terminated

[length of graphics files pathname]

<graphics files pathname> x 68	null terminated

[length of document management files pathname]

<document management files pathname> x 68	null terminated

[length of spreadsheet files pathname]

<spreadsheet files pathname> x 68	null terminated

[length of labels file pathname]

<full path/filename> x 80	default = "WP_WP_US.LAB",0

[length of index personal files pathname]

<index personal files pathname> x 68	null terminated

[length of index shared files pathname]

<index shared files pathname> x 68	null terminated

[length of shared QF files pathname]

<QF index files pathname> x 68	null terminated

[length of personal style files pathname]

<personal style files pathname> x 68	null terminated

[length of shared style files pathname]

<shared style files pathname> x 68	null terminated

[length of shared printer files pathname]

<shared printer files pathname (.PRS & .ALL)> x 68	null terminated

[length of shared keyboard/macro files pathname]

<shared keyboard/macro files pathname> x 68	null terminated

[length of shared graphics files pathname]

<shared graphics files pathname> x 68	null terminated

[length of shared spreadsheet files pathname]

<shared spreadsheet files pathname> x 68	null terminated

[length of DRS files pathname]

<DRS file pathname> x 68	null terminated

Packet Type 134 (0x86)

Keyboard and Button Bar Information

<keyboard name > x 14

<equation keyboard name> x 14

[pointer to current Button Bar name in memory]	meaningless in a disk file

<current Button Bar flags>	default = 0xC2

bit 0:	1 = bar is displayed

bit 1:	1 = bar at top position

bit 2:	1 = bar at bottom position

bit 3:	1 = bar at left position

bit 4:	1 = bar at right position

bit 5:	in Presentations 1 = use button mouse cursor

otherwise 1 = In add a button mode

bit 6:	1 = button displays icon

bit 7:	1 = button displays text

<main Button Bar name> x 13	default = "WPMAIN.WPB",0,0,0

<main Button Bar flags>	default = 0xC2

(see bits under current Button Bar flags above)

<graph edit Button Bar name> x 12	default = "WPGEDIT.WPB",0

<graph edit Button Bar flags>	default = 0xC3

(see bits under current Button Bar flags above)

<equation edit Button Bar name> x 13	default = "WPEQEDIT.WPB",0

<equation edit Button Bar flags>	default = 0xC3

(see bits under current Button Bar flags above)

<print previous Button Bar name> x 11	default = "WPPREV.WPB",0

<print previous Button Bar flags>	default = 0xC3

(see bits under current Button Bar flags above)

Packet Type 149 (0x95)

Print Options Information

[number of copies]	default = 1

<network - form number to use (1-31)>	default = 0

<print network banners>	default = 0 (no)

<document flags>

bit 0:	baseline placement for typesetters

0 = 3/4 of lpi from top of cell

1 = at top of cell

bits 1-2:

0 = font change

1 = character in right margin

2 = character in left margin

3 = character in alternating margins

bit 3:	1 = document needs to be formatted

bit 4:	1 = document needs to be (re)generated

bit 5:	1 = manual display pitch

bit 6:	1 = links should be updated on retrieval

bit 7:	1 = links codes should not be displayed

<0x23>

[redline character]	default = '|'

<print to file>	default = 0 (no)

[200% - extra large]

[150% - very large]

[120% - large]

[80% - small]

[60% - fine]

[60% - sup/sub]	default same as fine

<ink color>	default = 1 (full color)

[maximum point size]	default = 24pt (24*(3600/72))

Packet Type 150 (0x96)

Soft Font (SFT) Driver Paths

[total number of drivers in packet]

The following information is repeated for each driver in the packet:

[length of this driver entry]

<driver type>	same as font type

<miscellaneous flags, used internally>

bit 0:	1 = internal driver

bit 1:	1 = driver is marked as currently active

<path text length>

<actual path text byte string> x ?	no null terminator

[menu text length including null]

[actual menu text] x ?	null-terminated WordPerfect word string