Skip to content

Conversation

@Tenkeboks
Copy link

@Tenkeboks Tenkeboks commented Dec 8, 2025

fix: allow overlap between bounding boxes when checking if char is to the right of the span. This change uses the chars right edge for the condition, instead of the left edge. This allows overlap, without adding a threshold number. Improves superscript detection when char bbox overlaps slightly with previous span.

Tested with: https://doi.org/10.1177/1748006X17699145 Fixes #53

… the right of the span. This change uses the chars right edge for the condition, instead of the left edge. This allows overlap, without adding a threshold number. Improves superscript detection when char bbox overlaps slightly with previous span.

Tested with: https://doi.org/10.1177/1748006X17699145
Fixes datalab-to#53
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.

Superscript detection fails due to strict bbox overlap check

1 participant