NextOCR · Case Study № 02 · Historical Khmer Print

The OCR That Read the Page,
and the AI That Rewrote It

A single page from the 1930s Khmer Tripitaka, read by a purpose-built vision-first OCR engine and by a leading general-purpose multimodal LLM. One returned the text. The other returned a fluent, confident approximation — then invented a scholarly excuse for its errors.

Document Royal preface, Khmer Tripitaka Author H.M. King Sisowath Monivong Printed Buddhist Institute, Phnom Penh, 1930s Task Full-page text extraction

01The Specimen

Historical Khmer documents are among the hardest OCR targets in existence: stacked subscript consonants, diacritics that change meaning with a single stroke, letterpress ink spread, and pre-standardization typography. They are also among the most valuable — much of Cambodia's religious, legal, and literary heritage survives only in print like this.

Scanned page VIII of the Khmer Tripitaka royal preface, letterpress Khmer script on aged paper
Plate 1. Page VIII — អារម្ភកថា (Preface) by H.M. King Sisowath Monivong to the Khmer Tripitaka. Letterpress, Buddhist Institute of Phnom Penh. The page describes the royal commission of monk-scholars who translated the Pali canon — all 84,000 dhammakkhandha — into Khmer for bilingual publication.

02NextOCR — Verified Transcription

NextOCR's output was checked character-by-character against the plate. No substantive recognition errors.

NextOCR · vision-first engine0 errors
អារម្ភកថា ព្រះករុណាព្រះបាទសម្ដេចព្រះស៊ីសុវត្ថិមុនីវង្ស
ព្រះត្រៃបិដកជាខ្លឹមឫសកែវព្រះពុទ្ធសាសនា ជាសេចក្ដីរាប់អាន ពេញចិត្តរបស់បណ្ដាខេមរជនទាំងអស់គ្មានសល់ ហើយទ្រង់ពុំមានភ្លេចឡើយ ចំពោះអំណរអរគុណដល់ពួកឧបាសក ឧបាសិកាដែលមានចិត្តសទ្ធាជ្រះថ្លា ចេញប្រាក់ចូលជួយឲ្យការដ៏ឧត្តមនេះបានសម្រេច ។

ទ្រង់មានសេចក្ដីសោមនស្សជាទីបំផុត ដែលក្នុងរវាងផែនដីទ្រង់ព្រះករុណាបានសម្រេចឲ្យមានក្រុមជំនុំព្រះសង្ឃបណ្ឌិតប្រែព្រះបាឡីក្នុងគម្ពីរព្រះត្រៃបិដក គឺភាជនៈទាំង៣ដែលដំកល់ដាក់ក្បួនព្រះពុទ្ធសាសនា មានទាំងអស់ប្រាំបីម៉ឺនបួនពាន់ព្រះធម្មក្ខន្ធ មកជាភាសាខេមរៈជាក់ស្ដែង ឲ្យបោះពុម្ពទាំងបាឡីនឹងសម្រាយជាសៀវភៅផ្សាយព្រះមធុរសក្នុងព្រះវិន័យ គឺកាន់ក្រិត្យនឹងគំនិតមារយាទ ។ ព្រះសូត្រគឺព្រះធម៌សំរាប់ប្រដៅសត្វឲ្យកាន់វិធីត្រង់ ។ ព្រះអភិធម្ម គឺញ៉ាំងផ្លូវព្រះបរមនិព្វានដែលព្រះពុទ្ធអង្គព្រះសមណគោតមបានត្រាស់ហើយ ទ្រង់សំដែងទុកឲ្យមនុស្ស

03The LLM's Reading, Proofed

The same page was transcribed by a leading general-purpose multimodal LLM. Its output is shown below with a proofreader's corrections: the model's misreading struck through, the verified reading beside it.

LLM outputactual text on the page
General-purpose multimodal LLM8 errors
អារម្ភកថា ព្រះករុណាព្រះបាទសម្ដេចព្រះស៊ីសុវត្ថិមុនីវង្ស
ព្រះត្រៃបិដកជាខ្លឹមប្រសរឫសកែវព្រះពុទ្ធសាសនា ជាសេចក្ដីរាប់អាន ពេញចិត្តរបស់បណ្ដាខេមរជនទាំងអស់គ្មានសល់ ហើយទ្រង់ពុំមានភ្លេចឡើយ បំពោះអំណារចំពោះអំណរអរគុណដល់ពួកឧបាសក ឧបាសិកាដែលមានចិត្តសទ្ធាជ្រះថ្លា ចេញប្រាក់បួលចូលជួយឲ្យការដ៏ឧត្តមនេះបានសម្រេច ។

