Closed jjmccollum closed 2 years ago
The changed proposed here is pretty much correct, except you apparently need to use strcmp
with the output of rdg.name()
:
if (strcmp(rdg.name(), "rdg") != 0 && strcmp(rdg.name(), "witDetail") != 0) {
continue;
}
This is now passing unit tests on dev
, so I'll consider this issue resolved.
To ensure that TEI XML inputs to
teiphy
can also be used withopen-cbgm
, the parsing ofrdg
elements invariation_unit.cpp
should be made more flexible and extended towitDetail
elements, as well. This should require only a few minor changes to the loop through the readings in the constructor:should be changed to
To ensure matches between the children of the
app
element and the nodes in the local stemma, bothrdg
andwitDetail
elements will still be expected to have IDs in the form of@xml:id
,@id
, or@n
attributes.