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

59 lines
1.4 KiB
Plaintext
Raw Normal View History

#import "linguistic-abbreviations.typ": *
2023-07-11 01:17:41 -07:00
#let custom_abbreviations = (
"FMNT": "Present/Future stem formant",
)
#let fmnt = emit_abbreviation("FMNT")
2023-07-11 01:17:41 -07:00
// An example function that uses `with_used_abbreviations`
#let print_usage_chart = with_used_abbreviations.with(debug: false)(final_used_abbreviations => {
show terms: t => {
for t in t.children [
#t.term #h(2cm) #t.description\
]
}
2023-07-11 01:17:41 -07:00
let print_abbrevs(abbrv_list) = {
for abbrv in abbrv_list {
let explanation = if abbrv in standard_abbreviations {
standard_abbreviations.at(abbrv)
} else {
custom_abbreviations.at(abbrv)
}
terms((smallcaps(lower(abbrv)), explanation))
2023-07-11 01:17:41 -07:00
}
}
heading(level: 3)[Abbreviations in order of use]
print_abbrevs(final_used_abbreviations.keys())
2023-07-11 01:17:41 -07:00
heading(level: 3)[Abbreviations in alphabetical order]
let sorted_abbreviations = final_used_abbreviations.keys().sorted()
print_abbrevs(sorted_abbreviations)
})
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.