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

A few refactors in some files #4225

Merged
merged 4 commits into from
Apr 26, 2024
Merged

Conversation

sadra-barikbin
Copy link
Contributor

Hi there!

A few tiny refactors in some files.

src/textord/tordmain.cpp Outdated Show resolved Hide resolved
Co-authored-by: Stefan Weil <sw@weilnetz.de>
Copy link
Contributor

@stweil stweil left a comment

Choose a reason for hiding this comment

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

With my two suggested changes old and new code should be equivalent and we are safe. Maybe the original patch would be better, but it might change the output of the debug tprintf, and I am not sure about that.

src/textord/tordmain.cpp Outdated Show resolved Hide resolved
src/textord/tordmain.cpp Outdated Show resolved Hide resolved
@egorpugin
Copy link
Contributor

Just revert and dont touch that condition.

@stweil
Copy link
Contributor

stweil commented Apr 25, 2024

Often it is easier if unrelated changes like in this pull request are split in separate pull requests, for example "Remove unused local variable", "Fix typo in comment", "Simplify code by using BlobGridSearch" and so on. Then those contributions are easy to review, and they can be merged quickly.

sadra-barikbin and others added 2 commits April 25, 2024 20:54
Co-authored-by: Stefan Weil <sw@weilnetz.de>
Co-authored-by: Stefan Weil <sw@weilnetz.de>
@sadra-barikbin
Copy link
Contributor Author

I made PRs #4226 , #4227 , #4228 and #4229 for the other changes.

Copy link
Contributor

@stweil stweil left a comment

Choose a reason for hiding this comment

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

Thank you.

@stweil stweil merged commit d461867 into tesseract-ocr:main Apr 26, 2024
6 of 7 checks passed
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.

3 participants