feat: complete Chinese tutorial text and layout validation

This commit is contained in:
DragonHD
2026-09-20 12:10:30 +08:00
parent 6cd5bcbfee
commit b7ae04ec18
7 changed files with 124 additions and 6 deletions
+10
View File
@@ -195,3 +195,13 @@ so centred labels (the "Start New Game" button) were flushed right. Fixed to
- 35 tests pass, including engine layout at widths 360/400/480; original/modified byte verification and rollback passed. Backup: `E:/DragonHD/backup_game/tutorial-flight-20260920/Tutorial.dsc`.
- Game stopped using user's prior termination authorization; deployed file reread and matched output. SHA256: `a41caad224f748222489f8d062526ae663bb04201c593f59d6af02d69a74f604`.
- In-game acceptance pending: enter Flight after Zoom, use left click or arrow keys to move some distance, then check Continue Tutorial becomes available and Flight height starts.
## 2026-09-20 — Complete tutorial translation
- User accepted flight and requested all remaining tutorial stages. All 57 display literals are now translated through 42 unique mappings, including flight height, attack, charge/retry prompts, breath, eating, spell charging/casting, inactive spells, speed/pause and completion. Earlier 15 accepted literals remain byte-identical.
- Stock casting instructions contain two unescaped `"F"` segments. Added tightly scoped recognition of these specific display arguments; generic expressions remain excluded. Numeric prose `0% is` no longer falsely matches printf `% i`; actual placeholders remain protected by regression tests.
- Verified all translated glyphs exist in the GB2312 font metadata. New pages use centered paragraphs. Engine replay at widths 360/400/480 checks line positions, punctuation, height (<=140px). Fixed three punctuation wrap cases while wording.
- All 39 tests pass. Byte-span verification confirms every non-display byte is unchanged from the original; controls and printf parameters validated. Original event names, key bindings, thresholds, paths and waits are preserved.
- Backup: `E:/DragonHD/backup_game/tutorial-complete-20260920/Tutorial.dsc`. Rollback to the accepted five-group version tested on an isolated copy. Deployed after stopping the game under existing authorization; installed bytes reread and match output. SHA256: `720b7fce23b80405d6c8af2a1302ed95c085a072d8c8ecbae49b9db2cb32b8e3`.
- Rebuild: `python tools/script_text.py --source E:/DragonHD/backup_game/tutorial-step1-20260920/Tutorial.dsc --mapping tools/tutorial_cn.json --out E:/DragonHD/build/tutorial-complete/Tutorial.dsc --allow-alignment-changes`.
- Remaining acceptance: native playthrough from height through completion. Automated layout and byte checks do not prove the full gameplay chain; user has verified the earlier five groups and punctuation fix.
@@ -179,3 +179,13 @@ def validate_size(original, result):
- [x] 飞行标题、提示、任务说明已汉化并部署;35 项测试及回滚验证通过。
- [ ] 飞行中文显示、移动后继续按钮、进入飞行高度步骤实机验收。
- [ ] 验收后继续飞行高度与攻击提示。
### 教程全量汉化进度(按用户最新要求)
- [x] 飞行批次经用户确认。
- [x] 剩余教程完整翻译,含两处原版引号异常的施法说明:57/57 显示字面量、42 条映射。
- [x] 39 项回归测试、字库覆盖、非显示字节一致、三种宽度排版、独立副本回滚验证。
- [x] 全量教程部署并重读校验。
- [ ] 从飞行高度至教程结束的完整实机流程验收。
Task 1 的翻译与部署已完成;实机验收完成前,整体完成门槛仍保持待验收。