No description
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 |
||
|---|---|---|
| deploy | ||
| public | ||
| tests | ||
| tools | ||
| .dockerignore | ||
| .gitignore | ||
| AGENTS.md | ||
| Dockerfile | ||
| package.json | ||
| README.md | ||
Divadelní čtečka (theater reader)
A small web app for reading a play script during rehearsals. An actor can:
- choose a font (typewriter, Atkinson Hyperlegible, Lexend, Literata or the system font), the text size and colours (light, sepia, dark),
- pick their character, which highlights their lines and lets them jump from one line to the next (▲ ▼, or
J/Kon a keyboard), - switch between running text (hyphenation joined, spacing tidied) and the original typescript lines,
- open reading mode (settings hidden, large text), or
- export a PDF of their own copy, one page per page of the original. This goes through the print dialog, so choose "Save as PDF".
A link like http://localhost:3010/?postava=Lída opens the app with that character already chosen, so a director can send each actor their own link.
Running it
podman build -t theater-reader .
podman run -d --name theater-reader -p 127.0.0.1:3010:8080 theater-reader
Then open http://localhost:3010. The Dockerfile works with docker as well.
The play included
public/plays/hra.txt is a transcription of a 1931 typescript, pages 5–27. Pages 1–4 (presumably the title page and cast list) and page 7 are missing from the original, and the text breaks off at the end of page 27. See AGENTS.md for the text format and how to add the missing pages.
Fonts are self-hosted under the SIL Open Font License (see public/fonts/OFL-*.txt).