Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge columns #12

Merged
merged 4 commits into from
Sep 27, 2023
Merged

Merge columns #12

merged 4 commits into from
Sep 27, 2023

Conversation

marijnkoolen
Copy link
Collaborator

Improved merging of columns so that overlapping text regions are merged, and other text regions remain as is. Lines are re-sort within merged text regions.

marijnkoolen and others added 4 commits August 1, 2023 14:35
This commit improves word-break detection, adds functionality for line height calculation and improves various other issues.
- Add functions for computing average vertical distances between two lines
- Add function to compute text height if not given in PageXML
- Improve `make_text_region_text` to resolve lower quotation marks both at the end of the word-break line and the start of the next line
- Improve reading PageXML from file, dir and archive
- Skip repeating headers when reading from multiple line-formatted text files
- Fix bug that returns the same line multiple times in `get_lines`
- improve merging of columns so that overlapping text regions are merged, and other text regions remain as is.
- add file info to PageXMLScan when reading scans from a file archive
@brambg brambg merged commit 4896ae7 into master Sep 27, 2023
8 checks passed
@brambg brambg deleted the merge_columns branch September 27, 2023 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants