Test multilingual OCR with numeric identifiers

10 September 2026

A person holds a pen beside a printed form at a sunlit desk.
Illustrative photograph. Cropped and resized. Photo by Kampus Production on Pexels. · Pexels License

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.

  1. Preserve leading zeros and delimiters. Account codes such as A-0079 require exact string matches. Truncating leading zeros (e.g., converting A-0079 to A-79) or dropping hyphens breaks primary key matching in ERP and finance databases.
  2. 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.
  3. 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 TypeTarget ValueCritical Preservation RulePass Criteria
Account CodeA-0079Retain prefix, hyphen, and two leading zerosExact string match. Reject A-79 or reversed tokens
Adjacent Date2026-11-03Isolate date digits from adjacent right-to-left labelsCorrect logical sequence Unicode Consortium, Unicode Bidirectional Algorithmwith no transposed years or days
Bounding BoxRegion coordinatesLink character group to visual page coordinatesTrace 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).