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

[REF] split_textline #178

Merged
merged 2 commits into from
Oct 19, 2024
Merged

[REF] split_textline #178

merged 2 commits into from
Oct 19, 2024

Commits on Oct 19, 2024

  1. [REF] split_textline

    1. **Modular Functions**: The code is broken down into smaller functions (`_process_horizontal_cut`, `_process_vertical_cut`, and `_group_and_process_chars`) to handle specific tasks, making it easier to read and maintain.
    2. **Error Handling**: The try-except block was removed since the logic handles cases gracefully without needing to catch exceptions.
    3. **Type Hints**: Type hints were added for better code clarity and to help with type checking.
    bosd committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    ac221e6 View commit details
    Browse the repository at this point in the history
  2. [REF] _group_and_process_chars

    bosd committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    626a825 View commit details
    Browse the repository at this point in the history