modesty / modesty/pdf2json

Parser not handling some spaces between words

Open
#94 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
2.2k
Forks
394
Avg merge
3d 5h
Merged PRs (30d)
7

Description

Hello! First of all, congratulations for the good work. However, I found a boring little issue: sometimes the parser does not handle the space between words. This happens when two words come in 2 different json objects.
In the example the words "survey" and "published" will be interpretated as one. Any thoughts?
Thanks in advance.
{ "x": 9.672, "y": 13.2, "w": 2.529, "sw": 0.397125, "clr": 0, "A": "left", "R": [ { "T": "survey", "S": -1, "TS": [ 0, 12.48, 0, 0 ] } ] }, { "x": 11.457, "y": 13.2, "w": 38.245, "sw": 0.397125, "clr": 0, "A": "left", "R": [ { "T": "published%20by", "S": -1, "TS": [ 0, 12.48, 0, 0 ] } ] }
Cheers.

Contributor guide

No contributing guide indexed for this repository

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 supplied JSON example and tracing how adjacent objects' T values are combined by the parser. Done means the words "survey" and "published" remain separated when they originate in different JSON objects, without breaking existing text extraction.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.