WIP : text decoder

Reimplement text generation using a dedicated protocol, which is much cleaner...