Skip to content

feat(armenian): fold each region with the page as context - #104

Merged
stephen-masters merged 1 commit into
mainfrom
feat/fold-page-context
Nov 15, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
feat/fold-page-context

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

Closes #103 (brief 014, Stage 3).

tetrak-easyocr-armenian 0.9 taught fold_script to write a token with no Armenian letter in the one script, Latin or Cyrillic, it belongs to, and to decide a token made only of glyphs the two share (роог for poor) by the text around it. The Armenian backend folds per detected region in _spans(), so a one-word region had nothing to decide it. Every region is now folded with the whole page's text as context=.

The [armenian] extra pins tetrak-easyocr-armenian>=0.11, the release with the three-way script decision and the եւ/և rule (library PRs #27 and #30), and uv.lock moves with it. With the floor raised, a guard for an older library without the argument would be dead code, so there is none.

The stub in the tests now takes context and records it; a new test checks every region receives the page. 15 backend tests and the full suite pass; ruff and uv lock --check clean. A feat, so a minor release.

🤖 Generated with Claude Code

Closes #103. tetrak-easyocr-armenian 0.9 taught fold_script to write a
token with no Armenian letter in the one script, Latin or Cyrillic, it
belongs to, and to decide a token made only of shared glyphs (роог for
poor) by the text around it. The backend folds per detected region, so a
one-word region had nothing to decide it; every region now goes in with
the whole page's text as context. The [armenian] extra pins 0.11, the
release with the three-way script decision, so no guard for an older
library is needed.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: c787514
Status: ✅  Deploy successful!
Preview URL: https://c5b282e5.tetrak.pages.dev
Branch Preview URL: https://feat-fold-page-context.tetrak.pages.dev

View logs

@stephen-masters
stephen-masters merged commit 72f7543 into main Nov 15, 2026
9 checks passed
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.

Fold each region with the page as context once tetrak-hy ships fold_script(context=)

1 participant