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

Modernize code for renderers and remove filename conversion for Windows #4330

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

stweil
Copy link
Contributor

@stweil stweil commented Oct 22, 2024

Commit db52047 added the filename conversion for the hOCR renderer, but it was removed later for TSV in commit 6700edd.

Tesseract does not use a filename conversion anywhere else, so remove it for the other renderers, too.

Commit db52047 added the filename conversion for the hOCR renderer,
but it was removed later for TSV in commit 6700edd.

Tesseract does not use a filename conversion anywhere else, so remove it
for the other renderers, too.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The code in hocrrenderer.cpp was already modernized in commit db9c7e0.

@egorpugin
Copy link
Contributor

egorpugin commented Oct 22, 2024

For the future changes: is it possible to return unique ptr directly from GetIterator()?
If we know that caller must free memory, maybe it is better to return uptr?

upd.: This is general possible refactoring for all functions with similar behavior.

@amitdo amitdo merged commit 638868e into tesseract-ocr:main Oct 23, 2024
7 checks passed
@stweil stweil deleted the renderer branch October 25, 2024 05:48
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