www.delorie.com/gnu/docs/recode/recode_46.html   search  
 
Buy GNU books!


The recode reference manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

11.1 Apple's Macintosh code

This charset is available in recode under the name Apple-Mac. The shortest way of specifying it in recode is ap.

The charset is aimed towards a Macintosh micro-computer from Apple. This is an eight bit code. The file is the data fork only. This charset is fairly old in recode, its tables were produced a long while ago by mere inspection of a printed chart of the Macintosh codes and glyph.

It has CR as its implied surface. This means that, if the original end of lines have to be preserved while going out of Apple-Mac, they should currently be added back through the usage of a surface on the other charset, or better, just never removed. Here are examples for both cases:

 
recode ap..l2/cr < input > output
recode ap/..l2 < input > output

RFC 1345 brings into recode 2 other Macintosh charsets. You can discover them by using grep over the output of `recode -l':

 
recode -l | grep -i mac

Charsets macintosh and macintosh_ce, as well as their aliases mac and macce also have CR as their implied surface.

There are a few discrepancies between the Apple-Mac charset and the very similar RFC 1345 charset macintosh, which have not been analysed yet, so the charsets are being kept separate for now. This might change in the future, and the Apple-Mac charset might disappear. Wizards would be interested in comparing the output of these two commands:

 
recode -vh Apple-Mac..Latin-1
recode -vh macintosh..Latin-1

The first command use the charset prior to RFC 1345 introduction. Both methods give different recodings. These differences are annoying, the fuzziness will have to be explained and settle down one day.

As a side note, some people ask if there is a Macintosh port of the recode program. I'm not aware of any. I presume that if the tool fills a need for Macintosh users, someone will port it one of these days?


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)