fix(translations): per-occurrence speakers in puertas_ciudad, voice clip check

Map Taylor's generic THE FIRST / THE OTHER labels to the group each one
names, rebuild en.json with the config hash, regenerate vn (all 854 voice
clips now play in English) and test that the English tl keeps every clip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-20 17:52:09 +02:00
1 parent a35d8e842c
commit 95aa8a0b10
4 files changed
+26 -6

No files matched your search

+4 -3
View File
@@ -4,6 +4,7 @@
"language": "english",
"source_sha256": "7ad6f7ba26b9a42d3873b061c6a1201023e534c724371cedfee8062c8222d9b1",
"annotated_sha256": "36c25db99294a4960aee228eda6949d47085fc9ee2ce4c809366d3ecea3b9195",
"config_sha256": "1f72a451deca8236b2797fca11be3d8954639f2c0e33488744690289e0f23fa3",
"scenes": {
"dedicatoria": {
"title": "DEDICATION",
@@ -1969,7 +1970,7 @@
"puertas_ciudad_0027": [
{
"kind": "say",
"speaker": "artisans",
"speaker": "servant_girls",
"src_line": 1701,
"stanzas": [
[
@@ -2044,7 +2045,7 @@
"puertas_ciudad_0051": [
{
"kind": "say",
"speaker": "artisans",
"speaker": "students",
"src_line": 1741,
"stanzas": [
[
@@ -2159,7 +2160,7 @@
"puertas_ciudad_0107": [
{
"kind": "say",
"speaker": "servant_girls",
"speaker": "citizens",
"src_line": 1807,
"stanzas": [
[
+10
View File
@@ -3,6 +3,7 @@
import argparse
import hashlib
import json
import re
import shutil
from pathlib import Path
@@ -208,3 +209,12 @@ def test_from_parsed_annotations():
def test_annotated_data_is_valid():
data = json.loads((ROOT / "data/annotated.json").read_text(encoding="utf-8"))
validate(data, "annotated")
def test_english_translation_keeps_every_voice_clip():
"""The committed English tl plays exactly the clips of the Spanish script."""
clip = re.compile(r'^\s*voice "([^"]+)"$', re.M)
game = ROOT / "vn/game"
spanish = sorted(clip.findall((game / "script.rpy").read_text(encoding="utf-8")))
english = sorted(clip.findall((game / "tl/english/script.rpy").read_text(encoding="utf-8")))
assert spanish and english == spanish
+7 -3
View File
@@ -1293,7 +1293,8 @@ translate english puertas_ciudad_0025:
pass
translate english puertas_ciudad_0027:
c_artisans "That’s no great luck for me, ’tis plain.\nYou’ll have him, when and where you wander:\nHis partner in the dance you’ll be,—\nBut what is all your fun to me?"
voice "voice/puertas_ciudad_0027.ogg"
c_servant_girls "That’s no great luck for me, ’tis plain.\nYou’ll have him, when and where you wander:\nHis partner in the dance you’ll be,—\nBut what is all your fun to me?"
translate english puertas_ciudad_0031:
voice "voice/puertas_ciudad_0031.ogg"
@@ -1320,7 +1321,8 @@ translate english puertas_ciudad_0047:
pass
translate english puertas_ciudad_0051:
c_artisans "No, Brother! not for me their formal ways.\nQuick! lest our game escape us in the press:\nThe hand that wields the broom on Saturdays\nWill best, on Sundays, fondle and caress."
voice "voice/puertas_ciudad_0051.ogg"
c_students "No, Brother! not for me their formal ways.\nQuick! lest our game escape us in the press:\nThe hand that wields the broom on Saturdays\nWill best, on Sundays, fondle and caress."
translate english puertas_ciudad_0055:
pass
@@ -1380,7 +1382,8 @@ translate english puertas_ciudad_0106:
pass
translate english puertas_ciudad_0107:
c_servant_girls "She showed me mine, in crystal clear,\nWith several wild young blades, a soldier-lover:\nI seek him everywhere, I pry and peer,\nAnd yet, somehow, his face I can’t discover."
voice "voice/puertas_ciudad_0107.ogg"
c_citizens "She showed me mine, in crystal clear,\nWith several wild young blades, a soldier-lover:\nI seek him everywhere, I pry and peer,\nAnd yet, somehow, his face I can’t discover."
translate english puertas_ciudad_0111:
pass
@@ -3934,6 +3937,7 @@ translate english taberna_auerbach_0256:
pass
translate english taberna_auerbach_0260:
voice "voice/taberna_auerbach_0260.ogg"
c_chorus "We crack them and we crush them,\nAt once, whene’er they bite!"
translate english taberna_auerbach_0262:
+5
View File
@@ -1404,6 +1404,11 @@ ignore_lines = ["FIRST PART OF THE TRAGEDY"]
"SHOOTING-STAR" = "dream_figures"
"THE HEAVY FELLOWS" = "dream_figures"
# Generic labels that name different groups, one cast id per occurrence in order.
[translations.en.scene_speakers.puertas_ciudad]
"THE FIRST" = ["artisans", "servant_girls", "students"] # apprentice, servant girl, student
"THE OTHER" = ["servant_girls", "citizens"] # servant girl, citizen's daughter
[translations.en.scene_speakers.intermedio]
"MANAGER" = "dream_figures"