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

Fix margins #28

Merged
merged 3 commits into from
Feb 1, 2022
Merged

Fix margins #28

merged 3 commits into from
Feb 1, 2022

Conversation

bertsky
Copy link
Collaborator

@bertsky bertsky commented Jan 31, 2022

No description provided.

Copy link
Member

@kba kba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is much clearer and more importantly, looks correct :) I am still learning new things about ALTO/PAGE printspace/border

# ║└───┘ ║ ╔═══════╗ ║║ ║ ║ └───┘
# ║ ║ ║ ║ ║║ ║ ║
# ╚═══════╝ ╚═══════╝ ╚╝ ╚══╝
#
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very useful. Pretty, too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ocrd_page_to_alto/convert.py Outdated Show resolved Hide resolved
@@ -49,3 +49,18 @@ def get_nth_textequiv(reg_page, textequiv_index, textequiv_fallback_strategy):
else:
return textequivs[textequiv_index].Unicode

def contains(el, bbox):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we move forward with ALTO support in core this might be a useful addition to ocrds_utils.

ocrd_page_to_alto/convert.py Outdated Show resolved Hide resolved
ocrd_page_to_alto/convert.py Outdated Show resolved Hide resolved
ocrd_page_to_alto/convert.py Outdated Show resolved Hide resolved
@kba kba merged commit f107c97 into OCR-D:master Feb 1, 2022
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