Change namespace
Tara L Andrews [Thu, 21 Apr 2011 10:12:26 +0000 (12:12 +0200)]
lib/Text/Tradition/Graph.pm [moved from lib/Traditions/Graph.pm with 96% similarity]
lib/Text/Tradition/Graph/Position.pm [moved from lib/Traditions/Graph/Position.pm with 98% similarity]
lib/Text/Tradition/Parser/BaseText.pm [moved from lib/Traditions/Parser/BaseText.pm with 99% similarity]
lib/Text/Tradition/Parser/CSV.pm [moved from lib/Traditions/Parser/CSV.pm with 96% similarity]
lib/Text/Tradition/Parser/GraphML.pm [moved from lib/Traditions/Parser/GraphML.pm with 98% similarity]
lib/Text/Tradition/Parser/TEI.pm [moved from lib/Traditions/Parser/TEI.pm with 100% similarity]
lib/Text/Tradition/Schema.pm [moved from lib/Traditions/Schema.pm with 100% similarity]
lib/Text/Tradition/Schema/Result/Collation.pm [moved from lib/Traditions/Schema/Result/Collation.pm with 100% similarity]
lib/Text/Tradition/Schema/Result/Manuscript.pm [moved from lib/Traditions/Schema/Result/Manuscript.pm with 100% similarity]
lib/Text/Tradition/Schema/Result/Reading.pm [moved from lib/Traditions/Schema/Result/Reading.pm with 100% similarity]
lib/Text/Tradition/Schema/Result/Text.pm [moved from lib/Traditions/Schema/Result/Text.pm with 100% similarity]

similarity index 96%
rename from lib/Traditions/Graph.pm
rename to lib/Text/Tradition/Graph.pm
index 2c9efe8..125eded 100644 (file)
@@ -1,25 +1,25 @@
-package Traditions::Graph;
+package Text::Tradition::Graph;
 
 use strict;
 use warnings;
 use Graph::Easy;
 use IPC::Run qw( run binary );
 use Module::Load;
-use Traditions::Graph::Position;
+use Text::Tradition::Graph::Position;
 
 =head1 NAME
 
-(Text?)::Traditions::Graph
+Text::Tradition::Graph
 
 =head1 SYNOPSIS
 
-use Traditions::Graph;
+use Text::Tradition::Graph;
 
-my $text = Traditions::Graph->new( 'GraphML' => '/my/graphml/file.xml' );
-my $text = Traditions::Graph->new( 'TEI' => '/my/tei/file.xml' );
-my $text = Traditions::Graph->new( 'CSV' => '/my/csv/file.csv',
+my $text = Text::Tradition::Graph->new( 'GraphML' => '/my/graphml/file.xml' );
+my $text = Text::Tradition::Graph->new( 'TEI' => '/my/tei/file.xml' );
+my $text = Text::Tradition::Graph->new( 'CSV' => '/my/csv/file.csv',
                                    'base' => '/my/basefile.txt' );
-my $text = Traditions::Graph->new( 'CTE' => '/my/cte/file.txt',
+my $text = Text::Tradition::Graph->new( 'CTE' => '/my/cte/file.txt',
                                    'base' => '/my/basefile.txt' );
 
 my $svg_string = $text->as_svg();
@@ -96,7 +96,7 @@ sub new {
     bless( $self, $class );
 
     # Now do the parsing.
-    my $mod = "Traditions::Parser::$format";
+    my $mod = "Text::Tradition::Parser::$format";
     load( $mod );
     my @args = ( $opts{ $format } );
     if( $format =~ /^(CSV|CTE)$/ ) {
@@ -331,7 +331,7 @@ sub init_lemmatizer {
 
 sub make_positions {
     my( $self, $common_nodes, $paths ) = @_;
-    my $positions = Traditions::Graph::Position->new( $common_nodes, $paths );
+    my $positions = Text::Tradition::Graph::Position->new( $common_nodes, $paths );
     $self->{'positions'} = $positions;
 }
 
similarity index 98%
rename from lib/Traditions/Graph/Position.pm
rename to lib/Text/Tradition/Graph/Position.pm
index 2679ebe..3544bfb 100644 (file)
@@ -1,11 +1,11 @@
-package Traditions::Graph::Position;
+package Text::Tradition::Graph::Position;
 
 use strict;
 use warnings;
 
 =head1 NAME
 
-Traditions::Graph::Position
+Text::Tradition::Graph::Position
 
 =head1 SUMMARY
 
similarity index 99%
rename from lib/Traditions/Parser/BaseText.pm
rename to lib/Text/Tradition/Parser/BaseText.pm
index e4bfd4a..e1867e9 100644 (file)
@@ -1,4 +1,4 @@
-package Traditions::Parser::BaseText;
+package Text::Tradition::Parser::BaseText;
 
 use strict;
 use warnings;
similarity index 96%
rename from lib/Traditions/Parser/CSV.pm
rename to lib/Text/Tradition/Parser/CSV.pm
index 7ad8a61..d3d19ca 100644 (file)
@@ -1,9 +1,9 @@
-package Traditions::Parser::CSV;
+package Text::Tradition::Parser::CSV;
 
 use strict;
 use warnings;
 use Text::CSV::Simple;
-use Traditions::Parser::BaseText qw( merge_base );
+use Text::Tradition::Parser::BaseText qw( merge_base );
 
 # Takes a CSV file and a base text; returns a GraphML object.
 
similarity index 98%
rename from lib/Traditions/Parser/GraphML.pm
rename to lib/Text/Tradition/Parser/GraphML.pm
index 4662296..f36bea2 100644 (file)
@@ -1,8 +1,7 @@
-package Traditions::Parser::GraphML;
+package Text::Tradition::Parser::GraphML;
 
 use strict;
 use warnings;
-use Traditions::Graph;
 use XML::LibXML;
 use XML::LibXML::XPathContext;