Writing criteria for this guide
Every "for Mere Mortals" guide is written to the same nine-point standard, so a reader who trusts one can trust the rest. Here it is, with the verification notes for this particular guide below.
- Fix it first. Reader outcomes lead, not action items: each chapter opens by naming the outcome it delivers, shows a check the reader can run to confirm they got it, and a reasonable reader finishes able to state what was done, what it means, and what to try next.
- Plain language. Short sentences, everyday vocabulary, technical terms defined on first use. No slang, and no idioms that only make sense in one country — the reader may be translating as they go.
- No dead ends. A guide never tells the reader to do something it cannot show them how to verify. Every claim a reader relies on — an install, a command, an output — is something this guide demonstrates or clearly labels documented-only below.
- Live-verified where it matters. Procedures are run for real in the guide's lab wherever the build machine allows it, and the transcripts kept in the repository are the evidence. What could not be run is listed honestly below, never presented as if it had been.
- General audiences. Nothing in this guide — examples, fixtures, names, addresses — is modelled on any particular reader or author's real life, network, or organisations. The lab's pages are pages the lab invented and printed itself.
- Standalone. A reader needs this guide, its lab, and nothing else. Where another guide would genuinely help, it is pointed to once, by name, and the chapter still completes without it.
- Honest about limits. Chapter 14 names what the tool cannot do: handwriting, meaning and arithmetic, the confident error, damage that destroys characters outright, tables and forms that scatter, and the languages and scripts whose data is thin.
- The ethics rule is in the text, early. Chapter 1 and the README state the rule plainly — read what is yours, or what you have explicit permission to read — before any procedure depends on it, and later chapters point back to it where the tooling would make crossing the line easy.
- Builds clean. The site builds with MkDocs in strict mode with no warnings, and a fresh reader following the chapters in order reaches the stated outcome of each.
Verification notes for this guide
The build machine is a small Linux sandbox (Ubuntu 24.04).
Tesseract 5.3.4 with Leptonica 1.82.0 was run from Ubuntu's
own packages (tesseract-ocr 5.3.4-1build5; language packs
tesseract-ocr-eng, -deu, -fra and the osd data at
4.1.0-2). One deviation, stated plainly: the sandbox's package
manager was held by other system work for the entire build
(direct installs were attempted and refused on the dpkg lock),
so the .deb files were fetched from the Ubuntu archive and
unpacked into a scratch folder, and the packaged binary was
run from there. Same binary, same version, same data files as
apt install tesseract-ocr delivers; every transcript in the
lab was produced by it.
All fixtures are generated by the lab (make-images.py,
make-images-hard.py) from invented texts, with the true text
of every page kept beside its image, so every accuracy figure
in the guide is a measured character error rate from
measure.py (Levenshtein distance over whitespace-normalised
text). The full ledger is
tesseract-lab/transcripts/t90-accuracy-ledger.txt.
Run for real, with transcripts as evidence:
- Version and language listing of the packaged engine (t00).
- The clean notice read to screen and file, measured at 100.0% character accuracy (t01).
- Twelve damaged variants of that notice, each measured raw: skew 3° (99.6%) and 8° (38.0%); speckle mild (96.9%) and heavy (83.8%); pale ink at two levels (100.0% both); uneven light (100.0%) and a hard shadow (97.9%); about-100-DPI (99.6%) and about-70-DPI (87.5%) renderings; an image with no DPI metadata (100.0%, with Tesseract's resolution estimate reported); upside down (14.7%) (t02, t02b).
- The repairs, each measured after: deskew −8.00° to 100.0%; median filter plus threshold to 93.2%; 3× upscale to 99.2%; background normalisation plus threshold on the shadowed page, which scored 95.8% — worse than the raw page, and reported as such (t03).
- Page segmentation: the two-column article under modes 3, 4 and 6 (6 and 4 interleave the columns); a single line under modes 3 and 7; a single word under modes 3 and 8 (mode 8 failed twice, including on a bordered retry, and the text says so); the orientation report under mode 0 and the flipped page read upright at 100.0% under mode 1 (t04).
- The German notice under
-l eng(99.2%, darüber misread),-l deu(100.0%) and-l eng+deu(99.2%) (t05). - All four output formats from one page, with sizes; the
searchable PDF's text layer extracted with
pdftotextand measured at 98.1% against the plain text's 100.0%, the difference traced to the extractor's word order (t06). - Word confidence from TSV: the wrong word moming at 59.6, junk tokens at 0, and a correct morning at 36.0 under speckle (t07).
- A folder batch by shell loop, a list-file read combining two pages into one output, and the stdin/stdout pipe form (t08). The bakery receipt's read measured 73.6% while a character diff showed the only differences were two dashed separator rules — every word and figure correct; the guide uses it to teach diff-before-number (t90).
Documented only — described from the project's documentation, not run, and the text does not claim otherwise:
- The macOS and Windows installation routes (the lab is Linux-only); the packaged Linux route is described from the same packages the lab ran.
- Segmentation modes 2, 5, 9, 10, 11, 12 and 13, listed for completeness; modes 0, 1, 3, 4, 6, 7 and 8 are the ones exercised.
- The
tessdataandtessdata_bestmodel flavours and hand-downloaded traineddata placement (the mechanics are shown; the lab's packs came from the archive identically). - The neighbour tools and services of chapter 13, including OCRmyPDF and the cloud engines, characterised rather than benchmarked.
- Real-photograph damage (folds, bleed-through, glare) and historical print such as Fraktur, discussed from documented behaviour and the shape of the lab's synthetic results.
- Handwriting: not run because the engine does not claim it; chapter 14 says so rather than demonstrating a foregone failure.
Fixtures are this guide's own and deliberately generic: a fictional community hall's cleanup notice, an invented bakery receipt whose figures sum correctly, a two-column gardening article, and a German reading-circle notice. No example is modelled on any real person, organisation, document or network, and every page OCR'd in the lab is a page the lab itself created.