home *** CD-ROM | disk | FTP | other *** search
- Audio cassette database, labels, inventory tools? Oh no! Not again!!
-
- Yup, we're doing it again, and we're gonna keep on doing it until someone
- gets it right!
-
- I am the proud owner of several HUNDRED audio cassettes. Some are
- studio tapes; most are self-made recordings of CD's and record
- albums I own. I have seen and used several computer based cassette
- label making schemes, including:
-
-
- o MacDraw(tm) template upon which you fill in your own text or
- graphics
-
- o PC-based schemes which prompt you for text (some of which don't
- print the labels ferchrissakes!
-
- o Native postscript(tm) code template in which you change the text
-
- o Pure-ascii text with ascii cut- and fold- lines (ha ha)
-
- o Hypercard(tm) Stack(bm) database which prints nice labels
-
- o Latex style file
-
-
- None of these schemes is exactly what I want.
-
- I do not have several thousand dollars to give to Apple Computer for
- one of their Xerox Star rip-off clones (toasters), just to produce some
- cassette labels. I don't happen to like Xerox PARC's Notecards
- software, which incidentally was also stollen by Apple and was also
- given a fancier name.
-
- We have some Apple hardware (toasters) at work, but I would rather
- label my audio cassettes at home on my own time and on my own
- hardware. Since I don't have a postscript(tm) printer, the postscript(tm)
- template system is also useless to me.
-
- What's left?
-
- I ftp'd the latex style file from sun.soe.clarkson.edu and noticed that
- using the cassette style format as a database would make life
- miserable. First of all, it has a lot of Latex
- \LargeCommand[cokebottle]{longparametername}{\several\commands text}
- style commands. In addition to the tedium of typing in all of those
- commands (or writing a large set of editor macros to help), the source
- files are not so simple to parse when writing report programs for
- output other than cassette labels.
-
- So I retreated to that popular and hacky language AWK which runs on dos,
- mac-os, Unix, and lots of other places (not on cp/m, though :-(). I
- designed a minimal database format and wrote an awk program to generate
- latex album files for use with Sunil Podar's neato cassette latex style.
-
- My database format is simple. The first letter is the line identifier.
-
- k is KEY a short string which identifies the entry uniquely
- a is ARTIST the guy who wrote the music or whatever
- t is TITLE the title of the album or tape or what have you
- s is SONG an entry in the list of stuff on the tape
- o is OTHER comments you want on the tape label
- c is COMMENT stuff you do NOT want on the tape label but need in the database
- e is END a marker for the end-of-entry
-
- blank lines in the database files are ignored by the awk script.
-
- A sample Tape DataBase file p.tdb is included. To see what the script does,
- type something like
-
- % awk -f tape.awk < p.tdb
-
- and then examine the output in o.tex. Then you can type something like
-
- % latex p
-
- to see what the labels would look like.
-
- The script (tape.awk) yells at you if it gets confused or can't find
- some important fields in an entry. It always tries to recover and
- output a dummy string for the missing entry(ies). If there is no "e"
- field in an album entry, you are in deep trouble; the script is dumb.
-
- I designed this database scheme in 10 minutes and wrote the awk script in
- half an hour, then I added the comments field and ignore blank-line stuff.
- This readme file is taking longer than the entire database system to write!
-
- BUGS IN tape.awk
-
- The e END-OF-ENTRY field is an ugly hack should be fixed
-
- The output file is fixed "o.tex"
-
- Sunil's 2-albums-per-tape hack is weak
-
-
- TODO
-
- lots!!
-
- reports other than cassette labels
-
- a /bin/sh wrapper for the awk script
-
- ------------------------
-
- Macdraw was a trademark of Apple Computer. Then it became a trademark
- of some other software company which folded. Now, I believe, the Macdraw
- trademark belongs to Claris, or perhaps to Apple again. I'm sure some
- lawyer somewhere cares.
-
- Hypercard is a trademark of Apple Computer Inc., Cupertino
- California, which should not be confused with Apple Records.
-
- postscript is a trademark of another company which prefers law suits to
- innovation, namely Adobe Systems Inc.
-