Skip to content

Commit

Permalink
add coordinates of the discarded text
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jan 10, 2025
1 parent 9adc814 commit a3dcfec
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,13 @@ else if (biblio.getE_Year().length() == 4)
String divID = KeyGen.getKey().substring(0, 7);
tei.append(" xml:id=\"_" + divID + "\"");
}

if (config.isGenerateTeiCoordinates("note")) {
String coords = LayoutTokensUtil.getCoordsString(discardedPieceTokens);
tei.append(" coords=\"" + coords + "\"");
}

// This text is not processed at the moment
tei.append(">" + TextUtilities.HTMLEncode(normalizeText(LayoutTokensUtil.toText(discardedPieceTokens))) + "</note>\n");
}
tei.append("\t\t\t</notesStmt>\n");
Expand Down

0 comments on commit a3dcfec

Please sign in to comment.