I would start with:
1. Designing one XML file with elements and structure.
2. I'd make a parser.
3. I'd draw the elements with the texts inside the XML.
4. I'd have the generator.
5. I'd store the results in that XML file.
This is only one of the zillions of ways to do it...
Think about what you exactly need, start designing it, once you'll have the complete design, then and only then start programming little by little: first one part, then another one... and so on...
When you will face a problem, then come back...
Here we are not to make your job. We will only
help.
Meanwhile, and before starting, you MUST read the bottom notes on the page that follows:
link[
^] and this complete
page[
^]...