The Learnable Typewriter A Generative Approach to Text Analysis (ICDAR'24)