home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / Libraries / VideoToolbox 95.04.18 / Utilities / CVNetConvert / test.fmt < prev    next >
Encoding:
Text File  |  1992-06-17  |  3.3 KB  |  81 lines  |  [TEXT/KAHL]

  1. $L$C12$F$C22($I)$C43<$A>
  2. $Maaaabbbb        (This is used by Macs only.)
  3. $P^# This is a test of Prolog..
  4. # Unix Mail format output.
  5. # You may put multiple lines as prolog and epilog.
  6.  
  7. # Blank lines are allowed as part of prolog or epilog text,
  8. # but they should not be present between $M, $P, $E specifications.
  9. # That is, no blank lines after the line containing the quote
  10. # character below and the line that begins with $E.
  11. ^
  12. $E^# This is a test of Epilog..
  13. # End of output.
  14. ^
  15.  
  16.  
  17. Filename: test.fmt
  18. Example of output:
  19. Abramov    Israel    (Brooklyn College)   <ixrbc@cunyvm.bitnet>
  20.  
  21.  
  22. ---------------------------------------------------------------------------
  23. To Prepare Conversion Format Specification File:
  24.  
  25. The first line of the format file specifies the record format. You may use 
  26. the following variable names. All other characters not listed below will 
  27. be written out to the output as is.
  28.  
  29. $L -- last name
  30. $F -- first name & initial
  31. $I -- institutional affiliation
  32. $A -- address (e-mail)
  33. $T -- TAB character
  34. $N -- NEW LINE character (LF for UNIX, CRLF for MSDOS)
  35. $Cnn -- advance to column nn if possible (if not past it already)
  36.  
  37. For example, this format line
  38.     $L$C12$F$C22($I)$C43<$A>,
  39. produces a file suitable for UNIX "mail/sendmail":
  40.     Abramov    Israel    (Brooklyn College)   <ixrbc@cunyvm.bitnet>,
  41.  
  42. On the second line, a line beginning with $M may appear optionally. If present,
  43. it specifies the output file's Macintosh file type and creator (ignored unless 
  44. the program is running on a Mac).  If not present, the file type/creator
  45. will be set to that of MacWrite text file.
  46.  
  47. After the $M line, or on the second line if $M line does not appear,
  48. a line beginning with $P may appear optionally (which may continue for
  49. multiple lines).  If present, it will specify the prolog, text placed
  50. at the beginning of the output file before all address records.
  51. After this, a line beginning with $E may appear optionally (which
  52. may continue for multiple lines).  If present, it will specify the
  53. epilog, text placed at the end of the output file after all
  54. address records.  
  55.  
  56. $M, $P, $E must appear in that order if all three are present.
  57. Not all of them have to be present, e.g., if no prolog is needed
  58. but epilog is required, $M, $E lines should be entered in that order.
  59.  
  60. There may not be any blank or extraneous lines between the first line
  61. and $M.  Similarly, no blank or extraneous lines should be present
  62. between $M, $P, $E specifications.  However, blank lines are allowed
  63. within the quoted text for the prolog and epilog. 
  64.  
  65. $M, $P, $E must appear at column 1 without any leading spaces.
  66.  
  67. $Mttttcccc -- specify the output file's four-character Macintosh type 
  68.     (e.g. TEXT) and creator (e.g. MACA). The rest of the line is ignored.
  69. $P^prolog text^ -- Place the text between quote chars at the beginning of
  70.     the output file.
  71. $E^epilog text^ -- Place the text between quote chars at the end of the
  72.     output file.
  73.  
  74. The prolog and epilog may extend over many lines. The character that 
  75. immediately follows $P and $E is used as the "quote" character to 
  76. mark the range of text for prolog and epilog.  The quote char may be any 
  77. printable character that is not used in the quoted text for the 
  78. prolog and epilog. The rest of the line after the terminating quote is 
  79. ignored. After the optional $M, $P, and $E the rest of the file is ignored.
  80.  
  81.