From: Tara L Andrews Date: Sun, 8 Apr 2012 12:44:51 +0000 (+0200) Subject: remove HACK from tradition build script X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=652e0b6e9eb954d91cb7fb8a41d48821ee72834d;p=scpubgit%2Fstemmatology.git remove HACK from tradition build script --- diff --git a/script/make_tradition.pl b/script/make_tradition.pl index 362758b..e7da55b 100755 --- a/script/make_tradition.pl +++ b/script/make_tradition.pl @@ -12,9 +12,9 @@ binmode STDERR, ":utf8"; binmode STDOUT, ":utf8"; eval { no warnings; binmode $DB::OUT, ":utf8"; }; -my( $informat, $inbase, $outformat, $help, $language, $name, $HACK, $sep, $stemmafile, +my( $informat, $inbase, $outformat, $help, $language, $name, $sep, $stemmafile, $dsn, $dbuser, $dbpass ) - = ( '', '', '', '', 1, 'Tradition', 0, "\t", '', + = ( '', '', '', '', 'Default', 'Tradition', "\t", '', "dbi:SQLite:dbname=stemmaweb/db/traditions.db", undef, undef ); GetOptions( 'i|in=s' => \$informat, @@ -27,7 +27,6 @@ GetOptions( 'i|in=s' => \$informat, 'u|user=s' => \$dbuser, 'p|pass=s' => \$dbpass, 'sep=s' => \$sep, - 'hack' => \$HACK, 'dsn=s' => \$dsn, ); @@ -76,16 +75,6 @@ if( $stemmafile ) { print STDERR "Saved stemma at $stemmafile\n" if $stemma; } -### Custom hacking -# Remove witnesses C, E, G in the Matthew text -if( $HACK ) { - # Set the funny name while we're at it - my $oldname = $tradition->name; - $oldname =~ s/(\d)/ $1/; - my $newname = "\x{17d}amanakagrut\x{2bf}iwn " . ucfirst( $oldname ); - $tradition->name( $newname ); -} - # Now output what we have been asked to. if( $outformat eq 'stemma' ) { my $cdata = character_input( $tradition->collation->make_alignment_table );