Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HA82gVRDXpoukzgMFumoJt
26 lines
1.4 KiB
Markdown
26 lines
1.4 KiB
Markdown
# 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` / `K` on 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
|
||
|
||
```sh
|
||
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`).
|