home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume13
/
casette-lbl
/
README
< prev
Wrap
Text File
|
1988-01-31
|
4KB
|
102 lines
Cassette label formatting programs:
Build these with
% make
and install with
% make install
Dimensions, fonts, and other tweakable parameters are in dimensions.h.
This was developed under UNIX 4.2 but ought to port to System V and
other flavors easily. Possible porting considerations are:
bcopy() -- memcpy() (or something) in System V.
fgets() -- reads line up to AND INCLUDING newline.
perror() -- prints diagnostic error message for system calls.
Happy listening!
Cassette:
Cassette takes as input files describing the title, artist, and songs
on the sides of a cassette tape, and sends a PostScript(TM) description
of a cassette label suitable for sending to a high-resolution printer
(such as a laserprinter) to the standard output. The resulting label
may be inserted into a standard-issue cassette tape case.
The input file format is the following:
One file for each album (collection of artist, title, and songs).
The first line of each file is the artist, the second is the title,
the third is the noise reduction scheme used, and the songs are
listed one-per-line thereafter.
An empty title line signifies a self-titled album.
An empty noise-reduction line indicates no noise reduction used.
An empty song line divides songs on the first side of the tape
from those on the second side (a la two-record set).
Leading and trailing white space on any line is not significant.
The cassette program copes with:
1) Extra-long artist, title, and song names.
2) Recognizing Dolby(TM) B and C (and outputting the Dolby symbol).
3) Long song list -- outputs an extended label outline.
4) Self-titled albums
5) One side of a tape unused.
And much, much more.
Syntax:
cassette [-n] <album1 file> [<album2 file>]
The '-n' option triggers numbering of the songs.
Printlabels:
Printlabels is a simplistic bourne-shell script that takes the output
of cassette (above) and surrounds it with PostScript(TM) commands to
orient the output for more efficient printing on an 8 1/2 by 11 page.
The output of Printlabels is sent to the standard output.
Four non-extended labels or two extended ones can fit on a page, and
page-feeds are inserted every four labels automatically.
Syntax:
printlabels [-a] [-m] <label file> [<label file>...]
The '-a' option places the labels adjacent to one another
for easier paper cutting.
The '-m' option enables manual feeding of the printer (for
thick paper and such).
Known Bugs:
On a single tape side, titles and artists longer than about
80 characters or songlists longer than about 20 songs overflow
the available room.
The manual-feed option to 'printlabels' might only work on the
Apple Laserwriter Plus(TM).
If an album has a long song list that requires an extended area to
hold it, the label must be printed with 'printlabels', or the
label definition must be offset into the page.
'Printlabels' automatically fits four labels to a page even if the
labels have an extension area (and thus won't fit).
The '-a' and '-m' flags may not be reversed in order on the command line.
Example:
% cassette -n album1.sample album2.sample > label1.ps
% cassette -n double.sample > label2.ps
% printlabels -a -m label1.ps label2.ps | lpr -Plaser
Bug reports/fixes or enhancements may be sent to me (Tom Smith) at
{hplabs, ucbvax!sun!sunncal}!analog!smith
Copyright (C) 1987, Thomas H. Smith -- San Francisco, California
Permission is granted to any individual or institution
to use, copy, modify, or redistribute this software so long as it
is not sold for profit and provided this copyright notice is retained.
PostScript is a registered trademark of Adobe Systems, Inc.
The name 'Dolby' and the Dolby symbol are trademarks
of Dolby Industries, Inc.