Coding 2022-05-06
For the stuff in the last coding entry, I worked out some stuff with Hatchling. I'm really not confident I'm planning to use it as intended, but, like, whatever.
For this entry, I'm not touching that, or MOTR. Instead, I'm doing a little sketching of stuff for conlanging. Basically, I'm trying to figure out the right way to support glosses.
To start with, I'm thinking about Sphinx, and figuring I'll go for something like this:
:word:`gloss()-SG-gloss(stem)` .. gloss:: Free translation. - `gloss(stem)` - `gloss(stem)-AFF` - etc
Where the :word: role has a parser to convert the given minilanguage into helpful Python objects that then get rendered in various ways, and the .. gloss:: directive performs further validation. Specifically, that either all of the roots are filled in, or none of them are.
With these ideas and simple dummy implementations, I should be able to get started writing up glosses under source control, in a format that doesn't involve overmuch tedious fiddling with control characters, or manually aligning things.
Anyway, I'm still feeling iffy (it might be the pollen) so I'm going to get to bed now.
Good night.