mirror of
https://github.com/harry0703/MoneyPrinterTurbo.git
synced 2026-11-14 18:22:59 +01:00
The script splitter ends a line at every full stop followed by a space,
so the dot of a title before a name ended one too: "Mt. Everest is the
highest mountain on Earth." became "Mt" and "Everest is the highest
mountain on Earth", and "Mr. and Mrs. Smith live in Boston." became
"Mr", "and Mrs" and "Smith live in Boston". Edge TTS returns the title
as a word of its own and reads on without a pause, so each part got a
subtitle of its own: the video showed "Mt", "Dr" or "Mr" alone for
about 0.3 to 0.5 s.
A full stop followed by a space now stays inside the line after Mr,
Mrs, Ms, Dr, Prof and Mt, which come before a name and end no sentence.
"St." and "Jr." are left out, as they can end one ("on Main St. We open
at 9"). Whisper subtitles (subtitle.correct()) and providers without
word boundaries take their script lines from the same split, so they
keep a title with its name too.