mirror of
https://github.com/harry0703/MoneyPrinterTurbo.git
synced 2026-11-14 18:22:59 +01:00
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.