by mcswell · 2y ago · 0 comments
This is extremely painful--nearly impossible--to do in Word. There are LaTeX macro packages that do it quite well.
(When the foreign language is broken down into morphemes in its script and there is a gloss line, you end up with a triple of aligned lines, instead of just a pair. And when the foreign language is written right-to-left, other issues come up. But they can be addressed in the LaTeX macro packages.)
Not quite relevant, but we actually composed our grammars in a variant of DocBook XML, then converted them automagically to XeLaTeX for typesetting. Andy Black has a similar toolset that starts with his own document-oriented XML and converts this to XeLaTeX. I stole (with his permission) the code to convert XML interlinear into a LaTeX interlinear format.