You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docling-pdf: drop logo glyphs painted over each other on the flat path
The reporting invoice's flat text-layer output opened with `" ==` — its
T-Mobile mark is drawn with a `TeleLogo` Type1 font, stacking the glyphs
encoded as `"` and `==` on top of one another. Nothing in the font metadata
gives that away: the file's *text* fonts carry the same symbolic flag, and
the logo font names its glyphs `quotedbl` &c. (checked by decrypting the
embedded Type1s). The geometry does: two cells with different text where one
lies inside the other on the same line is impossible for prose — so both are
paint, not text.
drop_overpainted_cells applies exactly that containment rule (adjacent words
touch but never contain each other; a same-text double-draw is left alone)
and runs on pdf_text_pages only — the flat/browser path, where there is no
layout model to sink the mark into a `picture` region. The ML pipeline's
byte-pinned text layer (pdf_all_cells) is untouched, and the full corpus
stays green: docling 117, docling-pdf 41, docling-wasm 7.
Refs #157
Signed-off-by: artiz <artem.kustikov@gmail.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EY5KAiquN4YpVf2PXEQkVT
0 commit comments