agentleFS
DBQDSSDBQDSS/aimath-translations-skill/skills/latex-footnote-fidelity-audit/SKILL.md

latex-footnote-fidelity-audit

Skill5 starsChanged 57 days agoMITView on GitHub

Audit footnotes in a re-typeset LaTeX translation against source pages and OCR dumps, including unusual markers, page-local numbering, missing bodies, and index entries inside notes. Treat word/count scans as candidates and verify restored notes in the PDF.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the original rendered page as the authority.

    line 12
  2. Distinctive:

    All prose, mathematics and references inside the body.

    line 28
  3. Distinctive:

    No historical chapter range or source line is an expected target.

    line 50
  4. Distinctive:

    Use a balanced extraction and exact reviewed patch.

    line 54
  5. Distinctive:

    Do not insert an OCR number directly as a global footnote counter without establishing the reset model.

    line 56
  6. Distinctive:

    Run the actual build, then inspect each repaired note and its marker in the PDF for presence, numbering, wrapping, clipping and hyperlink …

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Footnote fidelity audit

Preserve source spelling of human names and follow the shared terminology policy when translating note bodies. Use the original rendered page as the authority; OCR is an inventory aid.

Inventory markers and note bodies separately

Record the source page, local marker, body and corresponding translated note. Numbers can restart per page, chapter or section. Key an inventory by source page and marker/occurrence rather than a bare number; do not keep only the first occurrence. Inspect notes above a usual footer threshold as well as conventional footnote bands.

OCR can represent markers as $^3$, {~}^2, {}^{2}, \ldots^{7}, punctuation plus a superscript, Unicode superscripts, or a mangled symbol. These forms are candidates, not universal proof of a footnote: empty-base exponents and superscript ellipses can have mathematical uses. Check the rendered page and the note body before moving them.

A complete comparison considers:

  • The in-text marker and its actual note body.
  • All prose, mathematics and references inside the body.
  • Index entries or citations carried by the note.
  • Whether the note is actually printed in the delivered PDF.

Bundled candidate checks

python scripts/footnote_survey.py <OCR-block-file> [FN_TOP]
python scripts/check_footnote_text.py <project-root> [chapter numbers...]

The survey expects <<pPAGE|label|bbox=[x0,y0,x1,y1]>> blocks and reports suspicious heads and repeated numbers. FN_TOP uses that OCR dump's coordinate scale; calibrate it from source pages instead of transferring a historical threshold.

The text checker discovers src/chN.blocks.md files unless chapters are supplied and expects chapters/ch0N.tex. It compares counts and English word overlaps with TeX footnote bodies. A Chinese translation normally does not share the English source's words. Empty normalized text, count differences and unmatched words require review; neither overlap nor zero candidates proves a faithful translation. Its marker/TeX-macro filters are bounded; inspect custom note commands separately.

For note-math candidates and complete note display, use the sibling latex-ocr-math-defect-audit scripts fnaudit.py, fndump.py and fnshow.py. No historical chapter range or source line is an expected target.

Restore only confirmed omissions

Use a balanced extraction and exact reviewed patch. Preserve encoding, line endings, code examples and source mathematics. Keep the project's numbering mechanism. Do not insert an OCR number directly as a global footnote counter without establishing the reset model. If a note contains an index entry, retain it in the correct body.

Run the actual build, then inspect each repaired note and its marker in the PDF for presence, numbering, wrapping, clipping and hyperlink behavior. Check the refreshed index when restoring entries carried inside notes. Report source-reviewed coverage and any notes still requiring manual identification.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.