Skip to content

docs(site): article on reading a page's orientation from its ink - #70

Merged
stephen-masters merged 9 commits into
mainfrom
docs/article-which-way-up
Oct 16, 2026
Merged

stephen-masters merged 9 commits into
mainfrom
docs/article-which-way-up

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

Summary

  • New article, Which way up is the page?, at /articles/2026/10/which-way-up/, kicker "Method".
  • Opens with the Armenian Institute's Empire on Trial reels: one document of 65 frames with 39 pages filmed on their side, 21 fixed by an EXIF tag, the rest untagged.
  • Explains the two measurements we built with Pillow alone: a block-wise median vote on the projection-profile variance for the line direction, and the share of a line's outer ink above its core for which way is up. Covers what fooled the first versions (page edges and gutters on spreads, the inverted margin cue on justified fair copies, a tie-break bias in the line finder) and where the method stops (Latin script, no half turns).
  • Links the Tesseract auto-configuration section of the engines page as the same deterministic shape, and lists verified further reading (Postl, Baird, Hull, Caprari, Aradhye, van Beusekom, Unnikrishnan and Smith, Sauvola and Pietikäinen, ISO 6199, CIPA DC-008, Pillow, Tesseract and PaddleOCR docs).

Test plan

  • npm run build passes (relref and author key resolve)
  • npm run lint passes, markdownlint included
  • npx playwright test: 31 passed
  • Every citation checked against Crossref or the publisher's page; issue numbers and editors left out where they could not be confirmed

🤖 Generated with Claude Code

How we turned a microfilm reel of sideways pages upright for the
Armenian Institute's Empire on Trial site with two deterministic
measurements, what fooled the first versions, and where the method
stops.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: 97a065a
Status: ✅  Deploy successful!
Preview URL: https://9890bc78.tetrak.pages.dev
Branch Preview URL: https://docs-article-which-way-up.tetrak.pages.dev

View logs

stephen-masters and others added 8 commits October 16, 2026 22:38
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… ink is

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ainer standfirst

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@stephen-masters
stephen-masters merged commit c40183e into main Oct 16, 2026
8 checks passed
@stephen-masters
stephen-masters deleted the docs/article-which-way-up branch October 16, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant