* RFRM31.QM * Macros to Reformat Blocks, Paragraphs and Documents * Written by Tom Hogshead * With Macro Contributions by John Goodman, et al * 8/23/91 * Key Subfile Description * ===== ============== ==================================================== * New Macros.... * @(1) {e:\up\rfr003}--Formats Commented or Uncommented Paragraph, |new * Leaves: Commented Paragraph Uncommented, or * Uncommented Paragraph Commented, * * @(2) {e:\up\rfr003}--Formats Commented or Uncommented Paragraph, |new * Leaves: Paragraph Commenting 'As Is' * * @(3) {e:\up\rfr003}--Formats Commented or Uncommented Paragraph, |new * Leaves: Commented Paragraph Uncommented, or * Uncommented Paragraph Commented, * Replaces "period space" with "period two spaces" * * @(4) {e:\up\rfr003}--Formats Commented or Uncommented Paragraph, |new * Leaves: Paragraph Commenting 'As Is' * Replaces "period space" with "period two spaces" * * @(5) {e:\up\rfr003}--Removes "period two spaces" From Paragraph |new *-- * @(1) {e:\up\rfr008}--Swap Character at Cursor with NEXT Character |new * @(x) {e:\up\rfr008}-- Alternate version of @1 by John Goodman |new * @(7) {e:\up\rfr008}-- Alternate version of @1 by G. de Bruin |new * @(b) {e:\up\rfr008}-- Slow version of @1 by Mike Konieczny |new * @(2) {e:\up\rfr008}--Swap Two Characters LEFT of Cursor |new * @(y) {e:\up\rfr008}-- Alternate version of @2 by John Goodman |new * @(3) {e:\up\rfr008}--Swap Current Cursor Line with Line BELOW |new * @(9) {e:\up\rfr008}-- Alternate version of @3, Use this instead |new * @(4) {e:\up\rfr008}--Swap Current Cursor Line with Line ABOVE |new * @(0) {e:\up\rfr008}-- Alternate version of @4, Use this instead |new * @(5) {e:\up\rfr008}--Swap Word at Cursor with Word RIGHT of Cursor |new * @(e) {e:\up\rfr008}-- Alternate version of @5 |new * @(6) {e:\up\rfr008}--Swap Word at Cursor with Word LEFT of Cursor |new * @(8) {e:\up\rfr008}--Duplicate Remainder of Previous Line |new * John Goodman, Author *-- * @(3) {e:\up\rfr009}--Convert Vertical to Horizontal Column Block |new * @(4) {e:\up\rfr009}--Convert Horizontal to Vertical Column Block |new * @(5) {e:\up\rfr009}--Convert Vertical to Horizontal Column Block, |new * Horizontal Entries NOT Separated by Space * @(6) {e:\up\rfr009}--Convert Horizontal to Vertical Column Block, |new * Horizontal Entries NOT Separated by Space * @(7) {e:\up\rfr009}--Sort Column Block and Adjacent Text |new * in DESCENDING Order (Tim Farley) * @(9) {e:\up\rfr009}--Sort Column Block and Adjacent Text |new * CASE INSENSITIVE * @(0) {e:\up\rfr009}--Sort Column Block and Adjacent Text |new * in REVERSE Order * @(2) {e:\up\rfr009}--Sort Column Block in DESCENDING Order, |new * Adjacent Text Unchanged * @(8) {e:\up\rfr009}--Sort Column Block RANDOMLY, |new * Adjacent Text Unchanged *-- * @(4) {e:\up\rfr005}--Count Words in a Block by John Goodman |new * @(0) {e:\up\rfr005}--Count Words in a File |chg * @(3) {e:\up\rfr005}--Alternate version of @0 by John Goodman |new * @(1) {e:\up\rfr005}--Count Characters in a Block * @(2) {e:\up\rfr005}--Count Characters in a File *-- * #(f2_) {e:\up\rfr002}--Capitalize First Letter of Word At Cursor |chg *-- * @(F8) {e:\up\rfr001}--Makes All Blank Lines in Document Single Space, * "Lightning Fast!" (Condenses for better readability) * @(F7) {e:\up\rfr001}--SINGLE Space Document, "Slow" * @(g) {e:\up\rfr001}--SINGLE Space Document, "Lightning Fast!" * @(F9) {e:\up\rfr001}--DOUBLE Space Document, "Lightning Fast!" * @(F0) {e:\up\rfr001}--TRIPLE Space Document, "Lightning Fast!" *-- * @(3) {e:\up\rfr002}--Capitalize First Letter of Words in COLUMN Block * @(4) {e:\up\rfr002}--Capitalize First Letter of Words in CHARACTER Block * @(t) {e:\up\rfr002}-- (Alternate version of @4 for technique only) * @(8) {e:\up\rfr002}-- (Alternate version of @4 for technique only) * @(5) {e:\up\rfr002}--Capitalize First Letter of Words in LINE Block * #(f1_) {e:\up\rfr002}--Capitalize Word At Cursor * #(f4_) {e:\up\rfr002}--Un-Capitalize Word At Cursor * @(6) {e:\up\rfr002}--Make All Letters in Block LOWER Case * @(7) {e:\up\rfr002}--Make All Letters in Block UPPER Case *-- * ^(F3__){e:\up\rfr003}--Formats PARAGRAPH (Fast And Small) * ^(F4__){e:\up\rfr003}--Formats PARAGRAPH (Slow) * ^(F5__){e:\up\rfr003}--Formats DOCUMENT with Blank Lines Forming PARAGRAPHS * ^(F6__){e:\up\rfr003}--Formats BLOCK. Must Position Cursor At BLOCK Begin * ^(F7__){e:\up\rfr003}--Formats Message Reader Paragraph (Tim Farley) * ^(F8__){e:\up\rfr003}--Formats QMAC Txtfile BLOCK with Asterisks in Col 1 *-- * @(F6) {e:\up\rfr004}--Right Justifies BLOCK (Line Or Character Blocks) * @(F1) {e:\up\rfr004}--Right Justifies DOCUMENT * @(F2) {e:\up\rfr004}--Right Justifies DOCUMENT, Screen Preview * @(F4) {e:\up\rfr004}--Removes Right Justification From LINE Or BLOCK * @(F5) {e:\up\rfr004}--Removes Right Justification From DOCUMENT * #(f7_) {e:\up\rfr004}--Left Justify Column Block, Right Ragged (RB) * #(f8_) {e:\up\rfr004}--Right Justify Column Block, Left Ragged (RB) * (RB) = Richard Blackburn Author *-- * @(1) {e:\up\rfr006}--Replace "Period Spc" w/ "Period Two_spaces"-Para * @(8) {e:\up\rfr006}--Replace "Period Spc" w/ "Period Two_spaces" * in Whole Paragragh (Variation of @1) * @(5) {e:\up\rfr003}--Removes "Period two spaces" from Paragraph |new * @(2) {e:\up\rfr006}--Replace "Period Spc" w/ "Period Two_spaces"-Docu. * @(3) {e:\up\rfr006}--Copy Character At Cursor To Line Below * @(4) {e:\up\rfr006}--Insert Space At Cursor, Move To Next Line * @(6) {e:\up\rfr006}--(Alternate to @4 Independent of Insert Status) * @(5) {e:\up\rfr006}--Deletes Char At The Cursor, Move To Next Line * ^(F9__){e:\up\rfr006}--Make A COMMA Delimited File (Sammy Mitchell) * ^(F0__){e:\up\rfr006}-"Break Apart" A COMMA Delimited File (Sammy Mitchell) * ^(F1__){e:\up\rfr006}--Move Block, Fill Old Block with Blanks * ^(F2__){e:\up\rfr006}--FillBlock with Blanks *-- * @(j) {e:\up\rfr007}--JoinLine with Single Space At Join Point * ^(Enter){e:\up\rfr007}-Split Line and Align with Last Non-Blank Line * #(F2_) {e:\up\rfr007}--Split Line and Indent One Tab Stop * ^(F2__){e:\up\rfr007}--Split Line and Outdent One Tab Stop * (Tab) {e:\up\rfr007}--Insert Spaces to Next Tab Stop Regardless of Ins Mode * #(Tab_){e:\up\rfr007}--Delete Characters to Previous Tab Stop Regardless * of Insert Mode * ^(F6__){e:\up\rfr007}--Delete to Beginning of Line * ^(F4__){e:\up\rfr007}--Duplicate Line Up to Cursor Position * (All macros in rfr007.qm were written by * John Goodman except as noted) *-- * @(1) --Dummy Macro *-- * (JG) - John Goodman, Author * * (Index) - How to locate macro or item below from Index using @f * (Description) - Reformat Macros * (Macros) - Reformat Macros * (Other) macros - not included * (Test) paragraph To Reformat * (Test1) paragraph * (Test2) paragraph * (Required) program files * (Version) history * *-- eoi * (Description) * ------------- * (RFRM31).QM are macros to reformat QEDIT blocks, paragraphs, and * documents. Asterisks are also added and deleted in front of lines, * block, and paragraphs. Number of words and characters in a document * can also be counted. Comma delimited files can also be made and * "broken apart". Documents can formatted with right justification. * Blocks can be left and right justified. Documents can be single, * double and triple spaced. Left and right justify column blocks with * opposite ragged edges. * If column width of the unformatted paragraphs and blocks are greater * than 80 columns, there must be enough blank lines for ^F4, ^f6 and ^F8 * to paste the reformatted text back and not overlap unformatted areas. * in other words, BE CAREFUL! * * For faster macro execution, replace "C:" with your ram drive. * * Insert and AutoIndent should be ON. * * (Other) Macros available: See ALLMACRO.INF. * See MACRxx.QM for other commenting and un-commenting macros. * (Index) Use * ------------ * To locate a macro or item in this file, press @f, place the cursor * line on the desired item in the Index above, and press . * See BOOKxx.QM for more details. * These macros require "QEdit and QMAC v2.1, February, 1990" or later. * To BEGIN, just type "START RFRM" . All pertinent files will be * loaded in the "Ring" for viewing, and RFRM31.MAC is read. * Alternatively, type "START RFRM 0" and the disk copies of all * files in the "Ring" will be loaded ready for editing, saving time. * (Required) Program Files * ------------------------- * YouÄÄMUSTÄÄhave the exectable program files in AMAC-PRG.ZIP to run * some of these macros. AMAC-PRG.ZIP can be found on the following BBS's: * * SemWare * Exec-PC * * It can not be found on CompuServe since many of the programs are * Copyrighted. All program files are ShareWare, and inclusion in * AMAC-PRG.ZIP is not prohibited in their documentation. * * I thank the authors for these excellent programs. * (Macros) * -------- * Use @f in BOOKxx.QM to view and read macros in rfr00x.qm. *  * ------------------- * @(1) Dummy Macro * ------------------- * @1 macrobegin begline * Dummy to make this a txtfile * (Version) History * ------------------ * 1.1 - added Alt_6,7 & 8 to format QMAC txtfiles * 1.1a- modified Alt_8,9 & 10 to get off screen-text in block * 1.2 - added Alt_5 to format entire document QUICKLY keeping * indented paragraph positions in place * Alt_4 to format entire document keeping indented * paragraph positions in place * Alt_3 to format paragraph only * - modified other macros to handle line widths to 512 * 1.2a- modified this documentation * 1.2b- Added @2 to make single column txtfile from * QMAC txtfile, v1.2b * 1.2c- changed 160 in @9 to 512 * 1.2d- @2 removed, now in COLUMN10.ZIP * - @4 removed * - added killfile @0 * - changed macro comments * 1.3 - added Alt_1 & 2 to put asterisk and space in front * of blocks and paragraphs * 1.4 - added Alt_4 to remove asterisk and space in column 1 * 1.5 - added Alt_t (from Tim Farley) to do the same as Alt_1 * - changed key assignments * - added Alt_2 to remove asterisks in front of blocks * - shortened Alt_1 to 32 bytes * 1.5a- modified Alt_1 to handle blocks with blank lines * - changed "60" in ^0 to "69" * - Alt_t modified by Tim Farley to correctly handle column * and single line blocks. * 1.5b- corrected documentation * 1.5c- Changed file name REFORMxx to RFRMxx. * 1.6 - Added @5. * - Changed ^5 and ^9 right margin to 69. * - Shortened ^8,9 and 0. * 1.7 - Added @h to help locate items or macros from Index. * - Added @8 to have sentences end with "period space space" * - Added ^7 to Formats Message Reader Paragraph (Tim Farley) * 1.8 - Added @9 and @0 to count number of words in a document. * - Added @n to count number of characters in a document. * - Added @F3 and @F4 to delete blank lines in documents. * - Added ^1/^2 to make/break-apart a comma delimited file. * (Written by Sammy Mitchell, SemWare) * 1.9 - Shortened and removed redundant commands from @0. * 2.0 - Added @F1 and @F2 to right justify documents. * - Added @F4 and @F5 to remove right justification. * - Modified documentation and added START.BAT. * - Changed REFORM file names to RFRM. * - Changed some key assignments. * 2.1 - Modified documentation (@f4 and @f5). * 2.2 - Corrected @h Index Use instructions. * - Added ^b to change ". " to ". " in PARAGRAPHS. * - Modified ^c to change ". " to ". " in DOCUMENTS. * 2.3 - Modified @F1 to handle file names with no extension & * shortened 7 bytes. * 2.4 - Added @f6 to right justify line or character blocks. * - Added @F3 to capitalize first letter of every word in * column block. * - Added @F9 to Double Space all text lines in document. * - Added @F10 to Triple Space all text lines in document. * - Corrected, modified & shortened @F1,@F4 & @f5. * - Shortened @F7, @F8, @0, @n & ^c. * 2.5 - Added ^1 to move block, fill old block with blanks. * - Added #f1 to capitalize word * - Added #f2 to capitalize first letter of word * - Added #f4 to un-capitalize word * - Changed @f3 key to #f3. * - Made @f6 smoother by adding Zoomwindow. * - Corrected size of @f10 in Index. * 2.6 - Added @1 to comment non-macro portion of macfile * - Added @2 to unComment non-macro portion of macfile * - Added @4 to Comment whole file * - Added @5 to unComment whole file * - Added @8 to Comment or unComment line or block. * - Added @7 to insert text at start of each line in front of * block (Richard Blackburn author) * - Added @j to Join lines with single space at join point * - Added #f7 Left Justify Column Block, Right Ragged * - Added #f8 Right Justify Column Block, Left Ragged * - Following earlier macros are replaced in v2.6 with @8 * because @8 accomplishes what they each were intended to: * @1 Adds asterisk and space in front of BLOCK * @2 Deletes asterisk and one space in front of BLOCK * @4 Deletes asterisk and one space in column 1 * @5 Deletes first two characters of line * @6 Adds asterisk and one space in column 1 * @7 Deletes asterisk and ALL space at beginning of line * @t Adds asterisk and space in front of BLOCK * 2.7 - Changed control_numeric keys to control_function keys. * new old * ^F1 ^1 * ^F3 ^3 * ^F4 ^0 * ^F5 ^5 * ^F6 ^9 * ^F7 ^7 * ^F8 ^8 * - Added ^F2 FillBlock blank * - Moved @1 to @5 and @8 to COMTxx * - Deleted @6 * - Changed @n key to @2 * - Corrected and modified @2. * - Added @1. * 2.8 - Corrrected second test paragragh header. * - Modified @F8 to make all blanks lines single space in document * "Lightning Fast". * 2.8a - Added @g "Lightning Fast" macro to single space document. * - Modified @f9 "Lightning Fast" macro to double space document. * - Modified @f0 "Lightning Fast" macro to triple space document. * - Shortened @j two bytes. * - Modified @9 and @0 to use NUL. * - Changed #f3 key to @3. * - Changed C:! to NUL, shortened, and added windows to @3. * - Added @4 to capitalize first letter of all words * in character block. * - Added @5 to capitalize first letter of all words * in line block. * - Added @6/@7 to make all letters in block lower/upper case. * - Added latest version of @h. * - Shortened and removed window shrink from @3, @4 and @5. * - Added @t (alternate version of @4) to capitalize first letter * of words in character blocks. * - Replaced @h with @f. * - Included v2.8a in AMAC39.ZIP. * 2.9 - Changed documentation, July 23, 1991. * - Modified to use subfiles and added latest version of @f, * July 23, 1991. * - @3 in rfr002.qm was not marking capitalized block correctly. * Corrected. * - Added @8 to rfr002.qm as an alternate version of @4, using * the moveblock concept to the bottom of current file, not NUL. * July 24, 1991. * 2.9a- Removed @f. Now in BOOKxx.QM. * - Changed ^b/c keys in rfr006.qm to @1/2. July 26, 1991. * - Changed @j in rfr006.qm to use splitline/delline, July 26, 1991. * Shortened 3 bytes, July 26, 1991. * - Added @j version written by John Goodman, July 27, 1991. * - Added all macros in rfr007.qm written by John Goodman, 7/27/91 * - Added @3, @4 and @5 to rfr006.qm, 7/28/91 * - Included v3.9a in AMAC39A.ZIP. 7/29/91 * 3.0 - Added @7 in rfr006.qm. 7/30/91 * - Corrected @1 rfr006.qm. 7/31/91 * - Added @8 to rfr006.qm. 7/31/91 * (ver 3.0 in AMACxx.ZIP, v4.0) * 3.1 - Added @1 and @2 to rfr003.qm. 8/5/91 * - Corrected @7 in rfr006.qm to be independent of Insert 8/6/91 * mode. * - Added @9/@0 to sort column blocks case-insensitive/ 8/7/91 * reverse sort, to rfr006.qm. * - Moved @7 from rfr006.qm to rfr008.qm as @1 8/7/91 * and added @2 to rfr008.qm, both to swap characters. * - Added @3, @4 and @5 to rfr003.qm. 8/8/91 * - Modified #f1 in rfr002.qm to handle capitalized words. 8/8/91 * - Added John Goodman modified ver 2 of @1 in rfr008.qm. 8/8/91 * - Shortened @2 in rfr008.qm one byte. 8/8/91 * - Added @3/4/5/6 in rfr008.qm to convert a vertical 8/11/91 * column block to a horizontal column block, & vice versa. * - Added @7 in rfr008.qm. 8/12/91 * - Modified @0 in rfr006.qm for correct file ring pos. 8/13/91 * - Added rfr009 and rfr010. 8/13/91 * - Moved @9 and @0 from rfr006.qm to rfr009.qm. 8/13/91 * - Moved @3-6 and @8 from rfr008 to rfr009.qm. 8/13/91 * - Changed @0 key to @7 in rfr009.qm. 8/13/91 * - Added @5 and @6 to swap words at cursor in rfr008.qm. 8/13/91 * - Modified @3-7 in rfr009.qm. 8/15/91 * - Added @9 and @0 in rfr008.qm to swap lines. 8/15/91 * - Added @e in rfr008.qm. 8/20/91 * - Added @x and @y in rfr008.qm from John Goodman. 8/21/91 * - Added @3 and @4 by John Goodman to rfr005.qm. 8/23/91 * - Modified @0 in rfr005.qm. 8/23/91 * - Removed @9 from rfr005.qm. 8/23/91 * * * * * * *