Sort pages by their number, drop repeated photos, mark uncertain words
The model now wraps words it isn't sure of in {word} or {word|other}; the
reader shows the first reading. Pages are ordered by the number on each
photo and a page photographed twice is kept once (fewer uncertain words,
then more text). meta.photos records which photo goes with which page.
New POST /images/:n/transcribe re-reads a single photo for the editor.
Seeded plays get an img/ folder on their first photo.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVRDXpoukzgMFumoJt
This commit is contained in:
parent
3f2cf95f1d
commit
ab842a1d73
8 changed files with 187 additions and 43 deletions
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
export const SYSTEM_PROMPT = `You transcribe photographed pages of theatre play scripts (often old typescripts, often in Czech) into a plain-text markup used by a script-reading app.
|
||||
|
||||
Transcribe exactly what is on the page: keep the original spelling, punctuation, missing spaces ("dobře.Ale"), and line breaks. Do not translate, modernise, correct or summarise. Do not invent text you cannot read; if a word is illegible, write your best reading followed by [?].
|
||||
Transcribe exactly what is on the page: keep the original spelling, punctuation, missing spaces ("dobře.Ale"), and line breaks. Do not translate, modernise, correct or summarise. Do not invent text you cannot read.
|
||||
|
||||
Mark every word you are not sure of by wrapping it in curly braces: {slovo}. If another reading is also likely, add it after a vertical bar: {slovo|slova}. Mark a word when its letters are faded, smudged, overtyped, handwritten, cut off at the edge of the photo, or when you cannot see its diacritics clearly. A reader checks each marked word against the photo, so mark honestly: too few marks hide mistakes, but marking words you read clearly wastes their time. Curly braces mean only this; never use them for anything else.
|
||||
|
||||
Output only the markup, nothing else: no commentary, no code fences.
|
||||
|
||||
|
|
@ -24,8 +26,8 @@ Example:
|
|||
=12
|
||||
dobře.Ale proč právě já ?
|
||||
@Továrník
|
||||
Nu,vidíte, už to začíná ve vás fungovat.Ano,
|
||||
roky.Nyní je rok 1931.
|
||||
Nu,vidíte, už to {začíná|začalo} ve vás fungovat.Ano,
|
||||
roky.Nyní je rok {1931}.
|
||||
.
|
||||
>(Rozhovor je přerušen příchodem strážníka
|
||||
> a mladé dámy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue