feat(work): scene subtitles, menu background and scene music overrides

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-19 05:02:15 +02:00
1 parent 35c2b0035c
commit fae00009b7
2 files changed
+43 -2

No files matched your search

+1 -1
View File
@@ -202,7 +202,7 @@ def test_from_parsed_annotations():
cielo = next(s for s in annotated["scenes"] if s["id"] == "prologo_cielo") cielo = next(s for s in annotated["scenes"] if s["id"] == "prologo_cielo")
assert cielo["lines"][0]["ann"]["on_stage"] == [] assert cielo["lines"][0]["ann"]["on_stage"] == []
# the real project generates (cues all resolve) without writing anything # the real project generates (cues all resolve) without writing anything
renpy_gen.render_script(work, annotated, set()) renpy_gen.render_script(work, annotated)
def test_annotated_data_is_valid(): def test_annotated_data_is_valid():
+42 -1
View File
@@ -4,7 +4,7 @@
[work] [work]
id = "faust" id = "faust"
title = "Fausto" title = "Fausto"
subtitle = "Primera parte — Dedicatoria, prólogos y la noche de Fausto" subtitle = "Primera parte"
author = "Johann Wolfgang von Goethe" author = "Johann Wolfgang von Goethe"
translator = "Teodoro Llorente" translator = "Teodoro Llorente"
language = "es" language = "es"
@@ -170,6 +170,10 @@ direction_headings = [
"UN ESCÉPTICO" = "dream_figures" "UN ESCÉPTICO" = "dream_figures"
"LOS APROVECHADOS" = "dream_figures" "LOS APROVECHADOS" = "dream_figures"
# Main menu look: the background (darkened) behind the title.
[ui]
main_menu_bg = "bg_study"
# Scene heading (as printed) -> scene id, location, time of day. A heading printed several # 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 # 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. # appearance) on each entry. `format = "prose"` marks scenes printed as prose, not verse.
@@ -178,18 +182,21 @@ heading = "DEDICATORIA"
id = "dedicatoria" id = "dedicatoria"
location = "dedication" location = "dedication"
time_of_day = "timeless" time_of_day = "timeless"
subtitle = "Imágenes de la juventud · Crepúsculo"
[[scenes]] [[scenes]]
heading = "PRÓLOGO EN EL TEATRO" heading = "PRÓLOGO EN EL TEATRO"
id = "prologo_teatro" id = "prologo_teatro"
location = "theatre" location = "theatre"
time_of_day = "day" time_of_day = "day"
subtitle = "Escenario de un teatro · Día"
[[scenes]] [[scenes]]
heading = "PRÓLOGO EN EL CIELO" heading = "PRÓLOGO EN EL CIELO"
id = "prologo_cielo" id = "prologo_cielo"
location = "heaven" location = "heaven"
time_of_day = "timeless" time_of_day = "timeless"
subtitle = "El cielo · Fuera del tiempo"
[[scenes]] [[scenes]]
heading = "DE NOCHE" heading = "DE NOCHE"
@@ -197,12 +204,14 @@ occurrence = 1
id = "noche" id = "noche"
location = "study" location = "study"
time_of_day = "night" time_of_day = "night"
subtitle = "Gabinete gótico de Fausto · Noche"
[[scenes]] [[scenes]]
heading = "A LAS PUERTAS DE LA CIUDAD" heading = "A LAS PUERTAS DE LA CIUDAD"
id = "puertas_ciudad" id = "puertas_ciudad"
location = "city_gates" location = "city_gates"
time_of_day = "day" time_of_day = "day"
subtitle = "Fuera de las murallas · Día de Pascua"
[[scenes]] [[scenes]]
heading = "GABINETE DE ESTUDIO" heading = "GABINETE DE ESTUDIO"
@@ -210,6 +219,7 @@ occurrence = 1
id = "gabinete_1" id = "gabinete_1"
location = "study" location = "study"
time_of_day = "night" time_of_day = "night"
subtitle = "Gabinete de Fausto · Noche"
[[scenes]] [[scenes]]
heading = "GABINETE DE ESTUDIO" heading = "GABINETE DE ESTUDIO"
@@ -217,18 +227,21 @@ occurrence = 2
id = "gabinete_2" id = "gabinete_2"
location = "study" location = "study"
time_of_day = "day" time_of_day = "day"
subtitle = "Gabinete de Fausto · Día"
[[scenes]] [[scenes]]
heading = "TABERNA DE AUERBACH EN LEIPZIG" heading = "TABERNA DE AUERBACH EN LEIPZIG"
id = "taberna_auerbach" id = "taberna_auerbach"
location = "tavern" location = "tavern"
time_of_day = "night" time_of_day = "night"
subtitle = "Taberna de Auerbach, Leipzig · Noche"
[[scenes]] [[scenes]]
heading = "COCINA DE LA BRUJA" heading = "COCINA DE LA BRUJA"
id = "cocina_bruja" id = "cocina_bruja"
location = "witch_kitchen" location = "witch_kitchen"
time_of_day = "timeless" time_of_day = "timeless"
subtitle = "Cocina de la bruja · Fuera del tiempo"
[[scenes]] [[scenes]]
heading = "CALLE" heading = "CALLE"
@@ -236,24 +249,28 @@ occurrence = 1
id = "calle_1" id = "calle_1"
location = "street" location = "street"
time_of_day = "day" time_of_day = "day"
subtitle = "Una calle de la ciudad · Día"
[[scenes]] [[scenes]]
heading = "AL CAER LA TARDE" heading = "AL CAER LA TARDE"
id = "cuartito" id = "cuartito"
location = "margaret_room" location = "margaret_room"
time_of_day = "dusk" time_of_day = "dusk"
subtitle = "Aposento de Margarita · Atardecer"
[[scenes]] [[scenes]]
heading = "PASEO" heading = "PASEO"
id = "paseo" id = "paseo"
location = "promenade" location = "promenade"
time_of_day = "day" time_of_day = "day"
subtitle = "Un paseo · Día"
[[scenes]] [[scenes]]
heading = "CASA DE LA VECINA" heading = "CASA DE LA VECINA"
id = "casa_vecina" id = "casa_vecina"
location = "neighbour_house" location = "neighbour_house"
time_of_day = "day" time_of_day = "day"
subtitle = "Casa de la vecina · Día"
[[scenes]] [[scenes]]
heading = "CALLE" heading = "CALLE"
@@ -261,48 +278,56 @@ occurrence = 2
id = "calle_2" id = "calle_2"
location = "street" location = "street"
time_of_day = "day" time_of_day = "day"
subtitle = "Una calle de la ciudad · Día"
[[scenes]] [[scenes]]
heading = "JARDÍN" heading = "JARDÍN"
id = "jardin" id = "jardin"
location = "garden" location = "garden"
time_of_day = "day" time_of_day = "day"
subtitle = "Jardín de Marta · Día"
[[scenes]] [[scenes]]
heading = "UN PABELLONCITO EN EL JARDÍN" heading = "UN PABELLONCITO EN EL JARDÍN"
id = "pabelloncito" id = "pabelloncito"
location = "garden_pavilion" location = "garden_pavilion"
time_of_day = "dusk" time_of_day = "dusk"
subtitle = "Pabelloncito del jardín · Atardecer"
[[scenes]] [[scenes]]
heading = "BOSQUES Y CAVERNAS" heading = "BOSQUES Y CAVERNAS"
id = "bosques_cavernas" id = "bosques_cavernas"
location = "forest_cave" location = "forest_cave"
time_of_day = "day" time_of_day = "day"
subtitle = "Bosque y caverna · Día"
[[scenes]] [[scenes]]
heading = "APOSENTO DE MARGARITA" heading = "APOSENTO DE MARGARITA"
id = "aposento_margarita" id = "aposento_margarita"
location = "margaret_room" location = "margaret_room"
time_of_day = "day" time_of_day = "day"
subtitle = "Aposento de Margarita · Día"
[[scenes]] [[scenes]]
heading = "JARDÍN DE MARTA" heading = "JARDÍN DE MARTA"
id = "jardin_marta" id = "jardin_marta"
location = "garden" location = "garden"
time_of_day = "day" time_of_day = "day"
subtitle = "Jardín de Marta · Día"
[[scenes]] [[scenes]]
heading = "EN LA FUENTE" heading = "EN LA FUENTE"
id = "fuente" id = "fuente"
location = "fountain" location = "fountain"
time_of_day = "day" time_of_day = "day"
subtitle = "La fuente de la ciudad · Día"
[[scenes]] [[scenes]]
heading = "EN LOS MUROS DE LA CIUDAD" heading = "EN LOS MUROS DE LA CIUDAD"
id = "muros" id = "muros"
location = "city_walls" location = "city_walls"
time_of_day = "dusk" time_of_day = "dusk"
subtitle = "Muros de la ciudad · Atardecer"
[[scenes]] [[scenes]]
heading = "DE NOCHE" heading = "DE NOCHE"
@@ -310,30 +335,35 @@ occurrence = 2
id = "calle_noche" id = "calle_noche"
location = "street" location = "street"
time_of_day = "night" time_of_day = "night"
subtitle = "Ante la casa de Margarita · Noche"
[[scenes]] [[scenes]]
heading = "CATEDRAL" heading = "CATEDRAL"
id = "catedral" id = "catedral"
location = "cathedral" location = "cathedral"
time_of_day = "day" time_of_day = "day"
subtitle = "La catedral · Día"
[[scenes]] [[scenes]]
heading = "NOCHE DE SANTA VALPURGIS" heading = "NOCHE DE SANTA VALPURGIS"
id = "valpurgis" id = "valpurgis"
location = "harz" location = "harz"
time_of_day = "night" time_of_day = "night"
subtitle = "Montes del Harz · Noche de Walpurgis"
[[scenes]] [[scenes]]
heading = "INTERMEDIO" heading = "INTERMEDIO"
id = "intermedio" id = "intermedio"
location = "harz" location = "harz"
time_of_day = "night" time_of_day = "night"
subtitle = "Sueño de una noche de Walpurgis · Noche"
[[scenes]] [[scenes]]
heading = "DÍA NEBULOSO" heading = "DÍA NEBULOSO"
id = "dia_nebuloso" id = "dia_nebuloso"
location = "field" location = "field"
time_of_day = "day" time_of_day = "day"
subtitle = "Campo abierto · Día nebuloso"
format = "prose" format = "prose"
[[scenes]] [[scenes]]
@@ -341,6 +371,7 @@ heading = "NOCHE"
id = "noche_campo" id = "noche_campo"
location = "field" location = "field"
time_of_day = "night" time_of_day = "night"
subtitle = "Campo abierto · Noche"
format = "prose" format = "prose"
[[scenes]] [[scenes]]
@@ -348,6 +379,7 @@ heading = "CÁRCEL"
id = "carcel" id = "carcel"
location = "prison" location = "prison"
time_of_day = "night" time_of_day = "night"
subtitle = "Calabozo de Margarita · Noche"
# 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
@@ -668,6 +700,7 @@ cast = { mephisto = "right" }
[staging.taberna_auerbach] [staging.taberna_auerbach]
bg = "bg_tavern" bg = "bg_tavern"
mode = "adv" mode = "adv"
music = "track:scenes/mephisto-waltz-1.ogg"
[staging.cocina_bruja] [staging.cocina_bruja]
bg = "bg_witch_kitchen" bg = "bg_witch_kitchen"
@@ -715,6 +748,7 @@ cast = { faust = "left" }
[staging.aposento_margarita] [staging.aposento_margarita]
bg = "bg_margaret_room" bg = "bg_margaret_room"
mode = "nvl" mode = "nvl"
music = "track:scenes/gretchen-am-spinnrade.ogg"
[staging.jardin_marta] [staging.jardin_marta]
bg = "bg_garden" bg = "bg_garden"
@@ -738,6 +772,7 @@ mode = "adv"
bg = "bg_cathedral" bg = "bg_cathedral"
mode = "adv" mode = "adv"
cast = { margarita = "center" } cast = { margarita = "center" }
music = "track:scenes/mozart-dies-irae.ogg"
[staging.valpurgis] [staging.valpurgis]
bg = "bg_harz" bg = "bg_harz"
@@ -762,6 +797,12 @@ cast = { faust = "left", mephisto = "right" }
bg = "bg_prison" bg = "bg_prison"
mode = "adv" mode = "adv"
[[cues]]
# The Easter choruses ("Cristo ha resucitado") reach Faust's study: Bach's Easter cantata
# plays until the end of the scene.
at = "noche_0473"
music = "track:scenes/bach-bwv4-christ-lag.ogg"
[[cues]] [[cues]]
# The archangels' hymn ends; the Lord is addressed by Mephistopheles. # The archangels' hymn ends; the Lord is addressed by Mephistopheles.
at = "prologo_cielo_0030" at = "prologo_cielo_0030"