#!/usr/local/bin/perl #unshift (@INC, "/home/global-language/PERL"); &parse_form_data (*simple_form); $query = $simple_form{'query'}; $frametype = $simple_form{'frametype'}; $type = $simple_form{'type'}; $search = $simple_form{'search'}; $skel = $simple_form{'skel'}; $ctext = $simple_form{'ctext'}; $format = $simple_form{'format'}; $CAT = "/bin/cat"; $SED = "/bin/sed"; $EGREP = "/bin/egrep"; $ZCAT = "/bin/zcat"; $GZCAT = "/bin/zcat"; $SKEL = "/home/global-language/bin/enhaml"; $TAB = "/home/global-language/bin/tab2html"; $GREEK = "/home/global-language/bin/wwwgreek"; $SGMLGREP = "/home/global-language/bin/sgmlgrep3"; #$CGREP = "/home/global-language/bin/fooctextgrep"; $CGREP = "/home/global-language/bin/ctextgrep"; #$CGREP = "/usr/local/share/bin/cgrep"; $MATCH = "/home/global-language/bin/enhammatch.perl"; $VARP = "/home/global-language/bin/varp"; $enfile = "/home/global-language/HTML/enham2.html"; &printheader (); #unless ($frametype eq "frames") { # &printoedbar (); #} if ($frametype eq "frames") { $page = "corpusframe"; $align = "top"; } else { $page = "corpus"; $align = "left"; } if ( $ARGV[0] eq '-p' ) { shift; $printit = 1; } else { $printit = 1; } if ($frametype eq "frames") { # require ("quicksearchframe.pl"); } else { # require ("quicksearch.pl"); } if ($type eq "F1") { $filetype = "First Folio"; $color = "red"; $enfile = "/home/global-language/HTML/F1.hamlet.html"; } elsif ($type eq "Q2") { $filetype = "Second Quarto"; $color = "green"; } elsif ($type eq "F1 Only") { $opt = "F1"; $filetype = "First Folio Only"; $skel = "yes"; $color = "red"; } elsif ($type eq "Q2 Only") { $opt = "Q2"; $filetype = "Second Quarto Only"; $skel = "yes"; $color = "green"; } else { $filetype = "Enfolded"; $color = "blue"; } #require ("authillus.pl"); if ($search eq "yes") { $format = "Exact Spellings"; $qquery = $query; unless ($query =~ /^[0-9]*$/) { if ($ctext > 100) { $ctext = 100; } } if ($query =~ /^[0-9]*$/) { $query =~ s/^/\\b/g; $query =~ s/$/\\b/g; $format = "Exact Spellings"; } if ($format eq "Variant Spellings") { $query = `/home/global-language/bin/varp \"$query\"`; # print "
/$&/g; s/<\/quote>/$&<\/blockquote>/g; s// $&/g; s/<\/tPage>/$&<\/center>/g; s/ /{$&/g; s/<\/gloss>/$&}/g; s/ /[$&/g; s/<\/trailer>/$&]/g; s/ /$&/g; s/<\/spkr>/$&<\/i>/g; #s/ /$& <\/a>/g; #s/
/$&
<\/a>/g; s/
/$& <\/a>/g; s/
\n";
print "
";
}
elsif ($enfile =~ /^.*Bronte.J.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Cather..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Chaucer..*$/) {
print "
";
}
elsif ($enfile =~ /^.*\/ColWork.*$/) {
print "
";
}
elsif ($enfile =~ /^.*\/Coleridge..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Cooper..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Crane..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Crevecoeur..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Darwin..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Dickens.C.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Dickens.[G-Z].*$/) {
print "
";
}
elsif ($enfile =~ /^.*Donne..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Doy.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Douglass..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Dou[A-R].*$/) {
print "
";
}
elsif ($enfile =~ /^.*Eliot.Prufrock.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Eliot.Poems.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Eliot..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Emerson..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Fra[A-Z2].*$/) {
print "
";
}
elsif ($enfile =~ /^.*Franklin..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Frost.*$/) {
print "
";
}
elsif ($enfile =~ /^.*FroPoem.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Godwin..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Hardy..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Hawthorne..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Irving..*$/) {
print "
";
}
elsif ($enfile =~ /^.*James..*$/) {
print "
";
}
elsif ($enfile =~ /^.*.Jam.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Jefferson..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Jonson..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Kip.*$/) {
print "
";
}
elsif ($enfile =~ /^.*\/London..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Melville..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Milton.A.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Milton.P.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Milton.S.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Milton.Th.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Mil67PL.*$/) {
print "
";
}
elsif ($enfile =~ /^.*\/Poe.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Scott.*$/) {
print "
";
}
elsif ($enfile =~ /^.*ScoCasD*.*$/) {
print "
";
}
elsif ($enfile =~ /^.*ScoPoem.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Shakespeare.*$/) {
print "
";
}
elsif ($enfile =~ /^.1609Son.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Q..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Shaw..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Stevenson..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Stowe..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Thoreau..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Trollope..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Twain..*$/) {
print "
";
}
elsif ($enfile =~ /^.*TwaMiss..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Wells..*$/) {
print "
";
}
elsif ($enfile =~ /^.*Wollstonecraft.*$/) {
print "
";
}
elsif ($enfile =~ /^.*WolM.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Woolf.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Woo[D-IK-Z].*$/) {
print "
";
}
elsif ($enfile =~ /^.*Wordsworth.Coleridge.*$/) {
print "
";
}
#if ($enfile =~ /^.*\/Wordsworth..*$/) {
# print "
";
#}
elsif ($enfile =~ /^.*Wordsworth.Excursion.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Wordsworth.Prelude.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Wordsworth.Immortality.*$/) {
print "
";
}
elsif ($enfile =~ /^.*Yea[E,P].*$/) {
print "
";
}
}
sub printhamlettpage
{
print "
\n";
# print "
\n";
# print "
\n";
} else {
# print "
\n";
print "
\n";
# print "
\n";
}
print "| Q2 | \n"; print "Enfolded | \n"; print "F1 | \n"; print "
|---|