if ( $rel eq 'transposition' || $rel eq 'repetition' ) {
# Check that the two readings do (for a repetition) or do not (for
# a transposition) appear in the same witness.
+ # TODO this might be called before witness paths are set...
my %seen_wits;
map { $seen_wits{$_} = 1 } $c->reading_witnesses( $source );
foreach my $w ( $c->reading_witnesses( $target ) ) {
use warnings;
use Text::Tradition::Directory;
+binmode STDERR, ':utf8';
+
my( $dsn, $user, $pass ) = @ARGV;
my $connect_args = { dsn => $dsn };
my $tradition = $dir->lookup( $id );
print STDERR "Processing tradition " . $tradition->name . "\n";
foreach my $reading ( $tradition->collation->readings ) {
+ next if $reading->is_meta;
$reading->alter_text( strip_punct( $reading->text ) );
}
$tradition->collation->flatten_ranks;