# Assume utf-8
binmode $stemma_fh, ':utf8';
my $stemma = Text::Tradition::Stemma->new(
- 'collation' => $self->collation,
'dot' => $stemma_fh );
$self->_add_stemma( $stemma ) if $stemma;
return $stemma;
my $tradition = Text::Tradition->new( %args );
# Parse the stemma data
-my $stemma = Text::Tradition::Stemma->new(
- 'collation' => $tradition->collation,
- 'dot' => $ARGV[1],
- );
+my $stemma = Text::Tradition::Stemma->new( 'dot' => $ARGV[1] );
my $wits = {};
map { $wits->{$_} = 1 } $stemma->witnesses;
use File::Temp;
use JSON;
use Text::Tradition::Analysis qw/ run_analysis wit_stringify /;
-use Text::Tradition::Collation;
use Text::Tradition::Stemma;
BEGIN { extends 'Catalyst::Controller' }
my @layerwits = $c->request->param('layerwits[]');
open my $stemma_fh, '<', \$dot;
binmode( $stemma_fh, ':encoding(UTF-8)' );
- my $emptycoll = Text::Tradition::Collation->new();
- my $tempstemma = Text::Tradition::Stemma->new(
- collation => $emptycoll, 'dot' => $stemma_fh );
+ my $tempstemma = Text::Tradition::Stemma->new( 'dot' => $stemma_fh );
my $svgopts = { size => [ 600, 350 ] };
if( @layerwits ) {
$svgopts->{'layerwits'} = \@layerwits;