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

reverse Hebrew text in PDFs #51

Open
eranroz opened this issue Jun 17, 2016 · 0 comments
Open

reverse Hebrew text in PDFs #51

eranroz opened this issue Jun 17, 2016 · 0 comments

Comments

@eranroz
Copy link

eranroz commented Jun 17, 2016

Using Earwig's Copyvio Detector in lab with a Hebrew text PDF resulted in reversed order of characters within words, e.g the correct text is more or less [word[::-1] for word in words] :)
For ease of debug: Even Latin script (URLs / emails) may appear as reversed within this PDF.

Input PDF: http://img2.tapuz.co.il/CommunaFiles/53173603.pdf
(query:
http://tools.wmflabs.org/copyvios/?lang=he&project=wikipedia&title=%D7%A0%D7%99%D7%AA%D7%95%D7%97+%D7%91%D7%A8%D7%99%D7%90%D7%98%D7%A8%D7%99&oldid=&use_engine=0&use_links=0&turnitin=0&action=compare&url=http%3A%2F%2Fimg2.tapuz.co.il%2FCommunaFiles%2F53173603.pdf
)

Relevant code (PDF parser, using pdfminer):
earwigbot/wiki/copyvios/parsers.py
This may be a upstream issue in pdfminer, or something wrong with the decoding.

@earwig earwig transferred this issue from earwig/earwigbot Aug 20, 2024
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

No branches or pull requests

1 participant