Skip to content

fix(harvest): keep text inside formatting templates - #95

Merged
stephen-masters merged 1 commit into
mainfrom
fix/transcript-cleaning-4
Nov 22, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
fix/transcript-cleaning-4

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

What

The transcript cleaning stripped every template whole, text included. Two faults came from that, both found while checking Abovyan's evaluation pages (brief 023).

Formatting templates carry print. A centred heading, a signature set to the right, a spaced-out name, a drop capital and, in the encyclopedia, headwords and bibliography authors all left with their wrappers.

Sample Pages Words the old cleaning dropped
Random pages across all 61 harvests 480 1,382
Evaluation pages 165 275

Ten templates that only format printed text now leave their text behind (_TEXT_TEMPLATES). Each was seen carrying print in the sample. Line numbers, rules and everything unfamiliar are still stripped. Templates that render as a block (centred, right-set, the encyclopedia's author signature) take a line of their own, because transcribers write them hard against the next word and unwrapping in place would weld two words into one.

Abovyan's angle brackets are print. The four volumes join PRINTED_ANGLE_BRACKETS. The edition says so in its own editorial principles (volume 2, page 7, rule 9), and scans of volume 1 page 45 and volume 6 page 123 show it. Folded, page 45 read սիրե«լւոյ» and, on one line, a bracket paired with a guillemet.

Consequences

  • TRANSCRIPT_CLEANING is 4. Text saved by cleaning 3 has lost both for good, so every harvest needs --refresh-stale before the next crop harvest, which refuses stale pages.
  • Evaluation transcripts change when they are refreshed: word recall cannot fall from added headings, character similarity will move. No evaluation set is refreshed by this pull request.

Checks

  • 258 tests pass, 9 of them new.
  • Old against new cleaning on 645 saved raw pages: nothing removed except orphaned punctuation the dropped text had left behind.
  • The training skill records both rules and how to find such templates in a new source.

🤖 Generated with Claude Code

The transcript cleaning stripped every template whole. A centred heading,
a signature set to the right, a spaced-out name, a drop capital and, in
the encyclopedia, headwords and bibliography authors went with their
wrappers: 1,382 words on 480 pages sampled across every harvest, and 181
on the evaluation pages (brief 023).

Ten templates that only format printed text now leave their text behind.
Those that render as a block take a line of their own, since transcribers
write them hard against the next word.

Abovyan's four volumes join PRINTED_ANGLE_BRACKETS. The edition's own
editorial principles put the editors' additions in angle brackets, and the
fold had turned them into guillemets, in one line into a bracket paired
with a guillemet.

TRANSCRIPT_CLEANING is 4: text saved by cleaning 3 has lost both for good,
so every harvest needs --refresh-stale before the next crop harvest.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@stephen-masters
stephen-masters merged commit cdc6c62 into main Nov 22, 2026
3 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.

1 participant