home *** CD-ROM | disk | FTP | other *** search
- Expand and Contract are a pair of programs to help you send MPW command
- scripts over a 7 bit data line or thru a 7 bit comm service.
-
- Expand will convert all those nasty MPW characters that you have to (remember
- and) type with the option key to their 'English' equivalent; e.g. ╢, the shell
- escape character is Option-d. (A character typed with the option key has its
- high bit set which chokes certain data comm service wimps.)
-
- Contract reverses the process and (hopefully) restores the file to its original
- state (though not without sin).
-
- Other files in this set:
- tag_oper - has but a single character, the tag operator, ¿, option-r.
- It is used to kludge around a bug in version 1.01 of MPW that will not
- allow you to quote the tag operator. See below for more details.
-
- ec_test - tests the expand/contract pair. Run it on each of your command
- files to see they will expand and contract properly. ec_test will
- duplicate your file to a temporary file (named aaaaa_date, where date
- is the current date), expand and contract the temporary file and then
- compare the original file to the temporary file. It uses the MPW tool
- compare which will tell you if the files are the same or where they
- are different. ec_test will not work on expand or contract themselves
- because the string /OpTiOn/ will be matched. I thought it would be a
- unique, case-sensitive way to spell Option.
-
- ec_instructions - This file.
-
- special_chars - A list of those nasty option characters and their 'English'
- equivalents. Put it in the directory "{MPW}" and put the following
- alias in your userstartup file:
- alias sc 'catenate "{mpw}special_chars"'
- Then whenever you forget one of those nasty devils type
- sc <return> <backspace> <enter>
- to see the list, remember or copy the one you want and then get rid of
- the list and sc with an undo (command-z) and a couple of backspaces.
-
-
- There is a problem in expanding/contracting the tag operator ( ¿ - Option-r) as
- mentioned above because of a bug in MPW (or my inattention to something in the
- manual). Any of the following lines yield the message
- '###replace - Invalid ¿ statement.':
-
- find Ñ ; replace -c ░ /'¿'/ 'OpTiOn-r'
- find Ñ ; replace -c ░ /╢¿/ 'OpTiOn-r'
- find Ñ ; replace -c ░ /OpTiOn-r/ ¿
- find Ñ ; replace -c ░ /OpTiOn-r/ '¿'
- find Ñ ; replace -c ░ /OpTiOn-r/ ╢¿
-
- Hence the kludge for ¿.
-
- Other ideas anyone?
-
- Send your comments, additions, kind yet constructive criticism, but please no
- money, to:
-
- Steve Knouse
- Apple Computer
- 2950 N Loop W, Suite 1070
- Houston, TX 77092
- Applelink: KNOUSE
-
- Hope this helps the body.
-
- Steve
-