Commit aab69d4
committed
fix: do not parse URL path slashes as bare IPA
Bare IPA used /phoneme/ delimiters that overlapped with URL paths, so
segments like /foo/ were tokenized as IPA and plain-text or SSML output
dropped slashes.
Require a non host/path character before an opening slash so real bare
IPA still works after whitespace or punctuation. Add regression tests for
plain text and Alexa SSML.
Made-with: Cursor1 parent 9f2625f commit aab69d4
2 files changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
273 | 288 | | |
274 | 289 | | |
275 | 290 | | |
| |||
315 | 330 | | |
316 | 331 | | |
317 | 332 | | |
318 | | - | |
| 333 | + | |
319 | 334 | | |
320 | 335 | | |
321 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
78 | 99 | | |
0 commit comments