-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(styles_and_formulas): improve code readability and maintaina…
…bility - add LEFT_BRACKET and RIGHT_BRACKET imports for better readability - simplify is_corner_mark condition with improved formatting - use regular expression for is_formulas_font method - replace bracket character checks with LEFT_BRACKET and RIGHT_BRACKET constants refactor(typesetting): enhance code structure and logic - improve assert statements for better readability - simplify Box creation in get_box method - add add_watermark method to render_page - streamline create_passthrough_composition call - optimize space_width calculation - simplify line height and unit width checks - update TypesettingUnit creation in create_typesetting_units refactor(layout_helper): update and expand constants - add new cid characters to HEIGHT_NOT_USFUL_CHAR_IN_CHAR - define LEFT_BRACKET and RIGHT_BRACKET constants for bracket characters refactor(fontmap): enhance font mapping and initialization - initialize fontid2font dictionary with base, fallback, and kai fonts - handle different font types and their attributes - improve font mapping logic for better accuracy
- Loading branch information
Showing
4 changed files
with
121 additions
and
99 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.