Keep index terms paired with their page numbers after OCR
Treat each term and its locator list as one record. Dotted leaders and hanging indents can make the final locator drift to the next line in the recognized text.
Pick an entry with several locators, one page range and an indented subentry. Compare the separator marks and the first word of the next entry with the scan. Preserve “see” references as text even when no numbers follow.
Open at least one referenced printed page and check that the term occurs in context. If printed folios and viewer numbers differ, record which numbering system the index uses rather than silently shifting every locator.