theater-reader/public/index.html
agent 2608d10dd2 Add theater reader web app with the 1931 play transcription
Static app (no build step) served by unprivileged nginx in a container:
choose a font, size and theme, pick a character to highlight their lines
and step through them, read in a distraction-free mode, or export a PDF
via the print dialog (one page per original page).

Includes the transcription of typescript pages 5-27 (pages 1-4 and 7
are missing in the original), a parser with node:test tests, and
self-hosted OFL fonts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVRDXpoukzgMFumoJt
2026-10-29 23:14:19 +00:00

73 lines
2.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="cs">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Divadelní čtečka</title>
<link rel="stylesheet" href="fonts/fonts.css">
<link rel="stylesheet" href="app.css">
<script type="module" src="app.js"></script>
</head>
<body>
<div class="layout">
<aside class="panel" aria-label="Nastavení">
<h1>Divadelní čtečka</h1>
<label class="field" id="play-field" hidden>
<span>Hra</span>
<select id="play"></select>
</label>
<p class="play-note" id="play-note"></p>
<label class="field">
<span>Moje postava</span>
<select id="role"><option value="">— žádná —</option></select>
</label>
<fieldset class="field">
<legend>Písmo</legend>
<div class="fonts" id="fonts"></div>
</fieldset>
<label class="field">
<span>Velikost písma <output id="size-out"></output></span>
<input type="range" id="size" min="14" max="30" step="1">
</label>
<fieldset class="field">
<legend>Podoba textu</legend>
<label class="radio"><input type="radio" name="layout" value="flow"> Plynulý text <small>čitelnější, doplněné mezery</small></label>
<label class="radio"><input type="radio" name="layout" value="original"> Jako v originále <small>řádky strojopisu</small></label>
</fieldset>
<fieldset class="field">
<legend>Barvy</legend>
<div class="seg" id="theme">
<label><input type="radio" name="theme" value="light"> Světlé</label>
<label><input type="radio" name="theme" value="sepia"> Sépie</label>
<label><input type="radio" name="theme" value="dark"> Tmavé</label>
</div>
</fieldset>
<div class="actions">
<button id="read" class="primary">Číst</button>
<button id="export">Exportovat PDF</button>
</div>
<p class="hint">PDF se ukládá přes dialog tisku – jako tiskárnu zvolte <b>Uložit jako PDF</b>. Pro barevné zvýraznění zapněte „Grafika na pozadí“, pokud ji prohlížeč nabídne.</p>
</aside>
<main class="script" id="script" tabindex="-1">
<p class="loading">Načítám text…</p>
</main>
</div>
<nav class="lines-nav" id="lines-nav" hidden aria-label="Moje repliky">
<button id="exit-read" class="exit" title="Konec čtení (Esc)">✕</button>
<button id="prev" title="Předchozí replika (K)">▲</button>
<span id="counter"></span>
<button id="next" title="Další replika (J)">▼</button>
<button id="smaller" class="read-only" title="Menší písmo">A−</button>
<button id="larger" class="read-only" title="Větší písmo">A+</button>
</nav>
</body>
</html>