camelot-dev / camelot-dev/camelot

Double quotation mark causes issue - used to denote inches as measurement (common occurrence)

Open
#274 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
3.8k
Forks
546
Avg merge
3d 17h
Merged PRs (30d)
3

Description

Running latest python and camelot.

PDFs which contain tables that have " in them misbehave and fail

example: `200"`
where `"` is used to denote inches. I assume the same would cause problems for `'` as feet.

If there are multiple of the above like `100" or 200" or 300"` it also misbehaves and does strange things in the output.

If you use the lattice parser and it separates by lattice for a well formed table, that should not be a problem as it should ignore `100"` and just put that as it's in its own cell -> `| 100" |` and should have no reason to misbehave with lattice?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with table text containing `200"`, multiple inch measurements, and the corresponding feet notation, then compare the normal parser with the lattice parser. Trace where quoted cell content is handled and add a regression test once the affected entry point is identified; done means measurements remain in their cells and extraction no longer misbehaves.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.