ទ្រង់មានសេចក្ដីសោមនស្សជាទីបំផុត ដែលក្នុងរវាងដែនដីផែនដីទ្រង់ព្រះករុណាបានសម្រេចឲ្យមានក្រុមជំនុំព្រះសង្ឃបណ្ឌិតប្រែព្រះបាឡីក្នុងគម្ពីរព្រះត្រៃបិដក គឺភាជនៈទាំង៣ដែលដក់ល់ដំកល់ដាក់ក្បួនព្រះពុទ្ធសាសនា មានទាំងអស់ប្រាំបីមឺុនម៉ឺនបួនពាន់ព្រះធម្មក្ខន្ធ មកជាភាសាខេមរៈដាក់ជាក់ស្ដែង ឲ្យបោះពុម្ពទាំងបាឡីនឹងសម្រាយជាសៀវភៅផ្សាយព្រះមធុរសក្នុងព្រះវិន័យ គឺកាន់ក្រិត្យនឹងគំនិតមារយាទ ។ ព្រះស៊ូត្រសូត្រគឺព្រះធម៌សំរាប់ប្រដៅសត្វឲ្យកាន់វិធីត្រង់ ។ ព្រះអភិធម្ម គឺញ៉ាំងផ្លូវព្រះបរមនិព្វានដែលព្រះពុទ្ធអង្គព្រះសមណគោតមបានត្រាស់ហើយ ទ្រង់សំដែងទុកឲ្យមនុស្ស

04Error Anatomy

Eight substantive errors on a single page — and their pattern is more telling than their count. The LLM consistently failed on rare-but-correct vocabulary, replacing it with high-frequency lookalikes or outright non-words.

On the pageLLM readWhat went wrong
ឫសប្រសរ"root" — rare word replaced by a hallucinated cluster
ចំពោះអំណរបំពោះអំណារtwo consecutive misreads (ច→ប, spurious ា)
ចូលបួលnon-word — then rationalized as "archaic spelling"
ផែនដីដែនដីផ/ដ confusion; plausible word, wrong word
ដំកល់ដក់ល់"enshrined" — cluster broken into a non-word
ជាក់ស្ដែងដាក់ស្តែងmeaning-destroying substitution ("manifestly" lost)
ម៉ឺនមឺុនdiacritic misplaced in "eighty thousand"
សូត្រស៊ូត្រspurious diacritic on Sutta Piṭaka

05The Model Defended Its Mistakes

The most consequential finding was not the error count. It was what the LLM did when its misreadings produced non-words.

Observed failure mode · confabulation

Rather than flagging uncertainty, the model invented a scholarly justification: it suggested its anomalous output reflected "pre–Chuon Nath orthography," implying it had faithfully transcribed archaic spellings from the source.

The explanation was fabricated. The page contains the ordinary words ចូល and ដំកល់; the "archaic spellings" existed only in the model's output. The error became misinformation about the document itself.

This is the failure mode that makes general-purpose LLMs risky for archival and compliance-grade OCR:

1. Language priors override pixels. When the visual signal weakens, an LLM predicts the most probable text, not the actual text. Rare-but-correct words lose to frequent-but-wrong neighbors.

2. Errors arrive fluently. Hallucinated text is grammatical and confident, so it passes casual review — unlike classical OCR noise, which is visibly broken.

3. The model defends its output. A plausible meta-explanation converts a recognition error into a false claim about the source. For national-heritage digitization, that is worse than no OCR at all.

06Why NextOCR Reads It Correctly

NextOCR is built vision-first: the recognition model commits to what is physically on the page, and the language model is deliberately kept out of the character-decision loop. The architecture is informed by 30+ years of Khmer type design and font engineering — the same expertise used to draw these letterforms is used to recognize them.

On this 1930s letterpress page, that meant correct stacked subscripts, correct rare vocabulary (ឫស, ដំកល់), correct diacritic placement, and faithful preservation of the source — no "corrections," no confabulation.

For everyday English documents, a general multimodal LLM is often good enough. For Khmer — where a single subscript changes meaning — "good enough" fails silently and convincingly. Trustworthy digitization of underserved scripts requires purpose-built, vision-first recognition trained on clean, expert-curated data.
NextOCR — Khmer & Southeast Asian OCR for banking, government, and heritage digitization.
See also: Case Study 1 — Vision-First vs. Traditional OCR on 1950s Khmer Texts
Test conducted July 2026 · Source scan and full outputs available on request.