-
Notifications
You must be signed in to change notification settings - Fork 9
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
✨ feat(font & formula): More accurate recognition #75
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Introduce optional ascent and descent float attributes in document IL schema - Update schema definitions across Python, RNC, RNG, and XSD formats - Provides additional font metric information for more detailed typography representation
- ensure ascent and descent attributes are correctly assigned from font object - fix potential rendering issues due to incorrect font attribute mapping
- Enhance font subsetting configuration handling - Add conditional checks for font subsetting and mono processing - Ensure more flexible font processing during PDF generation
- Add comprehensive font metrics for multiple font variants - Implement dynamic font metrics assignment for different font types - Utilize functools.lru_cache for optimizing font character length calculations
…ing boxes - Add descent calculation for both vertical and horizontal text orientations - Adjust character bounding boxes by incorporating font descent metrics - Enhance font rendering accuracy by correctly applying descent offsets
- Add flake8 configuration in pyproject.toml - Set specific ignore rules for code style exceptions - Configure max line length to 88 characters
…graphs - Implement comprehensive descent removal for characters across different text compositions - Add support for handling descent in vertical and horizontal text orientations - Enhance paragraph box adjustment based on most common descent values - Optimize font retrieval using lru_cache for improved performance
- copy page_font_map to page_xobj_font_map for each xobj - ensure all fonts are available in xobj context
- Modify line width from 0.5 to 1 for improved visibility - Minor adjustment to graphic rendering parameters
- Modify get_layout method to use _get_layout as a helper method - Implement more robust layout detection with multiple position modes - Prioritize 'isolate_formula' layout when available - Simplify layout selection logic with fallback mechanisms
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.