#!/usr/bin/perl
$v = 20;
open (PS_OUT, "> plaque_names.ps");
select PS_OUT;
chomp (@data = <DATA>);
#my $fontname = "Helvetica";
my $fontname = "Times";
my $largesize = 14;
my $smallsize = 10;
print <<PREAMBLE;
%!PS
%---------- Procedures ----------
/cm {28.3464567 mul} def
%---------- Postscript ----------
PREAMBLE
for ($x=0; $x<=$#data; $x++) {
if ($x % 3 == 0) {
for ($y=1; $y<=4; $y++) {
$name = shift @data;
$store = shift @data;
$date = shift @data;
($firstname, $surname) = split(/ /, $name);
print $y * 4 . " cm " . $v . " cm moveto\n";
print "/$fontname-Bold findfont $largesize scalefont setfont\n";
# print "($firstname) dup stringwidth pop 2 div neg 0 rmoveto show\n";
print "($name) dup stringwidth pop 2 div neg 0 rmoveto show\n";
# print $y * 4 . " cm " . ($v - 0.75) . " cm moveto\n";
print $y * 4 . " cm " . ($v - 0.5) . " cm moveto\n";
# print "/$fontname-Bold findfont $largesize scalefont setfont\n";
print "/$fontname-Bold findfont $smallsize scalefont setfont\n";
# print "($surname) dup stringwidth pop 2 div neg 0 rmoveto show\n";
print "($store) dup stringwidth pop 2 div neg 0 rmoveto show\n";
# print $y * 4 - 1.5 . " cm " . ($v - 1.25) . " cm moveto\n";
print $y * 4 . " cm " . ($v - 1.0) . " cm moveto\n";
print "/$fontname findfont $smallsize scalefont setfont\n";
# print "($store) show\n";
print "($date) dup stringwidth pop 2 div neg 0 rmoveto show\n";
}
print "\n";
$v-=4;
}
}
print "showpage\n";
close PS_OUT;
__DATA__
Leann Mckneand
Store 592
January 2005
Angela Schuessler
Store 0593
January 2005
Rufus Smith
Store 2220
January 2005
Sara Doss
Store 2310
January 2005
Laynette Mccray
Store 2319
January 2005
Atalissa Vaughn
Store 2394
January 2005
Alex Camarrillo
Store 0903
January 2005
Roseann Lyson
Store 1409
January 2005
Jon Weller
Store 2352
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005
Jon Doh
Store 5555
January 2005