Coding 2024-03-03
Hm. I mostly messed around today, but I did get some more work done on the conversion script just now. I've got hopefully the right behavior for the title marker at each level of the tree. I've got a bit of work to do in terms of figuring out the runtime checks that I want to try to ensure stylistic consistency. But the big thing I need to work through is how to assemble the text of the different nodes together. Things I think I need:
- Some kind of matching argument at the top level
- A header helper that does things like temporarily increase the header level
- Probably this should all be generators or something?
- Chapters and books need to know their own number
- I need to figure out where I want end-of-node line breaks to be in all of this. Inserted programmatically, already in the outline, something else?
Thinking about the line breaks... There should be 2+ breaks between everything I think, because I'm not going to want to have multiple scenes in a paragraph, probably. So, I can either emit those as I go, or say "okay, join on double newlines". Stuff to consider for later.
Well, I can figure the rest out later, it's nothing I haven't done before. For now, sleep.
Good night.