This document defines CJK text density adaptation for
TODOS.phase-72.72.11.2.3. The validation treats CJK characters as wider
display units.
The checks prove:
- CJK density rules auto-adjust UI element sizes for wider characters.
- text areas gain lines when CJK display units exceed the base capacity.
- font size is not reduced to hide overflow.
Density Inputs#
V2/ue/Tools/generate-v2-cjk-text-density.py reads:
V2/ue/Content/Localization/V2/StringTables/LaunchStrings_V2.jsonV2/ue/Content/Localization/V2/CJK/CJKTextDensityRules_V2.json
The rules map launch string keys to surface profiles such as compact buttons,
menu labels, body copy, and legal body copy. The generator measures translated
CJK text in display units, applies automatic minimum-width and text-area-line
adjustments, and writes
V2/ue/Content/Localization/V2/CJK/CJKTextDensityReport_V2.json.
Regeneration#
Run the generator after changing CJK launch text, density measurement rules, or UI surface profiles:
python3 V2/ue/Tools/generate-v2-cjk-text-density.py
Verification#
Run this gate after changing CJK translated text, density rules, generated reports, docs, or CI wiring:
python3 V2/ue/Tools/check-v2-cjk-text-density.py
Required release gates:
localization-cjk-text-density-contractlocalization-cjk-text-density-ruleslocalization-cjk-text-density-reportlocalization-cjk-text-density-auto-widthlocalization-cjk-text-density-auto-text-arealocalization-cjk-text-density-zero-overflowlocalization-cjk-text-density-ci-wired