Comparison for Java 26.11, XLSX, plain text cells.
CompareOptions options = new CompareOptions();
options.setDetalisationLevel(DetalisationLevel.LOW);
options.setWordsSeparatorChars(new char[] {' ', '\n', '\r', '\t', '\u00A0', '\u001F'});
options.setSensitivityOfComparison(90);
| Older | Newer | Result |
|---|---|---|
Draft |
DRAFT |
Draft, not marked |
RQ-3 |
rq-3 |
RQ-3, not marked |
Pump stops at max pressure |
Pump stops at MAX pressure |
older text, not marked |
Export |
Bulk export to cloud |
Bulk Export to cloud: insertions marked, but Export keeps the older case, so the result matches neither version |
The same happens with DetalisationLevel.MIDDLE. DetalisationLevel.HIGH marks the case changes, but character by character (D[raft]RAFT), which splits IDs and numbers apart. DOCX comparison marks the same edits correctly.
Expected: a word whose letter case changed is marked as deleted and inserted, e.g. [Draft]DRAFT, and the result shows the newer text.
Is there an option for case-sensitive comparison at the word levels?