home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2428 / readme < prev    next >
Encoding:
Text File  |  1991-01-01  |  4.1 KB  |  117 lines

  1. Audio cassette database, labels, inventory tools?  Oh no!  Not again!!
  2.  
  3. Yup, we're doing it again, and we're gonna keep on doing it until someone
  4. gets it right!
  5.  
  6. I am the proud owner of several HUNDRED audio cassettes.  Some are
  7. studio tapes; most are self-made recordings of CD's and record
  8. albums I own.  I have seen and used several computer based cassette
  9. label making schemes, including:
  10.  
  11.  
  12.  o   MacDraw(tm) template upon which you fill in your own text or
  13.      graphics
  14.  
  15.  o   PC-based schemes which prompt you for text (some of which don't
  16.      print the labels ferchrissakes!
  17.  
  18.  o   Native postscript(tm) code template in which you change the text
  19.  
  20.  o   Pure-ascii text with ascii cut- and fold- lines (ha ha)
  21.  
  22.  o   Hypercard(tm) Stack(bm) database which prints nice labels
  23.  
  24.  o   Latex style file
  25.  
  26.  
  27. None of these schemes is exactly what I want.
  28.  
  29. I do not have several thousand dollars to give to Apple Computer for
  30. one of their Xerox Star rip-off clones (toasters), just to produce some
  31. cassette labels.  I don't happen to like Xerox PARC's Notecards
  32. software, which incidentally was also stollen by Apple and was also
  33. given a fancier name.
  34.  
  35. We have some Apple hardware (toasters) at work, but I would rather
  36. label my audio cassettes at home on my own time and on my own
  37. hardware.  Since I don't have a postscript(tm) printer, the postscript(tm)
  38. template system is also useless to me.
  39.  
  40. What's left?
  41.  
  42. I ftp'd the latex style file from sun.soe.clarkson.edu and noticed that
  43. using the cassette style format as a database would make life
  44. miserable.  First of all, it has a lot of Latex
  45. \LargeCommand[cokebottle]{longparametername}{\several\commands text}
  46. style commands.  In addition to the tedium of typing in all of those
  47. commands (or writing a large set of editor macros to help), the source
  48. files are not so simple to parse when writing report programs for
  49. output other than cassette labels.
  50.  
  51. So I retreated to that popular and hacky language AWK which runs on dos,
  52. mac-os, Unix, and lots of other places (not on cp/m, though :-().  I
  53. designed a minimal database format and wrote an awk program to generate
  54. latex album files for use with Sunil Podar's neato cassette latex style.
  55.  
  56. My database format is simple.  The first letter is the line identifier.
  57.  
  58. k is KEY      a short string which identifies the entry uniquely
  59. a is ARTIST   the guy who wrote the music or whatever
  60. t is TITLE    the title of the album or tape or what have you
  61. s is SONG     an entry in the list of stuff on the tape
  62. o is OTHER    comments you want on the tape label
  63. c is COMMENT  stuff you do NOT want on the tape label but need in the database
  64. e is END      a marker for the end-of-entry
  65.  
  66. blank lines in the database files are ignored by the awk script.
  67.  
  68. A sample Tape DataBase file p.tdb is included.  To see what the script does,
  69. type something like
  70.  
  71. % awk -f tape.awk < p.tdb
  72.  
  73. and then examine the output in o.tex.  Then you can type something like
  74.  
  75. % latex p
  76.  
  77. to see what the labels would look like.
  78.  
  79. The script (tape.awk) yells at you if it gets confused or can't find
  80. some important fields in an entry.  It always tries to recover and
  81. output a dummy string for the missing entry(ies).  If there is no "e"
  82. field in an album entry, you are in deep trouble; the script is dumb.
  83.  
  84. I designed this database scheme in 10 minutes and wrote the awk script in
  85. half an hour, then I added the comments field and ignore blank-line stuff.
  86. This readme file is taking longer than the entire database system to write!
  87.  
  88. BUGS IN tape.awk
  89.  
  90.   The e END-OF-ENTRY field is an ugly hack should be fixed
  91.  
  92.   The output file is fixed "o.tex"
  93.  
  94.   Sunil's 2-albums-per-tape hack is weak
  95.  
  96.  
  97. TODO
  98.  
  99.   lots!!
  100.  
  101.   reports other than cassette labels
  102.  
  103.   a /bin/sh wrapper for the awk script
  104.  
  105. ------------------------
  106.  
  107. Macdraw was a trademark of Apple Computer.  Then it became a trademark
  108. of some other software company which folded.  Now, I believe, the Macdraw
  109. trademark belongs to Claris, or perhaps to Apple again.  I'm sure some
  110. lawyer somewhere cares.
  111.  
  112. Hypercard is a trademark of Apple Computer Inc., Cupertino
  113. California, which should not be confused with Apple Records.
  114.  
  115. postscript is a trademark of another company which prefers law suits to
  116. innovation, namely Adobe Systems Inc.
  117.