Text::Tradition::Parser::CollateText(3)

NAME
Text::Tradition::Parser::CollateText

DESCRIPTION
For an overview of the package, see the documentation for the Text::Tradition module.

This module is meant for use with a set of text files saved from Word docs, which originated with the COLLATE collation program.

SUBROUTINES

parse
    parse( $graph, $opts );

    Takes an initialized graph and a hashref of options, which must include: - 'base' - the base text referenced by the variants - 'format' - the format of the variant list - 'data' - the variants, in the given format.

read_stone_base
    my $text_list = read_base( 'reference.txt', $collation );

    Takes a text file and a (presumed empty) collation object, adds the words as simple linear readings to the collation, and returns a hash of texts with line keys. This collation is now the starting point for application of apparatus entries in merge_base, e.g. from a CSV file or a Classical Text Editor file.

    The hash is of the form

     { chapter_name => { line_ref => { start => node, end => node } } }

merge_stone_apparatus
    Read an apparatus as output (presumably) by Collate. It should be reasonably regular in form, I hope. Merge the apparatus variants onto the appropriate lemma readings.