home *** CD-ROM | disk | FTP | other *** search
/ Carousel / CAROUSEL.cdr / mactosh / lang / mpw_scri.hqx / ExCon.pit / ec_doc < prev    next >
Encoding:
Text File  |  1987-02-17  |  2.6 KB  |  66 lines

  1. Expand and Contract are a pair of programs to help you send MPW command
  2. scripts over a 7 bit data line or thru a 7 bit comm service.  
  3.  
  4. Expand will convert all those nasty MPW characters that you have to (remember 
  5. and) type with the option key to their 'English' equivalent; e.g. ╢, the shell
  6. escape character is Option-d.  (A character typed with the option key has its
  7. high bit set which chokes certain data comm service wimps.)
  8.  
  9. Contract reverses the process and (hopefully) restores the file to its original
  10. state (though not without sin).
  11.  
  12. Other files in this set:
  13.     tag_oper - has but a single character, the tag operator, ¿, option-r.  
  14.         It is used to kludge around a bug in version 1.01 of MPW that will not
  15.         allow you to quote the tag operator.  See below for more details.
  16.  
  17.     ec_test - tests the expand/contract pair.  Run it on each of your command 
  18.         files to see they will expand and contract properly.  ec_test will
  19.         duplicate your file to a temporary file (named aaaaa_date, where date
  20.         is the current date), expand and contract the temporary file and then
  21.         compare the original file to the temporary file.  It uses the MPW tool
  22.         compare which will tell you if the files are the same or where they
  23.         are different.  ec_test will not work on expand or contract themselves 
  24.         because the string /OpTiOn/ will be matched.  I thought it would be a
  25.         unique, case-sensitive way to spell Option.
  26.  
  27.     ec_instructions - This file.
  28.  
  29.     special_chars - A list of those nasty option characters and their 'English'
  30.         equivalents.  Put it in the directory "{MPW}" and put the following 
  31.         alias in your userstartup file:
  32.             alias sc 'catenate "{mpw}special_chars"'
  33.         Then whenever you forget one of those nasty devils type 
  34.             sc <return> <backspace> <enter>
  35.         to see the list, remember or copy the one you want and then get rid of
  36.         the list and sc with an undo (command-z) and a couple of backspaces.
  37.         
  38.  
  39. There is a problem in expanding/contracting the tag operator ( ¿ - Option-r) as
  40. mentioned above because of a bug in MPW (or my inattention to something in the 
  41. manual).  Any of the following lines yield the message 
  42.     '###replace - Invalid ¿ statement.':
  43.     
  44.     find Ñ ; replace -c ░ /'¿'/ 'OpTiOn-r'
  45.     find Ñ ; replace -c ░ /╢¿/  'OpTiOn-r'
  46.     find Ñ ; replace -c ░ /OpTiOn-r/ ¿
  47.     find Ñ ; replace -c ░ /OpTiOn-r/ '¿'
  48.     find Ñ ; replace -c ░ /OpTiOn-r/ ╢¿
  49.  
  50. Hence the kludge for ¿.  
  51.  
  52. Other ideas anyone?
  53.  
  54. Send your comments, additions, kind yet constructive criticism, but please no 
  55. money, to:
  56.  
  57. Steve Knouse
  58. Apple Computer
  59. 2950 N Loop W, Suite 1070
  60. Houston, TX  77092
  61. Applelink: KNOUSE
  62.  
  63. Hope this helps the body.  
  64.  
  65. Steve
  66.