2022-07-29 Updated: 2022-08-10
- For the post-processing production pipeline, we need to move all the solitary content-bearing witnesses either up or down to their preceding or following app elements. Here is a helpful XPath expression to isolate all the content-bearing solitary witnesses:
//app[count(descendant::rdg) = 1][rdgGrp/@n ! matches(., '[a-z]{2,}')]//rdg
- Alignment disruption across multiple apps, due to alignment of empty normalized tokens
Solved! moved
<pb>
to inlineEmpty set in the Python collation script. The extract() function does not add newline characters around inlineEmpty set of elements.
<app>
<rdgGrp n="['fathers', 'account']">
<rdg wit="fMS">fathers account </rdg>
</rdgGrp>
<rdgGrp n="['father’s']">
<rdg wit="f1818">father’s </rdg>
<rdg wit="f1823">father’s </rdg>
<rdg wit="fThomas">father’s </rdg>
<rdg wit="f1831">father’s </rdg>
</rdgGrp>
</app>
<app>
<rdgGrp n="['ac']">
<rdg wit="f1818">ac </rdg>
<rdg wit="f1823">ac </rdg>
<rdg wit="fThomas">ac </rdg>
</rdgGrp>
<rdgGrp n="['account:']">
<rdg wit="f1831">account: </rdg>
</rdgGrp>
</app>
<app>
<rdgGrp n="['']">
<rdg wit="f1818"><pb xml:id="F1818_v3_071" n="067"/> </rdg>
<rdg wit="f1823"><pb xml:id="F1823_v2_428" n="155"/> </rdg>
<rdg wit="fThomas"><pb xml:id="F1818_v3_071" n="067"/> </rdg>
<rdg wit="fMS"><lb n="c57-0118__main__17"/> </rdg>
</rdgGrp>
</app>
<app>
<rdgGrp n="['count:']">
<rdg wit="f1818">count: </rdg>
<rdg wit="f1823">count: </rdg>
<rdg wit="fThomas">count: </rdg>
</rdgGrp>
</app>
- SGA Manuscript paragraphs only make one token at starting point, so they don't align with paragraph endings / beginnings. Solved by pre-processing to add end-p tags to match across all the editions.
<app>
<rdgGrp n="['afterwards', 'found.', '<p/>']">
<rdg wit="f1818">afterwards found. <p eID="novel1_letter4_chapter20_div4_div22_p5"/> </rdg>
<rdg wit="f1823">afterwards found. <p eID="novel1_letter4_chapter20_div4_div21_p5"/> </rdg>
<rdg wit="fThomas">afterwards found. <p eID="novel1_letter4_chapter20_div4_div22_p5"/> </rdg>
<rdg wit="f1831">afterwards found. <p eID="novel1_letter4_chapter21_div4_div21_p5"/> </rdg>
<rdg wit="fMS">afterwards found. <milestone unit="tei:p"/> </rdg>
</rdgGrp>
</app>
<app>
<rdgGrp n="['']">
<rdg wit="fMS"><lb n="c57-0118__main__32"/> </rdg>
</rdgGrp>
<rdgGrp n="['<p/>']">
<rdg wit="f1818"><p sID="novel1_letter4_chapter20_div4_div22_p6"/> </rdg>
<rdg wit="f1823"><p sID="novel1_letter4_chapter20_div4_div21_p6"/> </rdg>
<rdg wit="fThomas"><p sID="novel1_letter4_chapter20_div4_div22_p6"/> </rdg>
<rdg wit="f1831"><p sID="novel1_letter4_chapter21_div4_div21_p6"/> </rdg>
</rdgGrp>
</app>
<app>
<rdgGrp n="['another', 'woman', 'confirmed', 'the']">
<rdg wit="f1818">Another woman confirmed the </rdg>
<rdg wit="f1823">Another woman confirmed the </rdg>
<rdg wit="fThomas">Another woman confirmed the </rdg>
<rdg wit="f1831">Another woman confirmed the </rdg>
<rdg wit="fMS">Another woman confirmed the </rdg>
</rdgGrp>
</app>