Test multilingual OCR with numeric identifiers
10 September 2026
A bilingual scan contains the account code A-0079 beside a right-to-left label and a separate date below it. Check the characters the OCR returned, the order stored and the field they belong to as three independent properties. A correct-looking number in the wrong field is still a data error.
Keep identifiers as text. Converting the numeric suffix to an integer may drop both zeros after recognition, even when the OCR produced the original string correctly. Retain the raw output before passing values to import software. Unicode’s bidirectional rules distinguish logical character order from what a reader sees on screen. A screenshot alone cannot establish the stored sequence. Unicode Bidirectional Algorithm
Evaluate character order and formatting on bilingual scans
Trace the extracted text back to its specific regions on the bilingual page.
- Preserve leading zeros and delimiters. Account codes such as
A-0079require exact string matches. Truncating leading zeros (e.g., convertingA-0079toA-79) or dropping hyphens breaks primary key matching in ERP and finance databases. - Isolate character recognition from display order. Ensure the engine stores underlying Unicode code points in their correct logical sequence rather than copying visual rendering artefacts caused by adjacent right-to-left text Unicode Consortium, Unicode Bidirectional Algorithm.
- Trace character groups to page regions. Map every extracted numeric block directly to its bounding box region on the source page image to confirm which label or field it belongs to.
Check the account code and date separately against the marked source.
| Field Type | Target Value | Critical Preservation Rule | Pass Criteria |
|---|---|---|---|
| Account Code | A-0079 | Retain prefix, hyphen, and two leading zeros | Exact string match. Reject A-79 or reversed tokens |
| Adjacent Date | 2026-11-03 | Isolate date digits from adjacent right-to-left labels | Correct logical sequence Unicode Consortium, Unicode Bidirectional Algorithmwith no transposed years or days |
| Bounding Box | Region coordinates | Link character group to visual page coordinates | Trace extracted string to source document region |
Treat the date in this example as a deliberately seeded control and record its exact separators. Ask a fluent reviewer to mark the label, account-code region and date region independently. If the extracted account field contains the correct digits for the date, check the region assignment before changing the recogniser. If raw OCR contains both zeros but the imported record does not, examine the import mapping.
Likewise, if the raw characters match A-0079 but appear unexpected beside the right-to-left label, inspect the display environment separately. Do not reverse the entire string as a blanket correction. That can damage a correct logical identifier.
Practical next steps for document operations teams
The release record should connect each test result with its source region.
- Create a test matrix. Define expected logical character strings, explicit leading-zero rules, and bounding-box regions in a structured reviewer worksheet before running extraction tests Reviewer worksheet.
- Require human adjudication. Establish an operational rule where any discrepancy between logical character extraction and visual region mapping is flagged for review by a fluent reader before release Reviewer worksheet.
- Record test outcomes. Log raw extracted character strings, normalisation forms, and bounding-box coordinates for each test document to build a traceable audit trail prior to system acceptance.
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).
