home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / EDITOR / ZDE16.LBR / SAMPKEY.DZC / SAMPKEY.DOC
Text File  |  1990-06-01  |  4KB  |  134 lines

  1. SAMPKEY.DOC:
  2. Sample Macros for ZDE, 01 June 90 by Carson Wilson.
  3.  
  4. This file describes the sample macros contained in SAMPKEY.ZDK 
  5. and SAMPKEY.ZDT.  As distributed, ZDE contains no Macro Key 
  6. definitions.  I have included the SAMPKEY.* files both to give 
  7. you an idea of the versatility available through ZDE's macro 
  8. capability and to provide you with some useful choresaving 
  9. routines.  Many of the sample Macros come directly from the ZDE 
  10. Manual, and illustrate the use of conditional testing, jumps, and 
  11. control key entry from within Macros.  In addition to being 
  12. educational, most of these "sample" Macros do useful work.  While 
  13. you may (and should) define ZDE's Macros to do anything you wish 
  14. (or nothing, if you wish), I think you may find one or more of 
  15. these samples useful just as they are.
  16.  
  17. To install the macros in SAMPKEY.ZDK (or any .ZDK file) into your 
  18. copy of ZDE, just type "ZDENSTAL ZDE SAMPKEY.ZDK."  Then exit 
  19. ZDENSTAL with the <S>ave option.  This produces a working copy of 
  20. ZDE.COM with Macro Keys 0 to 9 as defined in the .ZDK file.
  21.  
  22. To alter or replace the Macros in SAMPKEY.ZDK, first edit the 
  23. text file SAMPKEY.ZDT with ZDE.  Then translate SAMPKEY.ZDT into 
  24. a new macro file with the command "ZDKCOM SAMPKEY.ZDT."  You can 
  25. also translate .ZDK files back into .ZDT files if you wish; see 
  26. ZDKCOM.DOC for more information.
  27.  
  28. The following briefly describes each of the Macros in the SAMPKEY 
  29. files:
  30.  
  31.  
  32. MACRO 0 - SWAP CHARACTERS.
  33.  
  34.      Macro Text:
  35.           q^S^S^G^D^U^U^D^G
  36.  
  37.      Purpose:
  38.           Swaps the character behind the cursor with the previous 
  39.           character.  Useful for catching typos.
  40.  
  41.  
  42. MACRO 1 - SOFTEN PARAGRAPH.
  43.  
  44.      Macro Text:
  45.           q^QS^X^[=^M]^S^V ^V^D^[![
  46.  
  47.      Purpose:
  48.           "Softens" Hard Carriage Returns from the line the cursor 
  49.           is on to the end of the paragraph.  This allows 
  50.           reformatting with ^B of files from other word 
  51.           processors.
  52.  
  53.  
  54. MACRO 2 - MOVE TO START OF SENTENCE.
  55.  
  56.      Macro Text:
  57.           q^[~.1^S^[1^[~.<^[2^D^[= 2^[=^M2
  58.  
  59.      Purpose:
  60.           Moves the cursor to the beginning of the sentance the 
  61.           cursor is currently on.
  62.  
  63.  
  64. MACRO 3 - MOVE TO START OF PARAGRAPH.
  65.  
  66.      Macro Text:
  67.           q^QS^S^S^[= [^D^D
  68.  
  69.      Purpose:
  70.           Moves the cursor to the beginning of the paragraph the 
  71.           cursor is currently on.
  72.  
  73.  
  74. MACRO 4 - REFORM AND RETURN.
  75.  
  76.      Macro Text:
  77.           q^B^QP
  78.  
  79.      Purpose:
  80.           Reformat beginning with the line the cursor is on and 
  81.           return cursor to current location.  Useful when 
  82.           revising text in the middle of a paragraph.
  83.  
  84.  
  85. MACRO 5 - BROWSE FILE.
  86.  
  87.      Macro Text:
  88.           n^[;^C^[![
  89.  
  90.      Purpose:
  91.           Move through file a screen at a time.  Press ESC to 
  92.           stop.
  93.  
  94.  
  95. MACRO 6 - DELETE WORD LEFT.
  96.  
  97.      Macro Text:
  98.           n^A^T
  99.  
  100.      Purpose:
  101.           Erases the word to the left of the cursor.
  102.  
  103.  
  104. MACRO 7 - UNDERLINE WORD RIGHT.
  105.  
  106.      Macro Text:
  107.           n^V^PS^F^PS
  108.  
  109.      Purpose:
  110.           Brackets the word to the right of the cursor with the 
  111.           control code ^S, causing the word to be underlined when 
  112.           printed (NOTE: printer must be installed).
  113.  
  114.  
  115. MACRO 8 - SWAP LINES.
  116.  
  117.      Macro Text:
  118.           q^QS^KB^S^X^KK^S^E^E^KV
  119.  
  120.      Purpose:
  121.           Swaps the current line with the previous line, moving 
  122.           the cursor with it.  Can be used to move a single line 
  123.           up any distance within your file.
  124.  
  125.  
  126. MACRO 9 - HELP MESSAGE.
  127.  
  128.      Macro Text: n^QE^QS^N^N0=SwCh 1=Soft 2=SentBg 3=ParaBg 
  129.                  4=Reform 5=Browse 6=DelLft 7=Undl 8=SwLn 9=Hlp 
  130.                  ^[;^[;^[;^Y^Y^QP
  131.  
  132.      Purpose:
  133.           Briefly displays help message at top of screen.
  134.