return join( "\n", @result );
}
-=head2 alignment_table( $use_refs, $include_witnesses )
+=head2 alignment_table
Return a reference to an alignment table, in a slightly enhanced CollateX
format which looks like this:
... ],
length => TEXTLEN };
-If $use_refs is set to 1, the reading object is returned in the table
-instead of READINGTEXT; if not, the text of the reading is returned.
-
-If $include_witnesses is set to a hashref, only the witnesses whose sigil
-keys have a true hash value will be included.
-
=cut
sub alignment_table {
return @filled_row;
}
+
=head1 NAVIGATION METHODS
=head2 reading_sequence( $first, $last, $sigil, $backup )
is( ref( $ptwit ), 'Text::Tradition::Witness', 'Created a witness' );
if( $ptwit ) {
is( $ptwit->sigil, 'A', "Witness has correct sigil" );
+ $c->make_witness_path( $ptwit );
is( $c->path_text( $ptwit->sigil ), $str, "Witness has correct text" );
}
no Moose::Util::TypeConstraints;
has 'tradition' => (
- 'is' => 'ro',
- 'isa' => 'Text::Tradition',
- 'required' => 1,
- weak_ref => 1
+ is => 'ro',
+ isa => 'Text::Tradition',
+ required => 1,
+ weak_ref => 1
);
# Sigil. Required identifier for a witness, but may be found inside
'name' => $self->identifier,
};
if( $self->is_layered ) {
- my @lwlist = map { { 't' => $_ || '' } } @{$self->uncorrected};
+ my @lwlist = map { { 't' => $_ || '' } } @{$self->layertext};
$obj->{'layertokens'} = \@lwlist;
}
return $obj;
is( ref( $ptwit ), 'Text::Tradition::Witness', 'Created a witness' );
if( $ptwit ) {
is( $ptwit->sigil, 'A', "Witness has correct sigil" );
+ $c->make_witness_path( $ptwit );
is( $c->path_text( $ptwit->sigil ), $str, "Witness has correct text" );
}