mirror of
https://github.com/Dasemu/faust-vn.git
synced 2026-11-26 07:16: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
@@ -4,6 +4,7 @@
|
|||||||
"language": "english",
|
"language": "english",
|
||||||
"source_sha256": "7ad6f7ba26b9a42d3873b061c6a1201023e534c724371cedfee8062c8222d9b1",
|
"source_sha256": "7ad6f7ba26b9a42d3873b061c6a1201023e534c724371cedfee8062c8222d9b1",
|
||||||
"annotated_sha256": "36c25db99294a4960aee228eda6949d47085fc9ee2ce4c809366d3ecea3b9195",
|
"annotated_sha256": "36c25db99294a4960aee228eda6949d47085fc9ee2ce4c809366d3ecea3b9195",
|
||||||
|
"config_sha256": "1f72a451deca8236b2797fca11be3d8954639f2c0e33488744690289e0f23fa3",
|
||||||
"scenes": {
|
"scenes": {
|
||||||
"dedicatoria": {
|
"dedicatoria": {
|
||||||
"title": "DEDICATION",
|
"title": "DEDICATION",
|
||||||
@@ -1969,7 +1970,7 @@
|
|||||||
"puertas_ciudad_0027": [
|
"puertas_ciudad_0027": [
|
||||||
{
|
{
|
||||||
"kind": "say",
|
"kind": "say",
|
||||||
"speaker": "artisans",
|
"speaker": "servant_girls",
|
||||||
"src_line": 1701,
|
"src_line": 1701,
|
||||||
"stanzas": [
|
"stanzas": [
|
||||||
[
|
[
|
||||||
@@ -2044,7 +2045,7 @@
|
|||||||
"puertas_ciudad_0051": [
|
"puertas_ciudad_0051": [
|
||||||
{
|
{
|
||||||
"kind": "say",
|
"kind": "say",
|
||||||
"speaker": "artisans",
|
"speaker": "students",
|
||||||
"src_line": 1741,
|
"src_line": 1741,
|
||||||
"stanzas": [
|
"stanzas": [
|
||||||
[
|
[
|
||||||
@@ -2159,7 +2160,7 @@
|
|||||||
"puertas_ciudad_0107": [
|
"puertas_ciudad_0107": [
|
||||||
{
|
{
|
||||||
"kind": "say",
|
"kind": "say",
|
||||||
"speaker": "servant_girls",
|
"speaker": "citizens",
|
||||||
"src_line": 1807,
|
"src_line": 1807,
|
||||||
"stanzas": [
|
"stanzas": [
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import hashlib
|
import hashlib
|
||||||
import json
|
import json
|
||||||
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
@@ -208,3 +209,12 @@ def test_from_parsed_annotations():
|
|||||||
def test_annotated_data_is_valid():
|
def test_annotated_data_is_valid():
|
||||||
data = json.loads((ROOT / "data/annotated.json").read_text(encoding="utf-8"))
|
data = json.loads((ROOT / "data/annotated.json").read_text(encoding="utf-8"))
|
||||||
validate(data, "annotated")
|
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
|
||||||
@@ -1293,7 +1293,8 @@ translate english puertas_ciudad_0025:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
translate english puertas_ciudad_0027:
|
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:
|
translate english puertas_ciudad_0031:
|
||||||
voice "voice/puertas_ciudad_0031.ogg"
|
voice "voice/puertas_ciudad_0031.ogg"
|
||||||
@@ -1320,7 +1321,8 @@ translate english puertas_ciudad_0047:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
translate english puertas_ciudad_0051:
|
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:
|
translate english puertas_ciudad_0055:
|
||||||
pass
|
pass
|
||||||
@@ -1380,7 +1382,8 @@ translate english puertas_ciudad_0106:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
translate english puertas_ciudad_0107:
|
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:
|
translate english puertas_ciudad_0111:
|
||||||
pass
|
pass
|
||||||
@@ -3934,6 +3937,7 @@ translate english taberna_auerbach_0256:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
translate english taberna_auerbach_0260:
|
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!"
|
c_chorus "We crack them and we crush them,\nAt once, whene’er they bite!"
|
||||||
|
|
||||||
translate english taberna_auerbach_0262:
|
translate english taberna_auerbach_0262:
|
||||||
|
|||||||
@@ -1404,6 +1404,11 @@ ignore_lines = ["FIRST PART OF THE TRAGEDY"]
|
|||||||
"SHOOTING-STAR" = "dream_figures"
|
"SHOOTING-STAR" = "dream_figures"
|
||||||
"THE HEAVY FELLOWS" = "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]
|
[translations.en.scene_speakers.intermedio]
|
||||||
"MANAGER" = "dream_figures"
|
"MANAGER" = "dream_figures"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user