add support for alignment table input
[scpubgit/stemmatology.git] / lib / Text / Tradition / Parser / CollateX.pm
index 63a5635..2ea2cad 100644 (file)
@@ -119,15 +119,13 @@ sub parse {
             $collation->end( $gnode );
         }
     }
+    
+    # TODO Need to populate $wit->path / uncorrected_path
 
-    # Record for each witness its sequence of readings, and determine
-    # the common nodes.
-    my @common_nodes = $collation->walk_witness_paths( $end_node );
-
-    # Now we have added the witnesses and their paths, so have also
-    # implicitly marked the common nodes. Now we can calculate their
-    # explicit positions.
-    $collation->calculate_positions( @common_nodes );
+    # Now we have added the witnesses and their paths, so we can 
+    # calculate their explicit positions.
+    # TODO CollateX does this, and we should just have it exported there.
+    $collation->calculate_ranks();
 }
     
 =back