Simplify how tracking abbreviations works
This commit is contained in:
parent
c45e645b1a
commit
ffec36460d
@ -9,16 +9,7 @@
|
|||||||
"ACC": "accusative",
|
"ACC": "accusative",
|
||||||
)
|
)
|
||||||
|
|
||||||
#let used_abbreviations_table = (
|
#let used_abbreviations_table = (:)
|
||||||
"1": false,
|
|
||||||
"2": false,
|
|
||||||
"3": false,
|
|
||||||
"A": false,
|
|
||||||
"ABL": false,
|
|
||||||
"ABS": false,
|
|
||||||
"ACC": false,
|
|
||||||
)
|
|
||||||
|
|
||||||
#let used_abbreviations = state("used-abbreviations", used_abbreviations_table)
|
#let used_abbreviations = state("used-abbreviations", used_abbreviations_table)
|
||||||
|
|
||||||
#let print_usage_chart = {
|
#let print_usage_chart = {
|
||||||
@ -48,7 +39,7 @@
|
|||||||
|
|
||||||
#let mark_used(symbol) = {
|
#let mark_used(symbol) = {
|
||||||
used_abbreviations.update(cur => {
|
used_abbreviations.update(cur => {
|
||||||
cur.at(symbol) = true
|
cur.insert(symbol, true)
|
||||||
cur
|
cur
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user