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
This commit is contained in:
agent 2026-10-29 23:14:19 +00:00
parent 777328c06d
commit 2608d10dd2
41 changed files with 2357 additions and 0 deletions

22
deploy/nginx.conf Normal file
View file

@ -0,0 +1,22 @@
# Static file server for the reader. Plays are UTF-8 text; say so explicitly.
server {
listen 8080;
server_name _;
root /usr/share/nginx/html;
charset utf-8;
charset_types text/plain text/css application/javascript application/json;
location / {
try_files $uri $uri/ /index.html;
include /etc/nginx/conf.d/security-headers.inc;
}
location /plays/ {
add_header Cache-Control "no-cache";
include /etc/nginx/conf.d/security-headers.inc;
}
location /fonts/ {
add_header Cache-Control "public, max-age=2592000";
include /etc/nginx/conf.d/security-headers.inc;
}
}

View file

@ -0,0 +1,4 @@
# Included in every location: nginx drops inherited add_header once a location sets its own.
add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy no-referrer always;
add_header Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:" always;