You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RTL/LTR Formatting:
- Add conditional text-align inline styles when source/target directions differ
- Add primary-writing-mode OPF metadata (horizontal-rl/lr)
- Add spine page-progression-direction attribute (rtl/ltr)
- Only apply formatting when translating between different text directions
- Support bidirectional translation (LTR→RTL and RTL→LTR)
Language Direction Support:
- Expand lang_directionality dictionary with comprehensive coverage
- RTL: Arabic, Hebrew, Farsi, Dari, Urdu, Yiddish, Pashto
- LTR: English, Spanish, French, German, Italian, Portuguese, Russian, CJK
- Support both legacy (iw) and modern (he) Hebrew codes
- Handle language codes with region suffixes (en-US → en)
Technical Implementation:
- Track source language in ElementHandler for direction comparison
- Build inline styles with semicolon-separated properties
- Add robust error handling for OPF metadata modifications
- Use hasattr checks for OEB structure compatibility
Bug Fixes:
- Fix Cache Manager delete for non-consecutive rows (IndexError)
- Collect selected rows before deletion to avoid index shifting
0 commit comments