I wrote a quick Python script to help construct all of the examples in my Quatrasphere post. After cleaning it up a bit, I posted it to Github in case anyone would ever need to play with some Hymmnos. The rest of the text processing in my post was done with Vim macros, which I won't bother posting since the macros were done rather haphazardly.
Note that the tool itself is a little overkill, as clever use of UNIX standard utilities can do the same thing (for example, join), but digging through manpages is no fun.