home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / (Utilities) / CVNetConvert / basic.fmt next >
Encoding:
Text File  |  1992-06-17  |  3.0 KB  |  72 lines

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