Skip to content

v2.10.0

Choose a tag to compare

@rotemdan rotemdan released this 31 Aug 11:14
· 2 commits to main since this release

Fixes

  • Fix issues with sentences spanning over multiple lines, causing breaking of segmentation
  • Change to @echogarden/text-segmentation v0.4.1 which 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 NaN values in generated subtitles

Behavioral changes

  • Set whitespace option, which controls whitespace in timeline segment text, to default to preserve. 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