ADC Home > Reference Library > Technical Notes > Legacy Documents > Apple Applications >
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Apple File Exchange (AFE) translator documentationInformation on how to write an Apple File Exchange (AFE) translator is available through APDA as "Apple File Exchange Technical Reference Package v.1.1." The package includes an 800K disk and 184 pages of documentation.
Apple File Exchange (AFE) Apple II
|
ProDOS -> Macintosh conversion ProDOS Macintosh Filetype Auxtype Creator Filetype $00 $0000 |
Date Written: 1/28/91
Last reviewed: 2/15/91
What is the best way to convert text created using the standard Macintosh character set to 7-bit ASCII for display on a terminal? Is there a standard call or table that will give me what I want?
___The Macintosh uses an extended ASCII character set. The first 128 (0-127) characters are standard ASCII, but the next 128 (128-255) are unique to the Macintosh.
There are problems when converting from a large set to a smaller set. I am including two samples (there is no ONE correct way) of how to do the conversion from Macintosh to ASCII.
One way is to simplify the character to the closest ASCII character. This unfortunately loses information that distinguished the original character, but still maintains the same data size (it actually shrinks from 8 bits to 7 bits). Another way is to approximate the original character with multiple ASCII characters. This retains more information, but increases the size of the data.
You will have to choose the best approach for your situation.
We created the files by converting a Text file with the complete set of Char values with the Apple File Exchange utility (included with each set of System disks). We chose the Mac-ProDOS option (Text Translation...) and generated both single and multiple character conversions. I then combined the results with Excel.
You can get the Apple File Exchange Technical Reference package from APDA (M7051) and possibly use some of the routines from there. (I am not sure if the results are useful only with AFE or if you can link them into your own application.)
If the AFE tools are inappropriate for your situation, then it would be easy to take the following data and just do a table conversion. You will need to use a font like Courier to see the complete Macintosh character set.
ASCII Mac Single Multiple 128 Ä A A" 129 Å A AA 130 Ç C C, 131 É E E' 132 Ñ N N~ 133 Ö O O" 134 Ü U U" 135 Á a a' 136 À a a' 137 Â a a^ 138 Ä a a" 139 Ã a a~ 140 Å a aa 141 Ç c c, 142 É e e' 143 È e e' 144 Ê e e^ 145 Ë e e" 146 Í i i' 147 Ì i i' 148 Î i i^ 149 Ï i i" 150 Ñ n n~ 151 Ó o o' 152 Ò o o' 153 Ô o o^ 154 Ö o o" 155 õ o o~ 156 Ú u u' 157 Ù u u' 158 Û u u^ 159 Ü u u" 160 + t t |
Acrobat version of this Note (91K). |
|