fix: harden arabic terminal rtl rendering

This commit is contained in:
Adolfo Reyna
2026-03-06 19:25:12 -05:00
parent e3cd538dca
commit 57366543ec
2 changed files with 35 additions and 3 deletions
+8
View File
@@ -152,3 +152,11 @@ The project now features a high-performance, Apple Silicon-optimized pipeline th
- Implemented comment/blank-line support and invalid-line skipping with line-level warnings.
- Merged file-based glossary entries with repeatable `--glossary-pair` CLI entries for runtime overrides.
- **Outcome:** English caption correction can now use a maintained glossary file automatically, while preserving ad-hoc CLI term fixes.
## Phase 19: Arabic Terminal Rendering Hardening
- **Goal:** Improve readability of Arabic captions in terminal environments with mixed LTR/RTL output.
- **Approach:**
- Switched Arabic output to a strict two-line format (`[AR]:` label line + dedicated RTL content line).
- Wrapped Arabic caption content in explicit RTL embedding marks for better bidirectional layout stability.
- Added punctuation normalization for Arabic display (`،`, `؛`, `؟`) to reduce LTR punctuation artifacts.
- **Outcome:** Arabic captions render more consistently in terminal output, especially when adjacent to English/French/Spanish caption lines.