typst-lepizig-glossing/abbreviations-used-example.typ

59 lines
1.4 KiB
Plaintext
Raw Normal View History

2023-10-04 01:48:11 -07:00
#import "abbreviations.typ": *
2023-07-11 01:40:00 -07:00
#let custom-abbreviations = (
2023-07-11 01:17:41 -07:00
"FMNT": "Present/Future stem formant",
)
2023-07-11 01:40:00 -07:00
#let fmnt = emit-abbreviation("FMNT")
2023-07-11 01:40:00 -07:00
// An example function that uses `with-used-abbreviations`
2023-10-04 01:48:11 -07:00
#let print_usage_chart = with-used-abbreviations(final-used-abbreviations => {
2023-07-11 01:17:41 -07:00
show terms: t => {
for t in t.children [
#t.term #h(2cm) #t.description\
]
}
2023-07-11 01:40:00 -07:00
let print-abbrevs(abbrv_list) = {
2023-07-11 01:17:41 -07:00
for abbrv in abbrv_list {
2023-07-11 01:40:00 -07:00
let explanation = if abbrv in standard-abbreviations {
standard-abbreviations.at(abbrv)
2023-07-11 01:17:41 -07:00
} else {
2023-07-11 01:40:00 -07:00
custom-abbreviations.at(abbrv)
2023-07-11 01:17:41 -07:00
}
terms((smallcaps(lower(abbrv)), explanation))
2023-07-11 01:17:41 -07:00
}
}
heading(level: 3)[Abbreviations in order of use]
2023-07-11 01:40:00 -07:00
print-abbrevs(final-used-abbreviations.keys())
2023-07-11 01:17:41 -07:00
heading(level: 3)[Abbreviations in alphabetical order]
2023-07-11 01:40:00 -07:00
let sorted-abbreviations = final-used-abbreviations.keys().sorted()
print-abbrevs(sorted-abbreviations)
2023-07-11 01:17:41 -07:00
})
2023-07-11 01:17:41 -07:00
= Some linguistics paper
2023-07-11 01:17:41 -07:00
== Abbreviations used in this document
#print_usage_chart
2023-07-11 01:17:41 -07:00
== The main body of the paper
2023-07-10 02:19:57 -07:00
2023-07-10 03:00:53 -07:00
2023-07-11 01:17:41 -07:00
The #p1#sg pronoun in Spanish is _yo_. The #p2#sg pronoun in Spanish is _tu_.
2023-07-11 01:17:41 -07:00
The six cases of Latin are:
- Nominative (#nom)
- Genitive (#gen)
- Dative (#dat)
- Accusative (#acc)
- Ablative (#abl)
- Vocative (#voc)
2023-07-11 01:17:41 -07:00
The Present/Future stem formant (#fmnt) in Georgian disappears in perfective screeves.