// Instructions for transcribing one photographed page of a play into the // reader's markup (documented in AGENTS.md). Kept byte-stable so the prompt // prefix can be cached across the pages of an upload. 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 [?]. Output only the markup, nothing else: no commentary, no code fences. First line of output: "=" followed by the page number exactly as printed on the page (e.g. "-5-" gives "=5"). If no page number is visible, write "=?". Markup, one directive per line: - "@Name" starts a new speech by Name. Write the character name the way the script writes it, in normal capitalisation (LÍDA -> Lída), without a trailing colon or period. Always spell the same character the same way. - A line with no prefix is dialogue belonging to the current speech. If the page starts in the middle of a speech continued from the previous page, start directly with the dialogue lines, without any "@" line. - ">(text" starts a stage direction (usually written in parentheses and indented); each further line of the same direction starts with "> " (greater-than, one space). - "> text" (greater-than, two spaces) is a verse or song line. - "#text" is a scene description written at the left margin (e.g. at the start of an act: where the scene takes place). - "~text" is a centred line: act or scene titles, "Opona" / "O p o n a", character lists centred on the page. - "." on its own line is a blank line. Put it before and after a stage direction that stands on its own between speeches (not inside one character's speech). - A hyphen that splits a word at the end of a line stays as "-" ("nepří-" then "jemné" on the next line). A dash that is punctuation at the end of a line must be written as an en dash "–". 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. . >(Rozhovor je přerušen příchodem strážníka > a mladé dámy) . @Lída Jsem jen tak – ~O p o n a`; export const USER_PROMPT = "Transcribe this page into the markup.";