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

Added support for right to left (R2L) languages using bidi algorithm #165

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

smijo149
Copy link
Contributor

@smijo149 smijo149 commented Apr 6, 2021

For Issue:

#163

Solution:

Use python package for bidi algorithm ( Bi-Directional Algorithm ) to transform text before drawing it into the pdf file.

Tests:

Tested both Hebrew (R2L Language) text image and English (L2R Language) text image and they gave expected results.

Copy link
Collaborator

@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.

Thanks, that will be very useful for many users.

@stweil stweil merged commit 24919ce into ocropus:master Apr 6, 2021
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.

2 participants