Tara Andrews

NAME

Text::Tradition::Parser::Util

DESCRIPTION

A collection of utilities used by multiple Text::Tradition parsers. Probably not of external interest.

METHODS

collate_variants( $collation, @reading_ranges )

Given a set of readings in the form ( lemma_start, lemma_end, rdg1_start, rdg1_end, ... ) walks through each to identify those readings that are identical. The collation is a Text::Tradition::Collation object; the elements of @readings are Text::Tradition::Collation::Reading objects that appear on the collation graph.

cmp_str

Don't use this. Really.

check_for_repeated( @readings )

Given an array of items, returns any items that appear in the array more than once.

add_hash_entry( $hash, $key, $entry )

Very simple utility for adding $entry to the list at $hash->{$key}.

BUGS / TODO

  • Get rid of abomination that is cmp_str.

LICENSE

This package is free software and is provided "as is" without express or implied warranty. You can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Tara L Andrews <aurum@cpan.org>