Files
TanishqandHarry ae2034ae7b fix(subtitle): split Thai and Lao scripts at the spaces between sentences
Thai and Lao separate sentences with a space instead of a full stop.
split_string_by_punctuations() ended script lines only at PUNCTUATIONS
and at line breaks, so a Thai or Lao paragraph was one script line, and
with Edge TTS the video showed the whole narration as one subtitle: a
block of every sentence, which runs off the top of the frame for a
longer script.

Whitespace between two Thai or Lao letters now ends the line. A space
next to a digit, a Latin letter, the repetition mark ๆ or the
abbreviation mark ฯ (ໆ and ຯ in Lao) stays inside the sentence: Edge
TTS returns "เด็ก ๆ" as one word, and numbers and Latin words as words
of their own.

subtitle.correct() keeps splitting at punctuation only. create() does
not split Whisper's segments at these spaces, so one segment can hold
several sentences, and correct() would give the lines left over the
00:00:00,000 placeholder.
2026-11-03 07:28:31 +08:00
..