New Tool Radar

OCR & Text Layers

How to Check Roman Numerals in a Scanned PDF After OCR

Check whether Roman numerals in a scanned PDF are recognised as letters, so chapter IV does not become chapter 1V.

Schematic illustration of a scanned PDF contents list: after OCR chapter IV highlights as letters and the contents list reads I, II, III, IV in order.

Roman numerals are letters that look like numbers: I, V, X, L, C, D and M. OCR that expects digits can turn IV into 1V, and a misread numeral silently renumbers a chapter. Tesseract’s manual notes that selecting a language also selects its character set and dictionary, which is what keeps letter-numerals intact.

Use the practice file

A practice document, practice-roman-numerals.pdf. The file is fictional.

Page Content
1 Contents list: chapters I, II, III, IV
2 Chapter IV opening page, heading “Chapter IV”
3 Appendix headed “Appendix XII”

Page 2 is the check page: the heading reads “Chapter IV”.

Check the Roman numerals

Expected result. We checked the Tesseract manual and the Adobe Acrobat. We did not run any tool. The checks below are what to expect if the work is done correctly; run them yourself on the practice file.

1. Select the chapter heading

Drag across “Chapter IV” on page 2.

Expected result: “Chapter IV” highlights exactly, with the letters I and V, not the digit 1.

2. Search for the numeral

Use Find for “IV”.

Expected result: 1 hit, on page 2, at the heading.

3. Check the contents list

Copy the contents list from page 1 and paste it into a text file.

Expected result: The list reads I, II, III, IV in order, with no digit mixed in.

4. Check the appendix numeral

Select “Appendix XII” on page 3.

Expected result: “XII” highlights as letters, not as X11 or a similar misread.

Verdict table

Check Expected result Pass?
Select the chapter heading “Chapter IV” highlights exactly, with the letters I and V, not the digit 1. —
Search for the numeral 1 hit, on page 2, at the heading. —
Check the contents list The list reads I, II, III, IV in order, with no digit mixed in. —
Check the appendix numeral “XII” highlights as letters, not as X11 or a similar misread. —

Related guides: How to Use OCR Confidence Scores to Target Proofreading — How to Add a Searchable Text Layer to a Scanned PDF.

Limits

  • A single misread letter renumbers a chapter, so check numerals in the contents list against the headings they point to, not in isolation.
  • OCR does not repair a bad scan: blur, skew and low contrast still produce errors, so check the words that matter against the visible page.
  • UNTESTED — no OCR tool was run; all results above are expected results. The practice file is fictional.

Sources

See all