Files
typst-collection/glossy/tests/group-specified/test.typ
T
swaits 38d33d3c8a 🚨 LOCKDOWN: Repository migration in progress
DO NOT CREATE NEW ISSUES OR PULL REQUESTS HERE

All packages are moving to: https://github.com/swaits-typst-packages
Existing issues and PRs are being migrated.

This is a temporary lockdown while migration is completed.
2025-10-26 21:22:33 -06:00

34 lines
1.0 KiB
Typst

#import "/lib.typ": *
#show: init-glossary.with(json("abbreviations.json"))
Reference: @pbr, @zbuffer
#let t(g) = [
#line(length: 100%)
*TESTING:* `#glossary(groups: ` #repr(g) `)`
#glossary(groups: g)
]
#t("abbreviations") // "string" : str
#t("abbreviations") // ("string") : str
#t(("abbreviations",)) // ("string",) : array(str)
#t(("abbreviations", "abbreviations")) // ("string","string",) : array(str)
#pagebreak(weak: true)
#t("") // empty string should be the empty group
#t("") // empty string should be the empty group
#t(("",)) // empty string should be the empty group
#t(("", "")) // empty string should be the empty group
#pagebreak(weak: true)
#t(none) // none should be all groups
#t(none) // none should be all groups
#pagebreak(weak: true)
#t(("abbreviations", none)) // try to get both groups