diff --git a/grobid-core/src/main/java/org/grobid/core/document/TEIFormatter.java b/grobid-core/src/main/java/org/grobid/core/document/TEIFormatter.java index d546ba7040..da96f8ea6e 100755 --- a/grobid-core/src/main/java/org/grobid/core/document/TEIFormatter.java +++ b/grobid-core/src/main/java/org/grobid/core/document/TEIFormatter.java @@ -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))) + "\n"); } tei.append("\t\t\t\n");