v2.10.0
Fixes
- Fix issues with sentences spanning over multiple lines, causing breaking of segmentation
- Change to @echogarden/text-segmentationv0.4.1which changes behavior of sentence segmentation to ensure it never spans over line breaks. Use segment boundaries from the segmentation library itself to prevent conflicts or overlapping
- Fix issues with empty timestamps in timelines. Fall back to last known timestamp if not available
- Fix issues with NaNvalues in generated subtitles
Behavioral changes
- Set whitespaceoption, which controls whitespace in timeline segment text, to default topreserve. Sentence text is not impacted by this option at the moment and always preserves whitespace
- Sentences that span over multiple lines, like in some plain-text styles, will now always break over the line. For now it requires that sentences never contains line-breaks, so older plain-texts formats like Project Gutenberg books will require some preprocessing to work correctly. This change was made to resolve significant issues with how sentences are segmented, but in the future likely enhanced to provide option to safely handle these kinds of texts
Full Changelog: v2.9.3...v2.10.0