Text Extraction Errors with Turkish Characters in Digital PDFs #2449
AirMaster101
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Docling Team,
First of all, thank you for developing this powerful and versatile document processing library.
I am currently using docling to parse legal documents in Turkish, which are digitally-born PDFs (not scanned). I have encountered a specific text extraction issue related to Turkish characters (ş, ı, ğ, ü, ö, ç).
The Problem
In certain sections of the PDF, words containing Turkish characters are incorrectly parsed with spaces inserted between letters. However, in other sections of the same document, the text is extracted perfectly.
For example, the word "Rüşvet" (bribery) is extracted as R üş vet.
Note that PDF is clean! When I copy-paste the text directly from the PDF viewer, the text is perfectly clean and correct. There are no visible formatting differences in the original document. This suggests the issue is not with the source file itself but with how it's being parsed.
In the attached file Page 69 (Madde 277) and Page 72 (Madde 285) are 2 pages that have problems.
Very respectfully,
AirMaster
19820191510085237 Sayılı Türk Ceza Kanunu.pdf
Beta Was this translation helpful? Give feedback.
All reactions