feat(translate): map a public-domain translation onto the game's speeches

Add the translate {fetch,build,status} stage: parse a Project Gutenberg
ebook into speeches and directions, align them with the game's speeches by
speaker sequence, group split or merged speeches, and accept verbatim
overrides. Output: data/translations/<code>.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-20 13:38:28 +02:00
1 parent 70a0ad577b
commit 33c8b32b69
9 files changed
+1093 -2

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
[translations.en]
language = "english"
label = "English"
text_url = "https://example.org/mini.txt"
text_file = "data/raw/en.txt"
gutenberg_id = 1
title = "Mini"
subtitle = "Fixture work"
translator = "E. Translator"
end_text = "To be continued…"
voice_credits = ["Voices: nobody."]
[translations.en.speakers]
MANAGER = "director"
POET = "poet"
"THE LORD" = "lord"
VOICE = "poet_voice"
[[translations.en.sections]]
scene = "lyric"
heading = "LYRIC"
default_speaker = "poet_voice"
subtitle = "Lyric · Dusk"
[[translations.en.sections]]
scene = "talk"
heading = "TALK"
title = "CONVERSATION"
[[translations.en.overrides]]
scene = "talk"
game = "talk_0010"
source = "Exit."
[translations.en.names]
director = "Manager"
poet = "Poet"
lord = "The Lord"
+69
View File
@@ -0,0 +1,69 @@
The Project Gutenberg eBook of Mini (a test fixture)
*** START OF THE PROJECT GUTENBERG EBOOK MINI ***
CONTENTS
LYRIC
TALK
LYRIC
Again ye come, ye hovering Forms! I find ye,
As early to my clouded sight ye shone!
Shall I attempt, this once, to seize and bind ye?
And dear ones rise,
Whom fortune stole.
[Illustration]
TALK
A STAGE
MANAGER. POET.
MANAGER
Ye two, who oft my help have been,
Say, what think ye?
I wish to please the crowd,
Who live and let me live.
Already there they sit,
With curious eyebrows raised.
POET
Away, profane!
MANAGER (_softly_)
Hush, he hears. [_Exit_.
POET
My breast is pressed
Beneath such weight.27
(The evening comes),—
THE LORD
My servant! Tempt him.
MANAGER
Enough talk.
VOICE
The birds are still;
The night descends.
POET
I wake.
*** END OF THE PROJECT GUTENBERG EBOOK MINI ***
Licence text that must never be read.