leipzig-glossing
is a Typst library for
creating interlinear morpheme-by-morpheme glosses according to the Leipzig
glossing rules.
The canonical repository for this project is on the Gitea instance. The repository is also mirrored on Github. Bug reports and code contributions are welcome from all users.
Run typst compile leipzig-gloss-examples.typ
in the root of the repository to
generate a pdf file with examples and documentation. This command is also
codified in the accompanying justfile as just build-example
.
The definitions intended for use by end users are the #gloss
and
#numbered_gloss
functions.
Example
An example gloss entry:
#import "@preview/leipzig-glossing:0.1.0: gloss"
#gloss(
header_text: [Hittite (Lehmann 1982:211)],
source_text: ([n=an], [apedani], [mehuni],[essandu.]),
morphemes: ([#smallcaps[conn]=him], [that.#dat.#sg], [time.#dat.#sg], [eat.they.shall]),
translation: "They shall celebrate him on that date",
)
This library uses the MIT license; see LICENSE.txt
.