tts/text_reader.cpp: track the character range for each match