Commit Graph
100 Commits
Author SHA1 Message Date
swaits a76b261348 chore(easy-typography): rm rogue pdf 2025-01-09 12:17:26 -07:00
swaits 093fcf88fd fix(easy-typography): incorporates changes from community
Incoroporates changes from [this
PR](https://github.com/typst/packages/pull/1527) and updates tests
accordingly.

Thank you to [neuralpain](https://github.com/neuralpain) and
[ssotoen](https://github.com/ssotoen) for the suggestions and code
fixes.
2025-01-09 12:06:06 -07:00
swaits 5ad6c10b65 feat(easy-typography): initial implementation 2025-01-07 22:52:47 -07:00
swaits df889d8d72 feat(glossy): add sort: true parameter to glossary() 2024-12-21 22:27:07 -07:00
swaits c008b5bd86 feat(glossy): release 0.5.1 2024-12-20 12:48:19 -07:00
swaits 842166c211 fix(glossy): use codepoints (not bytes!) in article code
Fixes [#18](https://github.com/swaits/typst-collection/issues/18)
2024-12-20 12:37:21 -07:00
swaits c37c6750c6 feat(glossy): release 0.5.0
New feature:

`init-glossary()` now accepts a `format-term()` function which gives the
user control over how the short-form and long-form of the terms are
assembled based on the needed mode ("short", "long", or "both").

Change:

Default theme changed to `theme-academic`, which is probably more
generally useful than the prior (`theme-twocol`).
2024-12-20 11:28:32 -07:00
swaits 03d82458bb feat(glossy): change default theme to theme-academic 2024-12-20 11:28:32 -07:00
swaits 725f657f49 feat(glossy): adds format-term customizability
Idea [from Discord
conversation](https://discord.com/channels/1054443721975922748/1318670789150642246/1319338465757757562).

Let's users more precisely control how short-form and long-form terms
are used based on the mode ("short", "long", or "both").

Defaults to `__default-format-term()` as below:

```typst
// Formats a term string based on the specified mode.
//
// Given mode, long-form, and short-form, this function returns the formatted
// term based on the mode. When mode is ...
//
// - "short" -> returns "short-form"
// - "long" -> returns "long-form"
// - "both" -> returns "short-form (long-form)"
//
// Parameters:
//   mode (string): The mode in which to format the term. Possible values are "short", "long", or "both".
//   short-form (string): The short form of the term.
//   long-form (string): The long form of the term.
//
// Returns:
//   string: The formatted term based on the specified mode.
//
#let __default-format-term(mode, short-form, long-form) = {
    if mode == "short" {
      short-form
    } else if mode == "long" {
      long-form
    } else {
      // mode assumed to be "both"
      long-form + " (" + short-form + ")"
    }
}
```
2024-12-20 11:28:32 -07:00
swaits cf139b66f6 chore(glossy): rm trailing whitespace 2024-12-20 11:28:31 -07:00
swaits 461439d2f9 chore: update .build.yml (missing cd into repo dir) 2024-12-19 10:54:12 -07:00
swaits 607814713a chore: update .build.yml (change $HOME for ~) 2024-12-19 10:52:13 -07:00
swaits 4d94a3f7f2 chore: update .build.yml (remove duplicate clone) 2024-12-19 10:48:11 -07:00
swaits bc011bfa6b chore: update .build.yml 2024-12-19 10:44:36 -07:00
swaits 1e1cb91163 feat(glossy): terms now link to glossary entries
- Merges [16](https://github.com/swaits/typst-collection/pull/16).
- Fixes [3](https://github.com/swaits/typst-collection/issues/3).

A big PR from [@eltos](https://github.com/eltos)!

This adds labels for each `key`, so that auto-complete (in the typst.app
/ `typst-ide`) works properly. It also makes it so terms can link to
their glossary entry. In the case that terms are used but no glossary is
shown (which is a core feature of Glossy), placeholder labels are used
so that the auto-complete still works.

All tests, but one (theme-gallery), passed straight from the PR. The
ddiff in the `theme-gallery` test were non-visible (ie a few pixels),
making it effectively passing too. Updated that test so it passes, and
updated the theme screenshot to match its output as well.

Huge thanks to [@eltos](https://github.com/eltos) who demonstrates a
deep understanding of Typst!
2024-12-19 09:36:49 -07:00
swaits 2286037bd6 chore(glossy): release version 0.4.0
## New features:

**Articles with `a`/`an` modifier**

Now you can include articles using this new modifier. The articles may
be defined in your dictionary entry (fields `artcile`, and
`longarticle`). But, if you don't define them, Glossy will do a
reasonably good job at guessing them.

This modifier is also allowed before the term. For example, you might
have this term:

```yaml
www: Worldwide Web
```

And you could display it with an article by any of these:

```typst
@a:www
@an:www
@www:a
@www:an
```

These, `a` and `an` are exactly equivalent. They're just provided for
your convenience. Use either or both.

The `a`/`an` modifier works with all modifiers except `pl` and
`def`/`desc`.

If you want to define custom articles for your terms, do so like this:

```typst
#let glossary = (
  rf: (
    short: "RF",
    article: "an",
    long: "radio frequency",
    longarticle: "a",
  )
  uts: (
    short: "UTS",
    article: "a",
    long: "untranslatable string",
    longarticle: "an",
  )
)
```

But again, in most cases (for English) you shouldn't need to because
Glossy should usually get it right.

Fixes [#12](https://github.com/swaits/typst-collection/issues/12).

## Other changes:

- added test which exhausts all reference options
- added panic if 'def'/'desc' used when no `description` field exists
- significantly improved the (English) pluralizer function
- `__gls()` function refactored, cleaned up
- removed a rogue PDF

## Contributors:

- [@eltos](https://github.com/eltos)
- [@theRealProHacker](https://github.com/theRealProHacker)
2024-12-18 10:15:20 -07:00
swaits a8e0ef7c02 test(glossy): add test to exhaust all reference options 2024-12-18 10:14:18 -07:00
swaits 3dce3d1734 feat(glossy): add support for articles through modifiers 2024-12-18 06:39:43 -07:00
swaits ba8fdda1bf feat(glossy): improve pluralize 2024-12-18 06:08:52 -07:00
swaits e14331cfc0 feat(glossy): add utility for determining indefinite articles in English 2024-12-18 06:08:51 -07:00
swaits b1aa11705c chore(glossy): cleanup rogue PDF 2024-12-18 06:08:51 -07:00
swaits 64fbdce1d2 fix(rfc-vibe): thumbnail update 2024-12-18 06:05:11 -07:00
swaits 62741c691c doc(README): typo fix 2024-12-17 21:42:51 -07:00
swaits f018aebc7b fix(rfc-vibe): typo - thank you theRealProHacker
Merge pull request #15 from theRealProHacker/patch-1

Typo in /tests/basic-output/test.typ
2024-12-17 12:46:36 -07:00
swaits 95b21505cb doc(glossy): cleanup some stale TODOs 2024-12-17 12:46:36 -07:00
swaits 5eee23a59e chore(glossy): bump version to 0.3.0 2024-12-16 18:30:53 -07:00
swaits 0a87404a18 feat(glossy): add type-checking
- adds type-checking via the valkyrie package
- fixes handling of groups parameter on #glossary()
- new test for relevant changes
2024-12-16 18:30:09 -07:00
swaits d2e44f4131 doc(glossy): update docs on concise syntax 2024-12-16 17:46:09 -07:00
swaits 7f1d1d711a test(glossy): add tests for concise syntax 2024-12-16 17:45:40 -07:00
swaits f4b7cc1374 chore: recreate sync.sh for new dir scheme 2024-12-11 00:24:46 +00:00
swaits 9645626ee5 chore: try (again) to make github mirroring include all branches 2024-12-10 22:46:36 +00:00
swaits 4fdd6e2ccd chore: try to make github mirroring include all branches 2024-12-10 22:41:52 +00:00
swaits 7c9ab5f046 chore: rm sync.sh, not applicable any more 2024-12-10 22:25:28 +00:00
swaits a2a9ad0eed doc(README): add swank-tex to the package directory 2024-12-10 22:23:41 +00:00
swaits 274e9bad2f chore: remove preview/ directory 2024-12-10 22:21:15 +00:00
swaits 78c5b8a000 chore: bring all branches back together 2024-12-10 22:19:46 +00:00
swaits 53c0206a03 feat(swank-tex): 0.1.0 2024-12-10 22:09:57 +00:00
swaits 3107573ef2 feat(rfc-vibe): 0.1.0 2024-12-10 22:09:15 +00:00
swaits 6ea69a0ddb feat(pro-letter): 0.1.1 2024-12-10 22:07:36 +00:00
swaits 6231fe43fb feat(pro-letter): 0.1.0 2024-12-10 21:59:22 +00:00
swaits 155568c435 feat(finely-crafted-cv): 0.1.0 2024-12-10 21:56:46 +00:00
swaits 248c520952 feat(codely-languages): 0.1.3 2024-12-10 21:54:54 +00:00
swaits adf2ea5021 feat(codely-languages): 0.1.2 2024-12-10 21:54:25 +00:00
swaits bae9716298 feat(codely-languages): 0.1.1 2024-12-10 21:54:04 +00:00
swaits 21a9a2aac8 feat(codely-languages): 0.1.0 2024-12-10 21:53:05 +00:00
swaits 86f16a7ac0 feat(glossy): 0.2.2 2024-12-10 20:45:18 +00:00
swaits bf97dcdbab feat(glossy): 0.2.1 2024-12-10 20:45:05 +00:00
swaits 0adcf0bdc0 feat(glossy): 0.2.0 2024-12-10 20:44:56 +00:00
swaits d30225f4e6 feat(glossy): 0.1.2 2024-12-10 20:44:44 +00:00
swaits 347d44b5da feat(glossy): 0.1.1 2024-12-10 20:44:16 +00:00
swaits 927c52d402 feat(glossy): 0.1.0 2024-12-10 20:37:43 +00:00
swaits d861d506b2 feat(glossy): theme-table courtesy of Fevol 2024-12-07 22:50:08 +00:00
swaits 6d596852ff fix(glossy): fixes page numbering thanks to Fevol
Bug fix thanks to [@Fevol](https://github.com/Fevol).

See PR: https://github.com/swaits/typst-collection/pull/9
2024-12-07 22:50:08 +00:00
swaits 68d1085719 style(glossy): minor cleanup in theme gallary test 2024-12-05 21:20:49 +01:00
swaits 73348abeaf feat(glossy): add new themes, update tests, README 2024-12-05 01:08:43 +01:00
swaits db46a5e025 fix(glossy): clean up themes, update tests, README 2024-12-05 01:08:43 +01:00
swaits 006bf65247 chore(glossy): move themes into individual files 2024-12-05 01:08:43 +01:00
swaits 12db300709 test(glossy): switch to typst-test, add tests
- move examples/readme.typ into a test (demo)
- add test for sorting (both ways)
- add test to generate theme gallery
- add theme gallery image to README
2024-12-05 01:08:43 +01:00
swaits f2052745e0 feat(glossy): add case-insensitive sorting 2024-12-04 22:53:32 +01:00
swaits 7f9a6856ba chore(glossy): cp 0.2.0 -> 0.2.1, update version 2024-12-04 21:04:52 +01:00
swaits 3edab60c37 chore(codly-languages): update to codly 1.1.0, including test updates 2024-12-03 14:22:59 +01:00
swaits 50ca01ccf6 chore(rfc-vibe): rm old examples (moved into tests) 2024-12-03 13:28:05 +01:00
swaits a8afc78db9 chore(rfc-vibe): fix version numbers! 2024-12-03 12:26:46 +01:00
swaits 52cd79fb2c chore(rfc-vibe): fold 0.1.1 back into 0.1.0 2024-12-03 12:19:46 +01:00
swaits 39d15ccdb5 feat(swank-tex): 0.1.0 2024-12-01 03:08:26 +01:00
swaits 5ffe887dec test(rfc-vibe): convert to typst-test tests 2024-11-30 21:32:44 +01:00
swaits 25d0f1a377 test(rfc-vibe): ignore typst-test intermediates 2024-11-30 21:19:29 +01:00
swaits b8cda9358f chore(rfc-vibe) cp 0.1.0 -> 0.1.1 2024-11-30 21:16:56 +01:00
swaits 25793820c5 test(codly-languages): add typst-test tests 2024-11-30 21:14:19 +01:00
swaits 25c0a86364 chore: update sync.sh with new path 2024-11-30 21:05:24 +01:00
swaits 8405802674 test: update ignore/exclude for typst-test 2024-11-30 16:39:38 +01:00
swaits e14ce6b3ad fix(codly-languages): exclude test.typ 2024-11-30 13:15:52 +01:00
swaits 0d84c91d6e test(codly-languages): change approach and add tests
- just make #codly-languages return the full dictionary instead of
  trying to add the aliases dynamically
- add test.typ
- ignore `**/test*.pdf`
2024-11-30 13:01:29 +01:00
swaits 8e1debccbe chore(codly-languages): bump version to 0.1.2 2024-11-30 12:59:56 +01:00
swaits 5328ebccce test(codly-languages): copy 0.1.1 to 0.1.2 2024-11-30 12:59:55 +01:00
swaits fda47a2f89 chore: add sync.sh for copying to main packages repo 2024-11-30 12:55:54 +01:00
swaits c62e43b4a5 docs(README): add details (list packages) to README 2024-11-28 10:47:33 -07:00
swaits c682424d7e fix: add preview as a namespace 2024-11-27 11:19:14 -07:00
swaits dcb271aa0e style(rfc-vibe): renamed from rfc-keywords 2024-11-27 11:18:15 -07:00
swaits 7275d17439 feat(rfc-keywords): 0.1.0 2024-11-26 17:14:08 -07:00
swaits 28ca1e98ee feat(glossy): 0.2.0
Breaking changes:

- change input to dictionary of dictionaries instead of array of dictionaries

New features:

- add @term:def/@term:desc to display description
- add two new themes, theme-basic and theme-compact

Chores, fixes:

- copy 0.1.2 over to 0.2.0
- bump versions to 0.2.0 in all code/docs
- make __pluralize handle 'none' input
- document and refactor code
- update README.md
- rename theme-2col -> theme-twocol
2024-11-26 17:14:08 -07:00
swaits 37b004a079 feat(codly-languages): 0.1.1, add missing aliases 2024-11-19 06:37:18 -08:00
swaits a3589ad1ac feat(codly-languages): add 0.1.0 of lang pack 2024-11-18 16:38:00 -08:00
swaits 1ac946558e chore: add sourcehut autobuild 2024-11-01 13:35:05 -06:00
swaits cc0fceaf2e feat(glossy): add 0.1.2 with ability to customize term output 2024-10-31 08:24:05 -06:00
swaits 0cf01366eb fix(glossy): glossy 0.1.1 2024-10-28 16:04:59 -06:00
swaits 9f4ab25528 refactor(glossy): shrink context{}, misc cleanup 2024-10-23 06:20:36 -06:00
swaits 54680f2ed3 feat(glossy): initial commit of glossy 2024-10-22 09:49:45 -06:00
swaits 694b098579 fix(finely-crafted-cv): update font for typst 0.12 2024-10-22 06:30:51 -06:00
swaits b5fe1c69f1 fix(pro-letter): update fixes for 0.12 (default font now Libertinus Serif) 2024-10-22 06:27:11 -06:00
swaits bc3fc8712c fix: switch to skewer case (fixes warnings) 2024-10-18 16:51:06 -06:00
swaits 859c12d46f fix: remove sneaky PDF 2024-10-18 16:44:04 -06:00
swaits 85174a0855 fix: can't have any content (including state) before set/show rules 2024-10-18 16:43:37 -06:00
swaits 5b32cfb26b doc: add README.md and LICENSE 2024-10-18 16:14:20 -06:00
swaits 94533daa4a fix: add repository link 2024-10-18 16:13:05 -06:00
swaits 2c8112bec6 (actually) add 0.1.0 of finely-crafted-cv template 2024-10-18 16:12:11 -06:00
swaits c934b8c927 chore: git cleanup 2024-10-18 16:11:27 -06:00
swaits e9cffc43e0 Merge branch 'main' of github.com:swaits/typst-collection
* 'main' of github.com:swaits/typst-collection:
  initial version of finely-crafted-cv template
2024-10-18 16:10:08 -06:00
swaits 3b815e2fda add 0.1.0 of finely-crafted-cv template 2024-10-18 16:09:27 -06:00
swaits febf19eae3 initial version of finely-crafted-cv template 2024-10-18 16:08:23 -06:00