Ensure ordering of used abbrevs is correct

This commit is contained in:
Greg Shuflin 2023-07-10 02:49:04 -07:00
parent 26e0bbdab6
commit fe6de041a5
2 changed files with 7 additions and 5 deletions

View File

@ -7,7 +7,7 @@
== The meat of the paper
The #p1 pronoun in English is "I".
The #p1#sg pronoun in English is "I".
The #p1 pronoun in Spanish is "yo"

View File

@ -92,16 +92,18 @@
#let print_usage_chart = {
locate(loc => {
let final_used_abbreviations = used_abbreviations.final(loc)
//TODO this is debugging get rid of soon
for (key, value) in final_used_abbreviations {
[#key was used: #value]
linebreak()
}
linebreak()
for (key, value) in final_used_abbreviations {
if value {
let desc = standard_abbreviations.at(key)
[#smallcaps(lower(key)) #h(2em) #desc]
//TODO requires standard_abbreviations to be sorted alphabetically, can this be enforced?
for (abbrv, explanation) in standard_abbreviations {
if abbrv in final_used_abbreviations {
[#smallcaps(lower(abbrv)) #h(2em) #explanation]
linebreak()
}
}