From ffec36460dd856944e5a93e3a4a74a66eaf25811 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Mon, 10 Jul 2023 02:23:15 -0700 Subject: [PATCH] Simplify how tracking abbreviations works --- linguistic-abbreviations.typ | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/linguistic-abbreviations.typ b/linguistic-abbreviations.typ index 0c0a9ef..4735579 100644 --- a/linguistic-abbreviations.typ +++ b/linguistic-abbreviations.typ @@ -9,16 +9,7 @@ "ACC": "accusative", ) -#let used_abbreviations_table = ( - "1": false, - "2": false, - "3": false, - "A": false, - "ABL": false, - "ABS": false, - "ACC": false, -) - +#let used_abbreviations_table = (:) #let used_abbreviations = state("used-abbreviations", used_abbreviations_table) #let print_usage_chart = { @@ -48,7 +39,7 @@ #let mark_used(symbol) = { used_abbreviations.update(cur => { - cur.at(symbol) = true + cur.insert(symbol, true) cur }) }