smalot / smalot/pdfparser

Outputs "\r\n t" instead of letter i

Open
#491 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
PHP
Stars
2.7k
Forks
579
Avg merge
2m
Merged PRs (30d)
1

Description

It gives line break and letter t instead of letter i in some parts of the related file. Such an error may occur because the relevant text is in Turkish. However, there are places in the same text that do not give this error.
Sample:

Talep ed
tlen belgeler
t (KPSS sonuç belges
t ve yabancı d
tl b
tlg
ts
t sev
tyes
tn
t gösteren
belge har
tç) eks
tk
tbraz eden veya h
tç
tbraz etmeyenler bu belgeler
t son başvuru tar
th
tne kadar
Başkanlığımıza
tbraz ett
tkler
t takd
trde talepler
t kabul ed
tlecek, son başvuru tar
th
tnden sonra
tbraz

Related file: https://www.resmigazete.gov.tr/ilanlar/eskiilanlar/2021/11/20211126-4-9.pdf
Note:Since the file is taken from the Official Gazette, it is not subject to any copyright.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the extraction problem with the linked Official Gazette PDF and trace where its text is decoded or assembled in the parser. Compare the affected Turkish characters with unaffected text and add a regression case if the relevant test location can be identified; done means the sample no longer produces line breaks and incorrect “t” characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.