Skip to content

Strip docx underline spans and flag the minus signs OCR reads from separator lines - #34

Merged
peterbjohnson merged 4 commits into
mainfrom
wb/t42
Sep 22, 2026
Merged

peterbjohnson merged 4 commits into
mainfrom
wb/t42

Conversation

@peterbjohnson

Copy link
Copy Markdown
Member

Every ticket writes its tests before its code, and its pull request reports a run over a target set or a corpus folder with the number of flagged fields. See docs/plan.md.

First, pandoc writes an underlined run in a docx file as [text]{.underline}, which Lambda
Feedback does not render. The tool converts docx files with pandoc's bracketed_spans
extension switched off, so the text is written without the brackets. Second, when Mathpix
reads a PDF that Lambda Feedback printed, it reads the horizontal separator lines as minus
signs at the start or end of the neighbouring maths. The tool flags a display maths that
begins or ends with a lone minus sign. The ticket is done when the MECH docx sheets carry no
bracketed span and the ME2 solutions report the fields with a stray minus sign.


Workbench ticket t42.

@peterbjohnson
peterbjohnson merged commit 5026108 into main Sep 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant