RED-9194: roll back single digit headline change
This commit is contained in:
parent
9f7ed974ec
commit
2e2f30ba35
@ -77,14 +77,10 @@ public class DocuMineClassificationService {
|
|||||||
textBlock.setClassification(PageBlockType.OTHER);
|
textBlock.setClassification(PageBlockType.OTHER);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (MarkedContentUtils.intersects(textBlock, page.getMarkedContentBboxPerType(), MarkedContentUtils.HEADER) || (PositionUtils.isOverBodyTextFrame(bodyTextFrame,
|
if (MarkedContentUtils.intersects(textBlock, page.getMarkedContentBboxPerType(), MarkedContentUtils.HEADER) //
|
||||||
textBlock,
|
|| (PositionUtils.isOverBodyTextFrame(bodyTextFrame, textBlock, page.getRotation()) //
|
||||||
page.getRotation()) && (
|
&& (document.getFontSizeCounter().getMostPopular() == null //
|
||||||
document.getFontSizeCounter().getMostPopular()
|
|| textBlock.getHighestFontSize() <= document.getFontSizeCounter().getMostPopular()))) {
|
||||||
== null
|
|
||||||
|| textBlock.getHighestFontSize()
|
|
||||||
<= document.getFontSizeCounter()
|
|
||||||
.getMostPopular()))) {
|
|
||||||
textBlock.setClassification(PageBlockType.HEADER);
|
textBlock.setClassification(PageBlockType.HEADER);
|
||||||
|
|
||||||
} else if (MarkedContentUtils.intersects(textBlock, page.getMarkedContentBboxPerType(), MarkedContentUtils.FOOTER)
|
} else if (MarkedContentUtils.intersects(textBlock, page.getMarkedContentBboxPerType(), MarkedContentUtils.FOOTER)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user