You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
%reload_extautoreload%autoreload2fromcollateximport*collation=Collation()
collation.add_plain_witness("A","The big gray koala.")
collation.add_plain_witness("B", "The big gray koala.")
collation.add_plain_witness("C","The gray fuzzy koala lives in a tree.")
table=collate(collation)
print(table)
table alignment is correct:
+---+-----+-----+------+-------+-------+-----------------+---+
| A | The | big | gray | - | koala | - | . |
| B | The | big | gray | - | koala | - | . |
| C | The | - | gray | fuzzy | koala | lives in a tree | . |
+---+-----+-----+------+-------+-------+-----------------+---+
but TEI alignment doesn’t recognize that all instances of “koala” agree. When we run:
The “koala” readings all agree, and therefore should be output as plain text, and not inside a <rdg>.
Furthermore, there should not be two <rdg> children of the same <app> that have the same textual content. If we add another witness to remove the exact equality:
%reload_extautoreload%autoreload2fromcollateximport*collation=Collation()
collation.add_plain_witness("A","The big gray koala.")
collation.add_plain_witness("B", "The big gray koala.")
collation.add_plain_witness("D", "The big gray wombat.")
collation.add_plain_witness("C","The gray fuzzy koala lives in a tree.")
table=collate(collation,segmentation=False, near_match=True)
print(table)
The table output is again correct:
+---+-----+-----+------+-------+--------+-------+----+---+------+---+
| A | The | big | gray | - | koala | - | - | - | - | . |
| B | The | big | gray | - | koala | - | - | - | - | . |
| D | The | big | gray | - | wombat | - | - | - | - | . |
| C | The | - | gray | fuzzy | koala | lives | in | a | tree | . |
+---+-----+-----+------+-------+--------+-------+----+---+------+---+
but the TEI output incorrectly puts the koalas in different <rdg> elements, so that:
Given:
table alignment is correct:
but TEI alignment doesn’t recognize that all instances of “koala” agree. When we run:
we get:
The “koala” readings all agree, and therefore should be output as plain text, and not inside a
<rdg>
.Furthermore, there should not be two
<rdg>
children of the same<app>
that have the same textual content. If we add another witness to remove the exact equality:The table output is again correct:
but the TEI output incorrectly puts the koalas in different
<rdg>
elements, so that:outputs:
These may be consequences of a single problem, the failure to recognize that the koalas belong together.
The text was updated successfully, but these errors were encountered: