home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -seriously_amiga- / archivers / mcvertppc / readme-conversion < prev    next >
Text File  |  1998-04-27  |  8KB  |  155 lines

  1. Overview of file conversion
  2.  
  3. More details regarding file formats may be found in the mcvert.1 man
  4. page, but basically, there are native Mac files that live (only) on
  5. the Mac (since they have interesting internal structure), and
  6. representations of Mac files.
  7.  
  8. One very important representation is called MacBinary.  It is nothing
  9. but "data".  But it is 8-bit data, and that confuses some things some
  10. times, like mail programs and modems.  So, there are encodings of
  11. MacBinary files as ASCII only files, and one very important one is
  12. called BinHex4.0.  So far, so good.
  13.  
  14. mcvert runs under UNIX and converts between different representations
  15. of Mac files.  One very common conversion is between BinHex4.0 and
  16. MacBinary.  So know we know how to do that (on a UNIX box).  On the
  17. Mac, I prefer the CompactPro shareware for doing this conversion
  18.  
  19. A MacBinary file must be converted into the actual native Mac file it
  20. represents.  One such program, which runs on the Mac, is binhex4.0.
  21. Often, though, programs like telnet from NCSA, kermit, White Knight,
  22. or any number of other communication programs will convert MacBinary
  23. files into the native Mac files they represent during transfer.
  24.  
  25. Files can be very large, and rather redundent.  So it makes sense
  26. to compress the files to save space and reduce transfer cost.
  27. There are compressed file formats.  Two popular ones are StuffIt
  28. and CompactPro.  But if a file is compressed, something must
  29. uncompress it.  There are unstuffers and extractors, which are
  30. separate programs which work on the compressed files.  Some files
  31. are "self-extracting", which means the files are actually Mac
  32. programs which, when run, recreate the original file.
  33.  
  34. Files are often identified by extensions, those .ext suffixes at the
  35. end of the name.  Common suffixes include:
  36.  
  37.     .bin    MacBinary
  38.     .sit    StuffIt
  39.     .cpt    CompactPro
  40.     .hqx    BinHex4.0
  41.     .sea    self extracting archive
  42.  
  43. It is not uncommon for multiple transformations to be applied, so if
  44. one had a file called foo.sit.bin, that likely means that it's a
  45. MacBinary format of a StuffIt archive file.  So, to convert it, you
  46. must turn the MacBinary file into a native Mac file, and then run
  47. [un]StuffIt (or CompactPro, which can handle many StuffIt formats).
  48.  
  49. There's more information in the info-mac archives about getting files.
  50. For example, here's info-mac/help/accessing-files.txt, as of 13Jun93:
  51.  
  52. >------ Begin Included Message ------
  53. > To access binaries in the Info-Mac archive at sumex-aim, use your
  54. > machine's ftp program.  Type "ftp sumex-aim.stanford.edu".  Use the
  55. > account name "anonymous" (lower-case) and enter any password. Then
  56. > "cd info-mac" to enter our directory. You should be able to transfer
  57. > binaries with a statement like "get app/silly-paint.hqx".
  58. > NOTE: Almost all files (even binaries) in the Info-Mac archive are in
  59. > text format, even though they may not be human-readable. Hence, a FTP
  60. > transfer using a text-only option, often called ASCII, should work in
  61. > all common cases.
  62. > In order to provide a reasonable level of performance and avoid
  63. > causing Internet overload, there is a 35-user limit for anonymous ftp
  64. > into sumex-aim during working hours, which we define as 8AM to 5PM
  65. > Pacific time, Monday through Friday. When sumex is busy, use one of
  66. > the many mirror archives around the world (see info/comm/ for a list
  67. > of other archive sites, including sumex mirrors.) Gopher is another
  68. > alternative; as a more modern alternative to ftp, it imposes less of a
  69. > burden on sumex, so there is no user limit.
  70. > Here are some simple commands to move you around the directory structure.
  71. > This example assumes that you started in the /info-mac directory.
  72. >     cd app         # move into the app directory
  73. >     ls             # list the files there
  74. >         get planet.hqx # transfer a file to your computer
  75. >         cd ..          # move back up to the parent directory
  76. >         cd help        # and so on...
  77. > Most Info-Mac files are stored in BinHex 4.0 format.  We have adopted
  78. > the common practice of labeling such files with .hqx extensions.  To
  79. > take these files and use them on your Macintosh, you must first run
  80. > them through a program which will convert them from .hqx format into a
  81. > regular Macintosh file. On Unix systems, you can use the mcvert
  82. > program, stored as cmp/mcvert.shar. You can also do the conversion on
  83. > your Macintosh by using any of a number of utilities, including BinHex
  84. > 4.0, StuffIt, or Compact Pro. We recommend using Compact Pro because
  85. > it is slightly more convenient and reliable than the other tools.
  86. > Note: do NOT use BinHex 5.0 as it is incompatible, for some very
  87. > brain-damaged reasons.
  88. > Note that some of our files were split into smaller pieces so that
  89. > they could be mailed more easily.  Most such files are old, as we no
  90. > longer split new submissions.  You must join split files together
  91. > before running BinHex or StuffIt. Hqx files can be edited as normal
  92. > text; therefore, you can use any word processor or append command on
  93. > your host to stitch the pieces together. There are some utilities
  94. > (unity and united) in disk/ to do this step for you.
  95. > Many of our files also have been compressed to save space. You'll know
  96. > that they have been when the file name after converting to Macintosh
  97. > format ends with a .sit, .cpt, .sea, or .pit extension. Here is a
  98. > table to help you with the reconstruction:
  99. > Extension    Created By    Recommended unpacker    Notes
  100. > .pit        PackIt II    StuffIt            obsolete format
  101. > .sit        StuffIt        Compact Pro/StuffIt    has type SIT!
  102. >         StuffIt Deluxe    Stuffit Expander    has type SITD
  103. > .cpt        Compact Pro    Compact Pro
  104. > .sea        various        itself (double-click on it to unpack)
  105. > In summary, there are generally five steps to pulling .hqx files from our
  106. > archives:
  107. >     1. Transfer them to your computer with FTP.
  108. >     2. Transfer them to your Macintosh somehow.
  109. >         3. If necessary, put separate pieces together.
  110. >     4. Run a de-binhexing utility to convert the .hqx files into either
  111. >            real Macintosh files or compressed Macintosh files.
  112. >     5. If they are compressed, use the appropriate decompression
  113. >            program to decompress them.
  114. > People using Unix may be able to skip steps 3 and 4 by using the program
  115. > mcvert on their Unix system before transferring the program
  116. > to their Macintosh.
  117. > If you don't already have BinHex 4.0, it would be easiest to get it
  118. > from a friend or user group. Or, if you know how to do an 8-bit binary
  119. > download, you can FTP it from us as cmp/binhex4.bin. Unfortunately, a
  120. > little bit of pulling yourself up by the bootstraps is required.
  121. > StuffIt Expander is a more modern and useful program which incoporates
  122. > the functionality of Binhex, while also decompressing files. It is
  123. > also available in cmp/ in both binary and binhexed forms.
  124. > A CD-ROM of the archives is commercially available from Pacific HiTech.
  125. > They can be contacted by phone at 800-765-8369,
  126. > fax at 801-278-2666, and email
  127. > at 71175.3152@compuserve.com. The CD-ROM is approximately $45 including 
  128. > shipping and handling.
  129. > Please note that we cannot test software for reliability on all Macintosh
  130. > configurations. As the software in this archive is generally non-commercial,
  131. > it may be less reliable and more prone to crashes than you are used to.
  132. > We highly recommend that you maintain an active backup procedure to protect
  133. > yourself even in the event of a system crash that results in the loss of
  134. > some of your data. Download and use all software in this archive at your own
  135. > risk.
  136. > The Info-Mac Moderators
  137. > info-mac-request@sumex-aim.stanford.edu
  138. >------  End Included Message  ------
  139.