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

bug/right to left languages #3927

Open
nizar2yas opened this issue Feb 18, 2025 · 0 comments
Open

bug/right to left languages #3927

nizar2yas opened this issue Feb 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@nizar2yas
Copy link

Describe the bug
for right to left languages the output of reading a document is printed left to right,
for example instead of printing "Hello world", in arabic for example, the output print : "Dlor wolleh"

To Reproduce

from unstructured.partition.pdf import partition_pdf
elements=partition_pdf(
          filename=file_path,
          languages= languages,
          strategy="hi_res",
      )

elements_dict = [el.to_dict() for el in elements]

Expected behavior
the output text is printed right to left sentences

@nizar2yas nizar2yas added the bug Something isn't working label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant