tts/text_reader.cpp: split script sequences when the script changes