PRImA-Research-Lab / prima-page-viewer

Java based viewer for PAGE XML files (layout + text content). Also supports ALTO XML, FineReader XML, and HOCR.
Apache License 2.0
34 stars 9 forks source link

textlines not displayed #13

Closed bertsky closed 4 years ago

bertsky commented 4 years ago

I believe I found a bug in whether or not PageViewer enables the Lines button in the main toolbar.

When the only textlines of the document are on a non-toplevel region (e.g. a table), then the page will be shows as if it had none.

The cause seems to be that DISPLAY_TEXTLINES is only enabled when org.primaresearch.dla.page.layout.PageLayout.hasLowLevelTextObject() returns true for TextLine, but that function does not enter the recursive region hierarchy.

bertsky commented 4 years ago

(So maybe this issue should be moved to prima-core-libs?)

chris1010010 commented 4 years ago

Should work now, please test

bertsky commented 4 years ago

Should work now, please test

It does (1.4.05) – thank you very much!