Evaluate Portuguese accents in PDF recognition

26 May 2026

A hand writes with a pen on a lined notebook page.
Illustrative photograph. Cropped and resized. Photo: “Pen-writing-notes-studying.jpg” — Tookapic / Wikimedia Commons. · CC0

Test the accent itself, the word it changes and the reference beside it. In Portuguese, avó and avô are different words. An OCR output can preserve the nearby reference perfectly and still record the wrong relationship.

Prepare a paired test with known text

Create two permitted sample lines, one containing avó beside reference PT-17 and another containing avô beside PT-18. These are invented controls. Before recognition, retain the source text, the rendered page, the expected reference for each line and a crop large enough to inspect the accent. Include a deliberately degraded copy to test what the process does when the mark cannot be read confidently.

Export the recognised text as plain text. Record the literal word, the neighbouring reference and the source row for each line. Reversing the two reference associations is a separate error even if the system reproduces all four strings somewhere on the page.

Separate encoding differences from different accents

The word avó can end in a precomposed ó or an o followed by a combining acute accent. Applying a documented Unicode normalisation form can make those equivalent sequences compare equal. Normalisation preserves the distinction between the circumflex in avô and the acute accent in avó. Keep both the raw export and the value used for comparison. Unicode Normalization Forms

FindingDecision
Raw sequences differ but become equal after the agreed normalisationRecord an encoding difference and retain the unmodified export.
Visible circumflex becomes an acute accent or disappearsRecord a recognition error against that exact word.
Source pixels cannot distinguish the markAsk a fluent Portuguese reviewer to inspect the crop in context and leave the field unresolved if the evidence remains ambiguous.

The multilingual observations file separates expected text, actual OCR output, normalised comparison and identifier detection. Use those columns for your own pair. Report literal matching and fluent review separately. Even a word that makes sense in context may have the wrong accent.

Part of the Test multilingual OCR on invoice references, amounts and currency names guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).