28MACROS.ARC

This is a small collection of useful macros for WP50. You will need to edit some of them in order to let them work on your system. For example, in the Footer and Header collection, FTRDOC and HDRDOC call up a specific Bitstream Font (Dutch Roman 6 pt.). You can edit the font change to call a different Font, or delete that part of the Macro altogether.

For ease of explanation, I have divided the list into subgroups, depending on their function. #100 is by itself. It Allows you to Select an alternate keyboard, and then shows you the list of Keyboard Macros active for that Keyboard. This is useful for those of us who use WP50 for different specialized applications or kinds of documents.

Taking advantage of WP50's impoved automatic numbering capabilities, I developed a set of macros that would first define the type of paragraph numbering to us [1., (a), (i), (A), 1), a), i), A)], and would call up a specific level (1st through 4th). To make this work quickly, I used unassigned ALT-key characters, P, Q, R, & Y. Obviously you can rename them or assign Control characters from a special keyboard.

The TIME (ALT-T) macro is for those times when I don't have a watch. The macro SWITCHes to screen two and formats the date code to call up the current time from the CPU's realclock. Don't use it if you have a document on screen 2, as the macro exits Screen 2 without saving before SWITCHing back to Screen 1.

DATE sets the Date Code to the Standard of Month, spelled out, following by day, and all four digits of the year. No text is called to the screen, however. This Macro is called up by a couple of other macros, such as ALT-T (TIME) and HDRDOC and FTRDOC.

Because I have had to convert a lot of text files from an old dedicated WP System, the collection of file conversion macros came in useful. Some of them, of course, are performed equally well by Text in / Text out (Ctrl-F5), but there are occasions where a specific function needs to be isolated and run.

Finally, there is a small collection of Font Attribute and Size Macros, which really reduce the number of keystrokes needed to switch from an Italic to a normal or large to normal, or to dress up a document by converting underlining to italics. To use ALT-I, block the text to be italicized, and then call the macro; it's fast! UND2IT and its counterpart IT2UND can be edited to convert underline to bold and vice versa.

Needless to say, these Macros are Freeware, and you get the typical warranties and disclaimers: Feel free to use them, copy them, edit them, share them, etc. These are in the public domain and may not be copyrighted or subjected to a licensing agreement. No warranties of any kind are given as to their usability or fitness of purpose, and anyone using them does so at his or her own risk. I will accept no responsibility for any damage or loss of data that may occur as a result of the use (or misuse) of these macros. That being said, have fun, enjoy, and let me know how they work, and/or how you have improved upon them.

David Hunsaker

76012,147 CIS WPSG

2 8 M A C R O S

100	ALTK .WPM	Change KEYBOARD and List KBd Macros

AUTOMATIC NUMBERING

101	PD	.WPM	Paragraph Definitions

102	ALTP .WPM	Paragraph Number First Level

103	ALTQ .WPM	Paragraph Second Level

104	ALTR .WPM	Paragraph Third Level

105	ALTY .WPM	Fourth Level Pargraph Numbering

TIME AND DATE

106	ALTT .WPM	Time Shown on Screen 2

107	DATE .WPM	Set Date Code to 3 1, 4

USEFUL ASCII FILE CONVERSION MACROS

108	DELHPG .WPM	Delete Hard Page from Merged Doc

109	DELHRT .WPM	Delete Hard Returns with Confirm On

110	DELTABS .WPM	Delete Tabs with Confirm On

111	HPG2SPG .WPM	Change HPg to SPg; delete hard page nos.

112	HRT2SRT .WPM	Convert Hard Returns to SRt

113	SPC2TABS.WPM	Convert Spaces to Tabs

HEADERS AND FOOTERS

(Name and Paginate Documents)

114	PAGE .WPM	Page Numbering Setup (bottom center)

115	FTRDOC .WPM	Footer to Describe Document Name (w/ Date)

116	FTRPG .WPM	Page Numbering - Footer A (bottom center)

117	FTROFF .WPM	Discontinue All Footers

118	HDRDOC .WPM	Header to Describe Document Name (w/Date)

119	HDRPG .WPM	Page Numbering - Header A (Top Cntr)

120	HDROFF .WPM	Discontinue All Headers

FONT CHARACTERISTICS

121	ALTI	.WPM	Change Font Attribute to ITALics

122	IT2UND .WPM	Convert ITALics to UNDERline*

123	UND2IT .WPM	Convert UNDerline to ITALics*

124	LG	.WPM	Change Font Size to LARGE

125	ALTN	.WPM	Return Font Attribute/Size to Normal

126	ND	.WPM	Indent Center Left/Right Margins

127	NS	.WPM	Indent Center Off

*	U2ITEST.DOC	Try out UND2IT and IT2UND on this Test Document*