Compare commits

...
Author SHA1 Message Date
swaits 7117a1e60f chore(glossy): update minimum compiler version to 0.13.0 2025-02-19 15:48:45 -07:00
swaits 9be60483a5 Merge pull request #33 from eltos/patch-1
Draft: [Glossy] Typst 0.13 compatibility
2025-02-19 15:42:20 -07:00
Philipp Niedermayer 214a956f42 Fix warning by updating dependency
Block may not occur inside of a paragraph and was ignored
2025-02-17 20:16:11 +01:00
Philipp Niedermayer eebb2a9d7e Update Dependency 2025-02-17 20:14:19 +01:00
Philipp Niedermayer c179c25fe9 Fix deprecated type and string comparison
Type to string comparisons were already deprecated since 0.8 and are removed in 0.13.
2025-02-13 19:03:40 +01:00
Philipp Niedermayer d90cdc1894 Update README.md 2025-02-13 18:43:38 +01:00
Philipp Niedermayer f0961eeb8b Increment version 2025-02-13 18:42:40 +01:00
Philipp Niedermayer 7d40e146fb Update dependency 2025-02-13 18:35:44 +01:00
5 changed files with 9 additions and 8 deletions

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ different goals:
### Import the package
```typst
#import "@preview/glossy:0.6.0": *
#import "@preview/glossy:0.7.0": *
```
### Defining Glossary Terms
+3 -3
View File
@@ -1,4 +1,4 @@
#import "@preview/valkyrie:0.2.1" as z
#import "@preview/valkyrie:0.2.2" as z
#import "./schemas.typ": *
#import "./themes.typ": *
@@ -39,7 +39,7 @@
if not "short" in entry {
panic("Entry must contain a 'short' key")
}
if type(entry.short) != "string" {
if type(entry.short) != str {
panic("Entry 'short' must be a string")
}
if entry.short.trim() == "" {
@@ -347,7 +347,7 @@
// Apply format-term() to get the term
let formatted-term = format-term(mode, short-form, long-form)
if type(formatted-term) != "string" {
if type(formatted-term) != str {
// This is because we still need to capitalize the term, and we cannot do
// that with content, thus requiring a string here.
// TODO: consider if we want to capitalize *before* this. First intuition is
+1 -1
View File
@@ -1,4 +1,4 @@
#import "@preview/valkyrie:0.2.1" as z
#import "@preview/valkyrie:0.2.2" as z
#let dict-schema = z.either(
z.string(),
+1 -1
View File
@@ -1,5 +1,5 @@
#import "/lib.typ": *
#import "@preview/glossarium:0.5.1": *
#import "@preview/glossarium:0.5.3": *
#set page(height: auto, width: 4.5in)
#show link: set text(fill: red)
+3 -2
View File
@@ -1,6 +1,7 @@
[package]
name = "glossy"
version = "0.6.0"
version = "0.7.0"
compiler = "0.13.0"
entrypoint = "lib.typ"
authors = ["Stephen Waits <steve@waits.net>"]
license = "MIT"
@@ -8,4 +9,4 @@ description = "A very simple glossary system with easily customizable output."
categories = ["model"]
keywords = ["glossary", "index", "dictionary", "gloss"]
repository = "https://github.com/swaits/typst-collection"
exclude = ["thumbnail.png", "themeshots.pjng", "tests", "bin"]
exclude = ["thumbnail.png", "themeshots.png", "tests", "bin"]