Translate English .txt files into Chinese and produce sentence-aligned bilingual JSON with merging of short English sentences. Use when asked to batch-convert text files into [{"en","zh"}] arrays, split/merge sentences, or generate JSON alongside original .txt files.
Convert English .txt files into bilingual JSON arrays, with sentence splitting, merging of short English sentences, and Chinese translation for each aligned segment.
Read the entire .txt file and produce a coherent, natural Chinese translation of the full content. Fix line breaks, captions, or fragmentary lines in Chinese so the narrative flows.
Guidelines:
Reconstruct complete English sentences from the raw lines. Merge broken fragments and normalize punctuation.
Guidelines:
en segment concise; split long sentences if they become unwieldy for listening practice.Split the full Chinese translation from Step 1 into segments that align with the English sentences from Step 2. Each zh entry should map cleanly to the corresponding en entry for listen-then-translate practice.
Alignment rules:
en sentence maps to one zh sentence/segment.zh entry.zh entry.Ensure the JSON is an array of objects like:
[
{"en": "Example sentence.", "zh": "示例句子。"}
]