unstructured icon indicating copy to clipboard operation
unstructured copied to clipboard

bug/right to left languages

Open nizar2yas opened this issue 1 year ago • 3 comments

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 avatar Feb 18 '25 18:02 nizar2yas

@nizar2yas hello, have you found a solution for that?

rhajou avatar Jul 27 '25 10:07 rhajou

@PastelStorm @rhajou Can I pick this up? I can solve it correctly. I'd love to contribute

Crystora avatar Mar 31 '26 13:03 Crystora

@Crystora can you explain how to solve it

ma7555 avatar Jul 05 '26 08:07 ma7555