Text this: Regulated Grammars and Automata