3 package Text::Tradition;
9 isa => 'Text::Tradition::Collation',
16 isa => 'ArrayRef[Text::Tradition::Witness]',
18 all_options => 'elements',
21 option_count => 'count',
22 sorted_options => 'sort',
26 # The user will usually be instantiating a Tradition object, and
27 # examining its collation. The information about the tradition can
28 # come via several routes:
29 # - graphML from CollateX or elsewhere, standalone
30 # - TEI parallel segmentation
31 # - Leuven-style spreadsheet of variants, converted to CSV, plus base text
32 # - apparatus pulled from CTE, plus base text
33 # From this we should be able to get basic witness information.
35 # Alternatively the user can just give us the uncollated texts. Then
36 # instead of passing a collation, s/he is passing a set of witnesses
37 # from which we will generate a collation. Those witnesses can be in
38 # plaintext or in TEI with certain constraints adopted.
40 # So the constructor for a tradition needs to take one of these infosets,
41 # and construct the collation and the witness objects.
44 __PACKAGE__->meta->make_immutable;