Merge branch 'feat/full-text' into development

This commit is contained in:
dasemu committed 2026-10-19 04:16:53 +02:00
commit 4b4ac1e9dd
6 files changed
+72605 -23

No files matched your search

+2
View File
@@ -14,6 +14,8 @@ Faust I (Spanish, Llorente) as a Ren'Py visual novel. This repo is a *work*: the
## Commands ## Commands
- `export UV_CACHE_DIR=$TMPDIR/uv-cache` first when running inside the sandbox. - `export UV_CACHE_DIR=$TMPDIR/uv-cache` first when running inside the sandbox.
- `uv sync` — install. `uv run pytest` — tests. `uv run ruff check . && uv run ruff format --check .` — lint. - `uv sync` — install. `uv run pytest` — tests. `uv run ruff check . && uv run ruff format --check .` — lint.
- To test against an unmerged vnpipe worktree: `uv run --with-editable <vnpipe worktree> pytest -q`
(and `--project <vnpipe worktree> vnpipe --work . parse` to run a stage).
- `uv run vnpipe --help` — pipeline CLI (the work is the repo root). Stages: `fetch`, `parse`, - `uv run vnpipe --help` — pipeline CLI (the work is the repo root). Stages: `fetch`, `parse`,
`annotate {chunk,status,prompt,merge}`, `assets {...}`, `renpy [--with-test --out DIR]`. `annotate {chunk,status,prompt,merge}`, `assets {...}`, `renpy [--with-test --out DIR]`.
- Ren'Py SDK lives in `tools/renpy-sdk` (gitignored; may be a symlink shared between worktrees) - Ren'Py SDK lives in `tools/renpy-sdk` (gitignored; may be a symlink shared between worktrees)
+63141
View File
File diff suppressed because it is too large. Load diff
+8777
View File
File diff suppressed because it is too large. Load diff
+59 -13
View File
@@ -1,34 +1,79 @@
# Scope # Scope
The prototype adapts the opening of *Fausto* (Goethe, transl. Teodoro Llorente) from The adaptation covers all of *Fausto*, Part I (Goethe, transl. Teodoro Llorente), from
Project Gutenberg #68566. Project Gutenberg #68566.
## Included ## Included
Raw file lines 1092-1921 (`data/raw/pg68566.txt`), i.e. from the `DEDICATORIA` From the `DEDICATORIA` heading (raw line 1092) up to, but excluding, the first `BREVE RESEÑA`
heading up to, but excluding, the `(_Llaman._)` direction at line 1923. line (raw line 11038), the title of Llorente's prose summary of Part II, which is out of scope.
The last scene is `CÁRCEL` (the printed heading; the prison scene), ending with the
voice from within, "¡Enrique! ¡Enrique!".
| Scene id | Heading | Verse lines | Directions | Cast lines | Speeches | | Scene id | Heading | Verse lines | Directions | Cast lines | Speeches |
|---|---|---|---|---|---| |---|---|---|---|---|---|
| `dedicatoria` | DEDICATORIA | 32 | 0 | 0 | 1 (no speaker) | | `dedicatoria` | DEDICATORIA | 32 | 0 | 0 | (no speaker) |
| `prologo_teatro` | PRÓLOGO EN EL TEATRO | 254 | 0 | 1 | 11 | | `prologo_teatro` | PRÓLOGO EN EL TEATRO | 254 | 0 | 1 | 11 |
| `prologo_cielo` | PRÓLOGO EN EL CIELO | 162 | 2 | 1 | 19 | | `prologo_cielo` | PRÓLOGO EN EL CIELO | 162 | 2 | 1 | 19 |
| `noche` | DE NOCHE | 182 | 5 | 0 | 11 | | `noche` | DE NOCHE | 543 | 10 | 0 | 32 |
| `puertas_ciudad` | A LAS PUERTAS DE LA CIUDAD | 550 | 7 | 1 | 53 |
| `gabinete_1` | GABINETE DE ESTUDIO | 425 | 2 | 0 | 41 |
| `gabinete_2` | GABINETE DE ESTUDIO | 753 | 7 | 1 | 87 |
| `taberna_auerbach` | TABERNA DE AUERBACH EN LEIPZIG | 396 | 19 | 1 | 124 |
| `cocina_bruja` | COCINA DE LA BRUJA | 342 | 24 | 1 | 61 |
| `calle_1` | CALLE | 105 | 4 | 1 | 25 |
| `cuartito` | AL CAER LA TARDE | 180 | 11 | 1 | 11 |
| `paseo` | PASEO | 88 | 1 | 1 | 13 |
| `casa_vecina` | CASA DE LA VECINA | 237 | 4 | 0 | 63 |
| `calle_2` | CALLE | 73 | 0 | 1 | 17 |
| `jardin` | JARDÍN | 223 | 9 | 1 | 52 |
| `pabelloncito` | UN PABELLONCITO EN EL JARDÍN | 27 | 3 | 1 | 15 |
| `bosques_cavernas` | BOSQUES Y CAVERNAS | 235 | 1 | 0 | 20 |
| `aposento_margarita` | APOSENTO DE MARGARITA | 40 | 0 | 0 | 1 |
| `jardin_marta` | JARDÍN DE MARTA | 211 | 2 | 1 | 42 |
| `fuente` | EN LA FUENTE | 74 | 1 | 1 | 14 |
| `muros` | EN LOS MUROS DE LA CIUDAD | 28 | 1 | 0 | 1 |
| `calle_noche` | DE NOCHE | 221 | 5 | 0 | 36 |
| `catedral` | CATEDRAL | 57 | 3 | 0 | 12 |
| `valpurgis` | NOCHE DE SANTA VALPURGIS | 530 | 2 | 1 | 77 |
| `intermedio` | INTERMEDIO | 176 | 1 | 0 | 44 |
| `dia_nebuloso` | DÍA NEBULOSO | 22 | 2 | 0 | 13 |
| `noche_campo` | NOCHE | 6 | 1 | 0 | 6 |
| `carcel` | CÁRCEL | 229 | 9 | 1 | 52 |
Total: 630 verse lines (about 15-20 printed pages). Total: 6,219 verse lines (the Spanish translation is longer than the 4,612 lines of the
German; in the two prose scenes a paragraph counts as one line).
## Where and why it is cut ## Scene rules
The scope ends at the Earth Spirit's rejection of Faust ("¿No a ti? Pues dime: ¿a quién?"), - Repeated headings get an `occurrence` in `work.toml`: `GABINETE DE ESTUDIO` (`gabinete_1`,
right before the knock that announces Wagner. It is a natural dramatic break: the evocation `gabinete_2`), `CALLE` (`calle_1`, `calle_2`) and `DE NOCHE` (`noche`, `calle_noche`).
ends in Faust's collapse, and the next beat (Wagner, the Easter walk, the pact) is a new Scenes in the same place share a `location` (`study`, `street`, `garden`, `margaret_room`).
movement. - `noche` keeps its prototype lines (ids up to `noche_0187`); the scope used to
end at `(Llaman.)` (`noche_0188`) and the scene now continues with Wagner and the Easter bells.
- `CAMPESINOS BAJO LOS TILOS` is a section title inside `puertas_ciudad`; `INTERMEDIO` is the
*Sueño de la noche de Walpurgis* (its illustration caption is dropped).
- `dia_nebuloso` and `noche_campo` (`NOCHE`) are printed in prose (`format = "prose"`).
- Capitalised lines such as `ENTRA UN ESTUDIANTE` are listed in `[parser] direction_headings`.
- `CANCIÓN DE LOS SOLDADOS` is mapped as a speaker (`soldiers`) because verse follows it.
- Times of day are editorial: the text rarely says; `timeless` is used for the witch's kitchen
and the heavens.
## Cast
Named characters have their own id; anonymous one-off speakers are grouped
(`artisans`, `servant_girls`, `students`, `citizens`, `peasants`, `apes`, `witches`,
`walpurgis_guests`, `dream_figures`, `voices`, ...; see `[speakers]`). The grouped speaker's
printed heading is not kept. `sprite = true` for faust, mephisto, wagner, margarita, marta,
valentin, witch, student, director, poet and clown; the new ones map every emotion to
`neutral` until their art exists.
## Stripped ## Stripped
- Gutenberg header/footer, transcriber's note and licence text. - Gutenberg header/footer, transcriber's note and licence text.
- Title pages, table of contents, and Llorente's prologue letter ("A Vicente W. Querol"). - Title pages, table of contents, and Llorente's prologue letter ("A Vicente W. Querol").
- `[Ilustración...]` markers (the book's own engravings). - `[Ilustración...]` markers (the book's own engravings), including multi-line captions.
- Llorente's footnotes (definitions and `[12]` markers).
- Everything after the end marker. - Everything after the end marker.
## Scope rule ## Scope rule
@@ -39,7 +84,8 @@ Defined in `work.toml` under `[scope]` and applied by `vnpipe.text.clean`:
carry page numbers, so they never match as whole lines. carry page numbers, so they never match as whole lines.
- End: the `end_occurrence`-th line after the start whose stripped text equals `end_marker` - End: the `end_occurrence`-th line after the start whose stripped text equals `end_marker`
(exclusive). (exclusive).
- Illustration lines are dropped, trailing whitespace is removed, blank runs collapse to one. - Illustrations and footnotes are dropped, trailing whitespace is removed, blank runs collapse
to one.
`vnpipe parse` writes the result to `data/play.txt` and the structured form to `vnpipe parse` writes the result to `data/play.txt` and the structured form to
`data/parsed.json` (line ids `<scene>_<NNNN>`, numbered from 0001 per scene; `data/parsed.json` (line ids `<scene>_<NNNN>`, numbered from 0001 per scene;
+141 -5
View File
@@ -1,6 +1,7 @@
"""Faust-specific checks on the real text and the committed data.""" """Faust-specific checks on the real text and the committed data."""
import argparse import argparse
import hashlib
import json import json
import shutil import shutil
from pathlib import Path from pathlib import Path
@@ -14,22 +15,157 @@ ROOT = Path(__file__).resolve().parent.parent
RAW = ROOT / "data/raw/pg68566.txt" RAW = ROOT / "data/raw/pg68566.txt"
@pytest.mark.skipif(not RAW.is_file(), reason="raw Gutenberg file not downloaded") SCENE_IDS = [
def test_real_file_integration():
work = load_work(ROOT)
_, parsed = text.build(RAW.read_bytes(), work.data)
assert [s["id"] for s in parsed["scenes"]] == [
"dedicatoria", "dedicatoria",
"prologo_teatro", "prologo_teatro",
"prologo_cielo", "prologo_cielo",
"noche", "noche",
"puertas_ciudad",
"gabinete_1",
"gabinete_2",
"taberna_auerbach",
"cocina_bruja",
"calle_1",
"cuartito",
"paseo",
"casa_vecina",
"calle_2",
"jardin",
"pabelloncito",
"bosques_cavernas",
"aposento_margarita",
"jardin_marta",
"fuente",
"muros",
"calle_noche",
"catedral",
"valpurgis",
"intermedio",
"dia_nebuloso",
"noche_campo",
"carcel",
] ]
# (line count, sha256 prefix of the lines) of the four prototype scenes before the full text.
# `noche` grew when the scope was extended; its first 187 lines are the old scene.
PROTOTYPE = {
"dedicatoria": (32, "3934c9136e9e107d"),
"prologo_teatro": (255, "df9c96c1e5923065"),
"prologo_cielo": (165, "3725ec49b88b3470"),
"noche": (187, "f4faeb265d7df507"),
}
def _digest(lines):
payload = json.dumps(lines, sort_keys=True, ensure_ascii=False)
return hashlib.sha256(payload.encode()).hexdigest()[:16]
@pytest.fixture(scope="module")
def parsed():
return json.loads((ROOT / "data/parsed.json").read_text(encoding="utf-8"))
def _scene(parsed, scene_id):
return next(s for s in parsed["scenes"] if s["id"] == scene_id)
@pytest.mark.skipif(not RAW.is_file(), reason="raw Gutenberg file not downloaded")
def test_real_file_integration():
work = load_work(ROOT)
_, parsed = text.build(RAW.read_bytes(), work.data)
assert [s["id"] for s in parsed["scenes"]] == SCENE_IDS
known = set(work.speakers.values()) known = set(work.speakers.values())
assert known <= set(work.cast)
for s in parsed["scenes"]: for s in parsed["scenes"]:
assert s["lines"] assert s["lines"]
assert {ln["speaker"] for ln in s["lines"]} - {None} <= known assert {ln["speaker"] for ln in s["lines"]} - {None} <= known
def test_scene_config(parsed):
work = load_work(ROOT)
assert [s["id"] for s in work.scenes] == SCENE_IDS
assert len({s["id"] for s in work.scenes}) == len(SCENE_IDS)
for s in work.scenes:
assert s["time_of_day"] in {"dawn", "day", "dusk", "night", "timeless"}
assert s["location"]
assert _scene(parsed, "gabinete_2")["heading"] == _scene(parsed, "gabinete_1")["heading"]
assert _scene(parsed, "calle_noche")["heading"] == _scene(parsed, "noche")["heading"]
locations = {s["id"]: s["location"] for s in work.scenes}
assert locations["gabinete_2"] == locations["gabinete_1"] == locations["noche"] == "study"
assert locations["cuartito"] == locations["aposento_margarita"]
def test_cast_config():
work = load_work(ROOT)
for cid, c in work.cast.items():
assert c["color"].startswith("#")
if c.get("sprite") is True:
assert "neutral" in c["expressions"], cid
sprites = {cid for cid, c in work.cast.items() if c.get("sprite") is True}
assert sprites >= {
"faust",
"mephisto",
"wagner",
"margarita",
"marta",
"valentin",
"witch",
"student",
"director",
"poet",
"clown",
}
for cid in ("frosch", "brander", "siebel", "altmayer", "lisa", "evil_spirit", "artisans"):
assert work.cast[cid]["sprite"] is False
def test_prototype_scenes_unchanged(parsed):
for scene_id, (count, digest) in PROTOTYPE.items():
lines = _scene(parsed, scene_id)["lines"][:count]
assert _digest(lines) == digest, scene_id
noche = _scene(parsed, "noche")["lines"]
assert noche[144]["id"] == "noche_0145" and noche[144]["kind"] == "direction"
assert noche[187]["text"] == "Llaman."
def test_scope_ends_before_the_part_two_summary(parsed):
last = _scene(parsed, "carcel")["lines"]
assert last[-1]["text"] == "¡Enrique! ¡Enrique!" and last[-1]["speaker"] == "voices"
assert last[-2]["kind"] == "direction" and last[-2]["text"].startswith("Desaparece con")
assert last[-3]["text"] == "¡Tú, conmigo!" and last[-3]["speaker"] == "mephisto"
assert "BREVE RESEÑA" not in (ROOT / "data/play.txt").read_text(encoding="utf-8")
def test_spinning_wheel_song(parsed):
rueca = _scene(parsed, "aposento_margarita")["lines"]
assert [ln["text"] for ln in rueca[:2]] == ["Huyeron del alma", "la dicha y la paz,"]
assert {ln["speaker"] for ln in rueca} == {"margarita"}
assert len(rueca) == 40 and rueca[-1]["text"] == "de tanto besar!"
def test_prose_scenes(parsed):
for scene_id, count in (("dia_nebuloso", 22), ("noche_campo", 6)):
verse = [ln for ln in _scene(parsed, scene_id)["lines"] if ln["kind"] == "verse"]
assert len(verse) == count
assert all(ln["indent"] == 0 for ln in verse)
first = _scene(parsed, "dia_nebuloso")["lines"]
assert first[1]["speaker"] == "faust" and first[1]["text"].startswith("¡En la miseria!")
def test_grouped_and_named_speakers(parsed):
def speakers(scene_id):
return {ln["speaker"] for ln in _scene(parsed, scene_id)["lines"]} - {None}
assert {"artisans", "citizens", "students", "peasants", "soldiers"} <= speakers(
"puertas_ciudad"
)
assert {"frosch", "brander", "siebel", "altmayer"} <= speakers("taberna_auerbach")
assert {"valentin", "crowd"} <= speakers("calle_noche")
assert {"witches", "walpurgis_guests", "trio"} <= speakers("valpurgis")
assert {"oberon", "titania", "puck", "ariel", "dream_figures"} <= speakers("intermedio")
assert "evil_spirit" in speakers("catedral")
@pytest.mark.skipif(not RAW.is_file(), reason="raw Gutenberg file not downloaded") @pytest.mark.skipif(not RAW.is_file(), reason="raw Gutenberg file not downloaded")
def test_cli_parse_is_byte_identical(tmp_path): def test_cli_parse_is_byte_identical(tmp_path):
work_dir = tmp_path / "faust" work_dir = tmp_path / "faust"
+485 -5
View File
@@ -16,14 +16,28 @@ gutenberg_id = 68566
url = "https://www.gutenberg.org/cache/epub/68566/pg68566.txt" url = "https://www.gutenberg.org/cache/epub/68566/pg68566.txt"
raw_file = "data/raw/pg68566.txt" raw_file = "data/raw/pg68566.txt"
# Scope: the play starts at the first marker line and ends right before the # Scope: Part I. The play starts at the first marker line and ends right before the end
# end marker (exclusive). Both are matched as whole stripped lines; `end_occurrence` # marker (exclusive); what follows is Llorente's prose summary of Part II (out of scope).
# picks which occurrence (1-based) counts, searching after the start marker. # Both are matched as whole stripped lines; `end_occurrence` picks which occurrence
# (1-based) counts, searching after the start marker.
[scope] [scope]
start_marker = "DEDICATORIA" start_marker = "DEDICATORIA"
end_marker = "(_Llaman._)" end_marker = "BREVE RESEÑA"
end_occurrence = 1 end_occurrence = 1
# Parser hints. `direction_headings`: whole lines printed in capitals that are stage
# directions or section titles (not speakers); each becomes a `direction` line.
[parser]
direction_headings = [
"CAMPESINOS BAJO LOS TILOS",
"ENTRA UN ESTUDIANTE",
"ENTRA FAUSTO",
"ENTRAN FAUSTO Y MEFISTÓFELES",
"ENTRA MEFISTÓFELES",
"MEFISTÓFELES, FAUSTO",
"FAUSTO, MEFISTÓFELES",
]
# Speaker headings as printed (upper case, before any comma/parenthesis) -> cast id. # Speaker headings as printed (upper case, before any comma/parenthesis) -> cast id.
[speakers] [speakers]
"EL DIRECTOR" = "director" "EL DIRECTOR" = "director"
@@ -38,7 +52,127 @@ end_occurrence = 1
"FAUSTO" = "faust" "FAUSTO" = "faust"
"EL ESPÍRITU" = "spirit" "EL ESPÍRITU" = "spirit"
# Scene heading (as printed) -> scene id, location, time of day, default presentation. # Speakers added for the full text. Anonymous one-off speakers share a group id; keys that
# contain markup or punctuation are matched as the whole printed line.
"WAGNER" = "wagner"
"MARGARITA" = "margarita"
"MARTA" = "marta"
"VALENTÍN" = "valentin"
"LA BRUJA" = "witch"
"ESTUDIANTE" = "student"
"FROSCH" = "frosch"
"BRANDER" = "brander"
"SIEBEL" = "siebel"
"ALTMAYER" = "altmayer"
"LUISA" = "lisa"
"EL ESPÍRITU MALO" = "evil_spirit"
"EL FUEGO FATUO" = "wisp"
"OBERÓN" = "oberon"
"TITANIA" = "titania"
"PUCK" = "puck"
"ARIEL" = "ariel"
"CORO DE ÁNGELES" = "angels_chorus"
"CORO DE MUJERES" = "women_chorus"
"CORO DE DISCÍPULOS" = "disciples_chorus"
"CORO DE ESPÍRITUS" = "spirits"
"ESPÍRITUS" = "spirits"
"CORO" = "chorus"
"EL CORO" = "chorus"
"TODOS" = "everyone"
"UNOS ARTESANOS" = "artisans"
"OTROS" = "artisans"
"LOS PRIMEROS" = "artisans"
"OTRO CAMARADA" = "artisans"
"UNO DE LOS PRIMEROS" = "artisans"
"LOS SEGUNDOS" = "artisans"
"UN TERCERO" = "artisans"
"CUARTO ARTESANO" = "artisans"
"QUINTO ARTESANO" = "artisans"
"UNA MOZA DE SERVICIO" = "servant_girls"
"OTRA" = "servant_girls"
"LA PRIMERA" = "servant_girls"
"LA OTRA" = "servant_girls"
"UN ESTUDIANTE" = "students"
"EL PRIMER ESTUDIANTE" = "students"
"EL SEGUNDO ESTUDIANTE" = "students"
"UN CIUDADANO" = "citizens"
"CIUDADANO SEGUNDO" = "citizens"
"CIUDADANO TERCERO" = "citizens"
"UN MENDIGO" = "citizens"
"UNA SEÑORITA DE LA CLASE MEDIA" = "citizens"
"UNA VIEJA" = "citizens"
"LA JOVEN" = "citizens"
"LA SEGUNDA JOVEN" = "citizens"
"CANCIÓN DE LOS SOLDADOS" = "soldiers"
"UN LABRIEGO VIEJO" = "peasants"
"EL LABRIEGO" = "peasants"
"LOS MONOS" = "apes"
"EL MICO" = "apes"
"LOS MICOS" = "apes"
"LA GENTE" = "crowd"
"UNA VOZ" = "voices"
"OTRA VOZ" = "voices"
"LA PRIMERA VOZ" = "voices"
"LA OTRA VOZ" = "voices"
"VOZ DE ARRIBA" = "voices"
"VOCES DE ABAJO" = "voices"
"VOZ DE ABAJO" = "voices"
"VOZ INTERIOR" = "voices"
"BRUJAS EN CORO" = "witches"
"CORO DE BRUJAS" = "witches"
"EL OTRO MEDIO CORO DE BRUJOS" = "witches"
"BRUJOS. MEDIO CORO" = "witches"
"AMBOS COROS" = "witches"
"UNA SEMIBRUJA" = "witches"
"LA BRUJA PRENDERA" = "witches"
"UN GENERAL" = "walpurgis_guests"
"UN MINISTRO" = "walpurgis_guests"
"UN ADVENEDIZO" = "walpurgis_guests"
"UN AUTOR" = "walpurgis_guests"
"LA HERMOSA" = "walpurgis_guests"
"LA VIEJA" = "walpurgis_guests"
"EL PROKTOFANTASMISTA" = "walpurgis_guests"
"SERVÍBILIS" = "walpurgis_guests"
"LA ORQUESTA" = "orchestra"
"LA ORQUESTA, TUTTI" = "orchestra"
"SOLO" = "orchestra"
"FAUSTO, MEFISTÓFELES _y_ EL FUEGO FATUO _cantando alternativamente_" = "trio"
"EL DIRECTOR DEL TEATRO" = "dream_figures"
"UN HERALDO" = "dream_figures"
"UN ARTISTA DEL NORTE" = "dream_figures"
"UNA BRUJA JOVEN" = "dream_figures"
"UNA MATRONA" = "dream_figures"
"EL MAESTRO DE CAPILLA" = "dream_figures"
"LA VELETA" = "dream_figures"
"UN EX GENIO DEL SIGLO" = "dream_figures"
"UN HOMBRE DE MUNDO" = "dream_figures"
"UN DANZANTE" = "dream_figures"
"EL MAESTRO DE BAILE" = "dream_figures"
"UN JUGLAR" = "dream_figures"
"UN MATERIALISTA" = "dream_figures"
"UN SUPERNATURALISTA" = "dream_figures"
"LOS AHÍTOS" = "dream_figures"
"FUEGOS FATUOS" = "dream_figures"
"UNA ESTRELLA CAÍDA" = "dream_figures"
"LOS AMAZACOTADOS" = "dream_figures"
"UN GENIO QUE SE ESTÁ FORMANDO" = "dream_figures"
"UNA PAREJITA" = "dream_figures"
"UN VIAJERO CURIOSO" = "dream_figures"
"UN ORTODOXO" = "dream_figures"
"UN PURISTA" = "dream_figures"
"LOS XENIOS" = "dream_figures"
"HENNINGS" = "dream_figures"
"MUSAGETA" = "dream_figures"
"EL VIAJERO CURIOSO" = "dream_figures"
"UNA GRULLA" = "dream_figures"
"UN DOGMÁTICO" = "dream_figures"
"UN IDEALISTA" = "dream_figures"
"UN ESCÉPTICO" = "dream_figures"
"LOS APROVECHADOS" = "dream_figures"
# Scene heading (as printed) -> scene id, location, time of day. A heading printed several
# times ("CALLE", "GABINETE DE ESTUDIO", "DE NOCHE") needs `occurrence` (1-based, in order of
# appearance) on each entry. `format = "prose"` marks scenes printed as prose, not verse.
[[scenes]] [[scenes]]
heading = "DEDICATORIA" heading = "DEDICATORIA"
id = "dedicatoria" id = "dedicatoria"
@@ -59,10 +193,162 @@ time_of_day = "timeless"
[[scenes]] [[scenes]]
heading = "DE NOCHE" heading = "DE NOCHE"
occurrence = 1
id = "noche" id = "noche"
location = "study" location = "study"
time_of_day = "night" time_of_day = "night"
[[scenes]]
heading = "A LAS PUERTAS DE LA CIUDAD"
id = "puertas_ciudad"
location = "city_gates"
time_of_day = "day"
[[scenes]]
heading = "GABINETE DE ESTUDIO"
occurrence = 1
id = "gabinete_1"
location = "study"
time_of_day = "night"
[[scenes]]
heading = "GABINETE DE ESTUDIO"
occurrence = 2
id = "gabinete_2"
location = "study"
time_of_day = "day"
[[scenes]]
heading = "TABERNA DE AUERBACH EN LEIPZIG"
id = "taberna_auerbach"
location = "tavern"
time_of_day = "night"
[[scenes]]
heading = "COCINA DE LA BRUJA"
id = "cocina_bruja"
location = "witch_kitchen"
time_of_day = "timeless"
[[scenes]]
heading = "CALLE"
occurrence = 1
id = "calle_1"
location = "street"
time_of_day = "day"
[[scenes]]
heading = "AL CAER LA TARDE"
id = "cuartito"
location = "margaret_room"
time_of_day = "dusk"
[[scenes]]
heading = "PASEO"
id = "paseo"
location = "promenade"
time_of_day = "day"
[[scenes]]
heading = "CASA DE LA VECINA"
id = "casa_vecina"
location = "neighbour_house"
time_of_day = "day"
[[scenes]]
heading = "CALLE"
occurrence = 2
id = "calle_2"
location = "street"
time_of_day = "day"
[[scenes]]
heading = "JARDÍN"
id = "jardin"
location = "garden"
time_of_day = "day"
[[scenes]]
heading = "UN PABELLONCITO EN EL JARDÍN"
id = "pabelloncito"
location = "garden_pavilion"
time_of_day = "dusk"
[[scenes]]
heading = "BOSQUES Y CAVERNAS"
id = "bosques_cavernas"
location = "forest_cave"
time_of_day = "day"
[[scenes]]
heading = "APOSENTO DE MARGARITA"
id = "aposento_margarita"
location = "margaret_room"
time_of_day = "day"
[[scenes]]
heading = "JARDÍN DE MARTA"
id = "jardin_marta"
location = "garden"
time_of_day = "day"
[[scenes]]
heading = "EN LA FUENTE"
id = "fuente"
location = "fountain"
time_of_day = "day"
[[scenes]]
heading = "EN LOS MUROS DE LA CIUDAD"
id = "muros"
location = "city_walls"
time_of_day = "dusk"
[[scenes]]
heading = "DE NOCHE"
occurrence = 2
id = "calle_noche"
location = "street"
time_of_day = "night"
[[scenes]]
heading = "CATEDRAL"
id = "catedral"
location = "cathedral"
time_of_day = "day"
[[scenes]]
heading = "NOCHE DE SANTA VALPURGIS"
id = "valpurgis"
location = "harz"
time_of_day = "night"
[[scenes]]
heading = "INTERMEDIO"
id = "intermedio"
location = "harz"
time_of_day = "night"
[[scenes]]
heading = "DÍA NEBULOSO"
id = "dia_nebuloso"
location = "field"
time_of_day = "day"
format = "prose"
[[scenes]]
heading = "NOCHE"
id = "noche_campo"
location = "field"
time_of_day = "night"
format = "prose"
[[scenes]]
heading = "CÁRCEL"
id = "carcel"
location = "prison"
time_of_day = "night"
# Cast. `sprite = false` means the character is never drawn as a standing sprite # Cast. `sprite = false` means the character is never drawn as a standing sprite
# (see docs/adaptation-rules.md); `expressions` maps the annotation emotion # (see docs/adaptation-rules.md); `expressions` maps the annotation emotion
# vocabulary to the sprite expressions that exist for that character. # vocabulary to the sprite expressions that exist for that character.
@@ -136,6 +422,200 @@ name = "El Espíritu"
color = "#e85a3a" color = "#e85a3a"
sprite = false sprite = false
# Characters added for the full text. Named characters first; then groups of anonymous speakers.
# New sprite characters map every emotion to "neutral" until their art exists.
[cast.wagner]
name = "Wagner"
color = "#9fb4d9"
sprite = true
expressions = { neutral = "neutral", solemn = "neutral", melancholic = "neutral", joyful = "neutral", ecstatic = "neutral", ironic = "neutral", angry = "neutral", fearful = "neutral" }
[cast.margarita]
name = "Margarita"
color = "#e8b4c0"
sprite = true
expressions = { neutral = "neutral", solemn = "neutral", melancholic = "neutral", joyful = "neutral", ecstatic = "neutral", ironic = "neutral", angry = "neutral", fearful = "neutral" }
[cast.marta]
name = "Marta"
color = "#c9a5d8"
sprite = true
expressions = { neutral = "neutral", solemn = "neutral", melancholic = "neutral", joyful = "neutral", ecstatic = "neutral", ironic = "neutral", angry = "neutral", fearful = "neutral" }
[cast.valentin]
name = "Valentín"
color = "#d98a6a"
sprite = true
expressions = { neutral = "neutral", solemn = "neutral", melancholic = "neutral", joyful = "neutral", ecstatic = "neutral", ironic = "neutral", angry = "neutral", fearful = "neutral" }
[cast.witch]
name = "La Bruja"
color = "#9ac47a"
sprite = true
expressions = { neutral = "neutral", solemn = "neutral", melancholic = "neutral", joyful = "neutral", ecstatic = "neutral", ironic = "neutral", angry = "neutral", fearful = "neutral" }
[cast.student]
name = "El Estudiante"
color = "#e0c070"
sprite = true
expressions = { neutral = "neutral", solemn = "neutral", melancholic = "neutral", joyful = "neutral", ecstatic = "neutral", ironic = "neutral", angry = "neutral", fearful = "neutral" }
[cast.frosch]
name = "Frosch"
color = "#e0a860"
sprite = false
[cast.brander]
name = "Brander"
color = "#c8c078"
sprite = false
[cast.siebel]
name = "Siebel"
color = "#88c0b0"
sprite = false
[cast.altmayer]
name = "Altmayer"
color = "#b8a090"
sprite = false
[cast.lisa]
name = "Luisa"
color = "#f0b8a0"
sprite = false
[cast.evil_spirit]
name = "El Espíritu Malo"
color = "#8a3a50"
sprite = false
[cast.wisp]
name = "El Fuego Fatuo"
color = "#f0e070"
sprite = false
[cast.oberon]
name = "Oberón"
color = "#7ab8e8"
sprite = false
[cast.titania]
name = "Titania"
color = "#d8a0e8"
sprite = false
[cast.puck]
name = "Puck"
color = "#a0d870"
sprite = false
[cast.ariel]
name = "Ariel"
color = "#a8e0f0"
sprite = false
[cast.angels_chorus]
name = "Coro de Ángeles"
color = "#f0f0d8"
sprite = false
[cast.women_chorus]
name = "Coro de Mujeres"
color = "#e8d0e0"
sprite = false
[cast.disciples_chorus]
name = "Coro de Discípulos"
color = "#d0d8e8"
sprite = false
[cast.spirits]
name = "Espíritus"
color = "#a898d8"
sprite = false
[cast.chorus]
name = "El Coro"
color = "#c8b8a0"
sprite = false
[cast.everyone]
name = "Todos"
color = "#d0c8b0"
sprite = false
[cast.artisans]
name = "Artesanos"
color = "#c09870"
sprite = false
[cast.servant_girls]
name = "Criadas"
color = "#d8a8b0"
sprite = false
[cast.students]
name = "Estudiantes"
color = "#b0b868"
sprite = false
[cast.citizens]
name = "Ciudadanos"
color = "#a8b8c0"
sprite = false
[cast.soldiers]
name = "Soldados"
color = "#c87868"
sprite = false
[cast.peasants]
name = "Campesinos"
color = "#a8c070"
sprite = false
[cast.apes]
name = "Los Monos"
color = "#b09060"
sprite = false
[cast.crowd]
name = "La Gente"
color = "#b8b0a8"
sprite = false
[cast.voices]
name = "Voces"
color = "#c0c8e0"
sprite = false
[cast.witches]
name = "Brujas"
color = "#8ab870"
sprite = false
[cast.walpurgis_guests]
name = "Invitados de Walpurgis"
color = "#d0a878"
sprite = false
[cast.orchestra]
name = "La Orquesta"
color = "#d8c8a0"
sprite = false
[cast.trio]
name = "Fausto, Mefistófeles y el Fuego Fatuo"
color = "#d8d0a0"
sprite = false
[cast.dream_figures]
name = "Figuras del Sueño"
color = "#b8a8c8"
sprite = false
# Staging decisions (human judgment, see docs/adaptation-rules.md). # Staging decisions (human judgment, see docs/adaptation-rules.md).
# A scene's `bg` is shown after its title card; `mode` is the default text mode # A scene's `bg` is shown after its title card; `mode` is the default text mode
# ("adv" = dialogue box with sprites, "nvl" = full-screen text, no sprites). # ("adv" = dialogue box with sprites, "nvl" = full-screen text, no sprites).