mirror of
https://github.com/Dasemu/faust-vn.git
synced 2026-11-26 15:26:20 +00:00
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:
1 parent
a35d8e842c
commit
95aa8a0b10
4 files changed
+26
-6
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user