Commit 29c97e7
committed
feat: add RTL support and extend TTS to 55+ languages
RTL (Right-to-Left) Support:
- New rtl_support.py module for EPUB RTL layout management
- Automatic detection of RTL languages (Arabic, Hebrew, Persian, Urdu, etc.)
- CSS injection for proper text direction and layout
- Handles RTL<->LTR transitions (e.g., Arabic->French, French->Arabic)
- Protects technical content (code, URLs) from direction reversal
- Updates OPF metadata with page-progression-direction
TTS Expansion (55+ languages):
- Asian: Chinese, Japanese, Korean, Hindi, Vietnamese, Thai, Indonesian,
Malay, Filipino, Bengali, Tamil, Telugu
- European: English, French, German, Spanish, Italian, Portuguese, Russian,
Dutch, Polish, Swedish, Norwegian, Danish, Finnish, Greek, Czech,
Hungarian, Romanian, Turkish, Ukrainian, Bulgarian, Croatian, Slovak,
Slovenian, Lithuanian, Latvian, Estonian
- Semitic/RTL: Arabic, Hebrew, Persian/Farsi, Urdu
- Premium neural voices from Edge-TTS
UI Updates:
- Extended language dropdowns in TTS modals with native script labels1 parent 389613c commit 29c97e7
File tree
14 files changed
+46494
-82
lines changed- benchmark_results
- benchmark
- src
- core/epub
- tts
- utils
- web
- static/js
- templates
14 files changed
+46494
-82
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
615 | 618 | | |
616 | 619 | | |
617 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
618 | 627 | | |
619 | 628 | | |
620 | | - | |
621 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
622 | 637 | | |
623 | 638 | | |
624 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
95 | 114 | | |
96 | 115 | | |
97 | 116 | | |
| |||
137 | 156 | | |
138 | 157 | | |
139 | 158 | | |
| 159 | + | |
140 | 160 | | |
141 | 161 | | |
142 | 162 | | |
| |||
146 | 166 | | |
147 | 167 | | |
148 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
149 | 172 | | |
150 | 173 | | |
151 | 174 | | |
| |||
162 | 185 | | |
163 | 186 | | |
164 | 187 | | |
| 188 | + | |
| 189 | + | |
165 | 190 | | |
166 | 191 | | |
167 | 192 | | |
| |||
170 | 195 | | |
171 | 196 | | |
172 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
173 | 201 | | |
174 | 202 | | |
| 203 | + | |
175 | 204 | | |
176 | 205 | | |
177 | 206 | | |
178 | 207 | | |
179 | 208 | | |
180 | 209 | | |
181 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
182 | 214 | | |
183 | 215 | | |
184 | 216 | | |
185 | 217 | | |
186 | 218 | | |
187 | 219 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
192 | 230 | | |
193 | | - | |
194 | | - | |
| 231 | + | |
| 232 | + | |
195 | 233 | | |
196 | | - | |
| 234 | + | |
| 235 | + | |
197 | 236 | | |
198 | 237 | | |
199 | 238 | | |
200 | 239 | | |
201 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
202 | 248 | | |
203 | 249 | | |
204 | 250 | | |
| |||
207 | 253 | | |
208 | 254 | | |
209 | 255 | | |
210 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
211 | 260 | | |
212 | 261 | | |
213 | 262 | | |
| |||
0 commit comments