Compare commits

...
Author SHA1 Message Date
swaits d296f3a3f1 chore(tasteful-pairings): updated description from @neuralpain
Integrates change in [this
PR](https://github.com/typst/packages/pull/1526) from
[neuralpain](https://github.com/neuralpain).
2025-01-09 13:05:37 -07:00
swaits 338fee564f fix(tasteful-pairings): update Adobe open-source fonts to latest versions 2025-01-09 13:00:08 -07:00
swaits 1e095a8b26 feat(tasteful-pairings): initial version 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
Philipp Niedermayer 255bda30d4 Typo 2024-12-18 20:21:27 +00:00
Philipp Niedermayer 2b6debb7d1 Make terms clickable links to glossary list 2024-12-18 20:07:01 +00:00
Philipp Niedermayer 80eeb9240c Fix intendation 2024-12-18 20:07:01 +00:00
Philipp Niedermayer 76fb6b9ea7 Simplifies term usage tracking
- Uniqfies the duplicate term usage tracking via counter + state to just using the counter. Refreactor the code with the two methods "mark_term_used" and "is_term_used".
2024-12-18 20:06:53 +00:00
Philipp Niedermayer 16ceebdc70 Simply label usage
- Adds a label with the entry key for autocompletion
  - either in the glossary (if it is visible and there is a corresponding entry)
  - or invisible during init-glossary
- Use a single label for all usages of the entry in the text. This simplifies the back-referencing logic significantly and also avoids cluttering the auto-complete list

closes https://github.com/swaits/typst-collection/issues/3
2024-12-18 20:06:53 +00: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
theRealProHacker bc06eeaaf9 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
Philipp Niedermayer 91de1816e9 Allow concise entry definition
closes #13
2024-12-15 19:32:27 +00: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 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
270 changed files with 2845 additions and 5566 deletions

No files matched your search

+21 -5
View File
@@ -1,11 +1,27 @@
image: alpine/edge image: alpine/edge
packages:
- git
secrets: secrets:
- 88cce185-d2ec-4573-9546-e33f36f79bbf - 88cce185-d2ec-4573-9546-e33f36f79bbf
sources:
- git+ssh://git@git.sr.ht/~swaits/typst-collection environment:
# repo and user names on both sr.ht and github
REPO: typst-collection
USER: swaits
tasks: tasks:
- fetch-all-branches: |
cd "$HOME/$REPO"
git fetch origin '+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*' --prune
- get-github-public-key: |
ssh-keyscan -t rsa github.com >> "$HOME/.ssh/known_hosts"
- add-github-remote: |
cd "$HOME/$REPO"
git remote add github "git@github.com:$USER/$REPO.git"
- mirror-to-github: | - mirror-to-github: |
cd ~/typst-collection cd "$HOME/$REPO"
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
git remote add github git@github.com:swaits/typst-collection.git
git push --mirror github git push --mirror github
+6 -1
View File
@@ -2,7 +2,7 @@
A collection of `typst` templates and packages by [swaits](https://swaits.com/about). A collection of `typst` templates and packages by [swaits](https://swaits.com/about).
Everything in this collections is available for use at the [`typst` Everything in this collection is available for use at the [`typst`
universe](https://typst.app/universe/). For details on each, please visit the universe](https://typst.app/universe/). For details on each, please visit the
links below to their main page. links below to their main page.
@@ -15,6 +15,11 @@ links below to their main page.
glossary system with easily customizable output. glossary system with easily customizable output.
- [**rfc-vibe**](https://typst.app/universe/package/rfc-vibe): Bring RFC language - [**rfc-vibe**](https://typst.app/universe/package/rfc-vibe): Bring RFC language
into everyday docs. into everyday docs.
- [**swank-tex**](https://typst.app/universe/package/swank-tex): Render those
funky logos for TeX, LaTeX, and friends.
- [**tasteful-pairings**](https://typst.app/universe/package/tasteful-pairings):
A carefully curated collection of font pairings focusing on readability and
typographic harmony.
## Templates ## Templates
File renamed without changes.
File renamed without changes.
@@ -10,10 +10,10 @@ Pretty simple. Import `codly`. Initialize it. Import `codly-languages`.
Configure `codly` with the languages. Like this: Configure `codly` with the languages. Like this:
```typst ```typst
#import "@preview/codly:1.0.0": * #import "@preview/codly:1.1.0": *
#show: codly-init #show: codly-init
#import "@preview/codly-languages:0.1.1": * #import "@preview/codly-languages:0.1.3": *
#codly(languages: codly-languages) #codly(languages: codly-languages)
``` ```
File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 995 B

After

Width:  |  Height:  |  Size: 995 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 657 B

After

Width:  |  Height:  |  Size: 657 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 464 B

After

Width:  |  Height:  |  Size: 464 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 851 B

After

Width:  |  Height:  |  Size: 851 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 778 B

After

Width:  |  Height:  |  Size: 778 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 710 B

After

Width:  |  Height:  |  Size: 710 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 519 B

After

Width:  |  Height:  |  Size: 519 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 401 B

After

Width:  |  Height:  |  Size: 401 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 973 B

After

Width:  |  Height:  |  Size: 973 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 778 B

After

Width:  |  Height:  |  Size: 778 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 345 B

After

Width:  |  Height:  |  Size: 345 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 635 B

After

Width:  |  Height:  |  Size: 635 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 607 B

After

Width:  |  Height:  |  Size: 607 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 502 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 895 B

After

Width:  |  Height:  |  Size: 895 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 934 B

After

Width:  |  Height:  |  Size: 934 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 608 B

After

Width:  |  Height:  |  Size: 608 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 491 B

After

Width:  |  Height:  |  Size: 491 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 376 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 716 B

After

Width:  |  Height:  |  Size: 716 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 943 B

After

Width:  |  Height:  |  Size: 943 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 482 B

After

Width:  |  Height:  |  Size: 482 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 525 B

After

Width:  |  Height:  |  Size: 525 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 810 B

After

Width:  |  Height:  |  Size: 810 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 902 B

After

Width:  |  Height:  |  Size: 902 B

@@ -4,7 +4,7 @@
// To use: // To use:
// //
// ```typst // ```typst
// #import "@preview/codly:1.0.0": * // #import "@preview/codly:1.1.0": *
// #show: codly-init // #show: codly-init
// //
// #import "codly-languages.typ": * // #import "codly-languages.typ": *
@@ -22,8 +22,9 @@
} }
// configurations for languages // configurations for languages
let base-languages = ( (
aarch64: (name: "Assembly (ARM)", color: rgb("#1b3888"), icon: __icon("aarch64.svg")), aarch64: (name: "Assembly (ARM)", color: rgb("#1b3888"), icon: __icon("aarch64.svg")),
arm: (name: "Assembly (ARM)", color: rgb("#1b3888"), icon: __icon("aarch64.svg")),
angular: (name: "Angular", color: rgb("#dd0031"), icon: __icon("angular.svg")), angular: (name: "Angular", color: rgb("#dd0031"), icon: __icon("angular.svg")),
ansible: (name: "Ansible", color: rgb("#1a1918"), icon: __icon("ansible.svg")), ansible: (name: "Ansible", color: rgb("#1a1918"), icon: __icon("ansible.svg")),
apache: (name: "Apache", color: rgb("#b7342a"), icon: __icon("apache.svg")), apache: (name: "Apache", color: rgb("#b7342a"), icon: __icon("apache.svg")),
@@ -32,35 +33,51 @@
c: (name: "C", color: rgb("#659ad3"), icon: __icon("c.svg")), c: (name: "C", color: rgb("#659ad3"), icon: __icon("c.svg")),
cairo: (name: "Cairo", color: rgb("#f39914"), icon: __icon("cairo.svg")), cairo: (name: "Cairo", color: rgb("#f39914"), icon: __icon("cairo.svg")),
clojure: (name: "Clojure", color: rgb("#ffffff"), icon: __icon("clojure.svg")), clojure: (name: "Clojure", color: rgb("#ffffff"), icon: __icon("clojure.svg")),
clj: (name: "Clojure", color: rgb("#ffffff"), icon: __icon("clojure.svg")),
clojurescript: (name: "ClojureScript", color: rgb("#96ca4b"), icon: __icon("clojurescript.svg")), clojurescript: (name: "ClojureScript", color: rgb("#96ca4b"), icon: __icon("clojurescript.svg")),
cljs: (name: "ClojureScript", color: rgb("#96ca4b"), icon: __icon("clojurescript.svg")),
cmake: (name: "CMake", color: rgb("#064f8c"), icon: __icon("cmake.svg")), cmake: (name: "CMake", color: rgb("#064f8c"), icon: __icon("cmake.svg")),
coffeescript: (name: "CoffeeScript", color: rgb("#28334c"), icon: __icon("coffeescript.svg")), coffeescript: (name: "CoffeeScript", color: rgb("#28334c"), icon: __icon("coffeescript.svg")),
coffee: (name: "CoffeeScript", color: rgb("#28334c"), icon: __icon("coffeescript.svg")),
cplusplus: (name: "C++", color: rgb("#00599c"), icon: __icon("cplusplus.svg")), cplusplus: (name: "C++", color: rgb("#00599c"), icon: __icon("cplusplus.svg")),
cpp: (name: "C++", color: rgb("#00599c"), icon: __icon("cplusplus.svg")),
cxx: (name: "C++", color: rgb("#00599c"), icon: __icon("cplusplus.svg")),
crystal: (name: "Crystal", color: rgb("#000000"), icon: __icon("crystal.svg")), crystal: (name: "Crystal", color: rgb("#000000"), icon: __icon("crystal.svg")),
csharp: (name: "C#", color: rgb("#9b4f96"), icon: __icon("csharp.svg")), csharp: (name: "C#", color: rgb("#9b4f96"), icon: __icon("csharp.svg")),
cs: (name: "C#", color: rgb("#9b4f96"), icon: __icon("csharp.svg")),
css: (name: "CSS", color: rgb("#1572b6"), icon: __icon("css3.svg")), css: (name: "CSS", color: rgb("#1572b6"), icon: __icon("css3.svg")),
dart: (name: "Dart", color: rgb("#00c4b3"), icon: __icon("dart.svg")), dart: (name: "Dart", color: rgb("#00c4b3"), icon: __icon("dart.svg")),
docker: (name: "Docker", color: rgb("#3a4d54"), icon: __icon("docker.svg")), docker: (name: "Docker", color: rgb("#3a4d54"), icon: __icon("docker.svg")),
dockerfile: (name: "Docker", color: rgb("#3a4d54"), icon: __icon("docker.svg")),
elixir: (name: "Elixir", color: rgb("#685574"), icon: __icon("elixir.svg")), elixir: (name: "Elixir", color: rgb("#685574"), icon: __icon("elixir.svg")),
ex: (name: "Elixir", color: rgb("#685574"), icon: __icon("elixir.svg")),
elm: (name: "Elm", color: rgb("#efa500"), icon: __icon("elm.svg")), elm: (name: "Elm", color: rgb("#efa500"), icon: __icon("elm.svg")),
emacs: (name: "Emacs", color: rgb("#421f5f"), icon: __icon("emacs.svg")), emacs: (name: "Emacs", color: rgb("#421f5f"), icon: __icon("emacs.svg")),
erlang: (name: "Erlang", color: rgb("#a90533"), icon: __icon("erlang.svg")), erlang: (name: "Erlang", color: rgb("#a90533"), icon: __icon("erlang.svg")),
erl: (name: "Erlang", color: rgb("#a90533"), icon: __icon("erlang.svg")),
fortran: (name: "Fortran", color: rgb("#734c94"), icon: __icon("fortran.svg")), fortran: (name: "Fortran", color: rgb("#734c94"), icon: __icon("fortran.svg")),
fsharp: (name: "F#", color: rgb("#378bba"), icon: __icon("fsharp.svg")), fsharp: (name: "F#", color: rgb("#378bba"), icon: __icon("fsharp.svg")),
fs: (name: "F#", color: rgb("#378bba"), icon: __icon("fsharp.svg")),
git: (name: "Git", color: rgb("#f34f29"), icon: __icon("git.svg")), git: (name: "Git", color: rgb("#f34f29"), icon: __icon("git.svg")),
go: (name: "Go", color: rgb("#f6d2a2"), icon: __icon("go.svg")), go: (name: "Go", color: rgb("#f6d2a2"), icon: __icon("go.svg")),
golang: (name: "Go", color: rgb("#f6d2a2"), icon: __icon("go.svg")),
graphql: (name: "GraphQL", color: rgb("#e434aa"), icon: __icon("graphql.svg")), graphql: (name: "GraphQL", color: rgb("#e434aa"), icon: __icon("graphql.svg")),
groovy: (name: "Groovy", color: rgb("#619cbc"), icon: __icon("groovy.svg")), groovy: (name: "Groovy", color: rgb("#619cbc"), icon: __icon("groovy.svg")),
grpc: (name: "gRPC", color: rgb("#3d5a60"), icon: __icon("grpc.svg")), grpc: (name: "gRPC", color: rgb("#3d5a60"), icon: __icon("grpc.svg")),
handlebars: (name: "Handlebars", color: rgb("#000000"), icon: __icon("handlebars.svg")), handlebars: (name: "Handlebars", color: rgb("#000000"), icon: __icon("handlebars.svg")),
haskell: (name: "Haskell", color: rgb("#463b63"), icon: __icon("haskell.svg")), haskell: (name: "Haskell", color: rgb("#463b63"), icon: __icon("haskell.svg")),
hs: (name: "Haskell", color: rgb("#463b63"), icon: __icon("haskell.svg")),
haxe: (name: "Haxe", color: rgb("#f6b214"), icon: __icon("haxe.svg")), haxe: (name: "Haxe", color: rgb("#f6b214"), icon: __icon("haxe.svg")),
html: (name: "HTML", color: rgb("#e44d26"), icon: __icon("html5.svg")), html: (name: "HTML", color: rgb("#e44d26"), icon: __icon("html5.svg")),
html5: (name: "HTML", color: rgb("#e44d26"), icon: __icon("html5.svg")),
java: (name: "Java", color: rgb("#0074bd"), icon: __icon("java.svg")), java: (name: "Java", color: rgb("#0074bd"), icon: __icon("java.svg")),
javascript: (name: "JavaScript", color: rgb("#f0db4f"), icon: __icon("javascript.svg")), javascript: (name: "JavaScript", color: rgb("#f0db4f"), icon: __icon("javascript.svg")),
js: (name: "JavaScript", color: rgb("#f0db4f"), icon: __icon("javascript.svg")),
json: (name: "JSON", color: rgb("#6d6d6d"), icon: __icon("json.svg")), json: (name: "JSON", color: rgb("#6d6d6d"), icon: __icon("json.svg")),
julia: (name: "Julia", color: rgb("#cb3c33"), icon: __icon("julia.svg")), julia: (name: "Julia", color: rgb("#cb3c33"), icon: __icon("julia.svg")),
jl: (name: "Julia", color: rgb("#cb3c33"), icon: __icon("julia.svg")),
kotlin: (name: "Kotlin", color: rgb("#5e3cc2"), icon: __icon("kotlin.svg")), kotlin: (name: "Kotlin", color: rgb("#5e3cc2"), icon: __icon("kotlin.svg")),
kt: (name: "Kotlin", color: rgb("#5e3cc2"), icon: __icon("kotlin.svg")),
latex: (name: "LaTeX", color: rgb("#000000"), icon: __icon("latex.svg")), latex: (name: "LaTeX", color: rgb("#000000"), icon: __icon("latex.svg")),
less: (name: "Less", color: rgb("#2a4d80"), icon: __icon("less.svg")), less: (name: "Less", color: rgb("#2a4d80"), icon: __icon("less.svg")),
lua: (name: "Lua", color: rgb("#000080"), icon: __icon("lua.svg")), lua: (name: "Lua", color: rgb("#000080"), icon: __icon("lua.svg")),
@@ -68,94 +85,73 @@
matlab: (name: "Matlab", color: rgb("#4499dd"), icon: __icon("matlab.svg")), matlab: (name: "Matlab", color: rgb("#4499dd"), icon: __icon("matlab.svg")),
mysql: (name: "MySQL", color: rgb("#00618a"), icon: __icon("mysql.svg")), mysql: (name: "MySQL", color: rgb("#00618a"), icon: __icon("mysql.svg")),
neovim: (name: "Neovim", color: rgb("#517d37"), icon: __icon("neovim.svg")), neovim: (name: "Neovim", color: rgb("#517d37"), icon: __icon("neovim.svg")),
nvim: (name: "Neovim", color: rgb("#517d37"), icon: __icon("neovim.svg")),
nginx: (name: "Nginx", color: rgb("#009900"), icon: __icon("nginx.svg")), nginx: (name: "Nginx", color: rgb("#009900"), icon: __icon("nginx.svg")),
nim: (name: "Nim", color: rgb("#f3d400"), icon: __icon("nim.svg")), nim: (name: "Nim", color: rgb("#f3d400"), icon: __icon("nim.svg")),
nix: (name: "Nix", color: rgb("#7ebae4"), icon: __icon("nixos.svg")), nix: (name: "Nix", color: rgb("#7ebae4"), icon: __icon("nixos.svg")),
nixos: (name: "Nix", color: rgb("#7ebae4"), icon: __icon("nixos.svg")),
objectivec: (name: "Objective-C", color: rgb("#0b5a9d"), icon: __icon("objectivec.svg")), objectivec: (name: "Objective-C", color: rgb("#0b5a9d"), icon: __icon("objectivec.svg")),
objc: (name: "Objective-C", color: rgb("#0b5a9d"), icon: __icon("objectivec.svg")),
obj-c: (name: "Objective-C", color: rgb("#0b5a9d"), icon: __icon("objectivec.svg")),
ocaml: (name: "OCaml", color: rgb("#484444"), icon: __icon("ocaml.svg")), ocaml: (name: "OCaml", color: rgb("#484444"), icon: __icon("ocaml.svg")),
ml: (name: "OCaml", color: rgb("#484444"), icon: __icon("ocaml.svg")),
perl: (name: "Perl", color: rgb("#ffffff"), icon: __icon("perl.svg")), perl: (name: "Perl", color: rgb("#ffffff"), icon: __icon("perl.svg")),
pl: (name: "Perl", color: rgb("#ffffff"), icon: __icon("perl.svg")),
php: (name: "PHP", color: rgb("#5c5e8d"), icon: __icon("php.svg")), php: (name: "PHP", color: rgb("#5c5e8d"), icon: __icon("php.svg")),
postgresql: (name: "PostgreSQL", color: rgb("#336791"), icon: __icon("postgresql.svg")), postgresql: (name: "PostgreSQL", color: rgb("#336791"), icon: __icon("postgresql.svg")),
powershell: (name: "PowerShell", color: rgb("#1f2939"), icon: __icon("powershell.svg")), powershell: (name: "PowerShell", color: rgb("#1f2939"), icon: __icon("powershell.svg")),
ps1: (name: "PowerShell", color: rgb("#1f2939"), icon: __icon("powershell.svg")),
processing: (name: "Processing", color: rgb("#6e8375"), icon: __icon("processing.svg")), processing: (name: "Processing", color: rgb("#6e8375"), icon: __icon("processing.svg")),
prolog: (name: "Prolog", color: rgb("#d6552d"), icon: __icon("prolog.svg")), prolog: (name: "Prolog", color: rgb("#d6552d"), icon: __icon("prolog.svg")),
purescript: (name: "PureScript", color: rgb("#111419"), icon: __icon("purescript.svg")), purescript: (name: "PureScript", color: rgb("#111419"), icon: __icon("purescript.svg")),
python: (name: "Python", color: rgb("#efda54"), icon: __icon("python.svg")), python: (name: "Python", color: rgb("#efda54"), icon: __icon("python.svg")),
py: (name: "Python", color: rgb("#efda54"), icon: __icon("python.svg")),
r: (name: "R", color: rgb("#284a8e"), icon: __icon("r.svg")), r: (name: "R", color: rgb("#284a8e"), icon: __icon("r.svg")),
rails: (name: "Rails", color: rgb("#cc0000"), icon: __icon("rails.svg")), rails: (name: "Rails", color: rgb("#cc0000"), icon: __icon("rails.svg")),
ruby: (name: "Ruby", color: rgb("#742013"), icon: __icon("ruby.svg")), ruby: (name: "Ruby", color: rgb("#742013"), icon: __icon("ruby.svg")),
rb: (name: "Ruby", color: rgb("#742013"), icon: __icon("ruby.svg")),
rust: (name: "Rust", color: rgb("#de5420"), icon: __icon("rust.svg")), rust: (name: "Rust", color: rgb("#de5420"), icon: __icon("rust.svg")),
rs: (name: "Rust", color: rgb("#de5420"), icon: __icon("rust.svg")),
sass: (name: "SCSS/Sass", color: rgb("#cb6699"), icon: __icon("sass.svg")), sass: (name: "SCSS/Sass", color: rgb("#cb6699"), icon: __icon("sass.svg")),
scss: (name: "SCSS/Sass", color: rgb("#cb6699"), icon: __icon("sass.svg")),
scala: (name: "Scala", color: rgb("#390d09"), icon: __icon("scala.svg")), scala: (name: "Scala", color: rgb("#390d09"), icon: __icon("scala.svg")),
sc: (name: "Scala", color: rgb("#390d09"), icon: __icon("scala.svg")),
shellscript: (name: "Shell", color: rgb("#293138"), icon: __icon("bash.svg")), shellscript: (name: "Shell", color: rgb("#293138"), icon: __icon("bash.svg")),
bash: (name: "Shell", color: rgb("#293138"), icon: __icon("bash.svg")),
sh: (name: "Shell", color: rgb("#293138"), icon: __icon("bash.svg")),
shell: (name: "Shell", color: rgb("#293138"), icon: __icon("bash.svg")),
solidity: (name: "Solidity", color: rgb("#000000"), icon: __icon("solidity.svg")), solidity: (name: "Solidity", color: rgb("#000000"), icon: __icon("solidity.svg")),
sol: (name: "Solidity", color: rgb("#000000"), icon: __icon("solidity.svg")),
sql: (name: "SQL", color: rgb("#f2f2f2"), icon: __icon("sql.svg")), sql: (name: "SQL", color: rgb("#f2f2f2"), icon: __icon("sql.svg")),
sqlite: (name: "SQLite", color: rgb("#0b7fcc"), icon: __icon("sqlite.svg")), sqlite: (name: "SQLite", color: rgb("#0b7fcc"), icon: __icon("sqlite.svg")),
ssh-config: (name: "SSH", color: rgb("#231f20"), icon: __icon("ssh.svg")), ssh-config: (name: "SSH", color: rgb("#231f20"), icon: __icon("ssh.svg")),
ssh: (name: "SSH", color: rgb("#231f20"), icon: __icon("ssh.svg")),
stylus: (name: "Stylus", color: rgb("#333333"), icon: __icon("stylus.svg")), stylus: (name: "Stylus", color: rgb("#333333"), icon: __icon("stylus.svg")),
styl: (name: "Stylus", color: rgb("#333333"), icon: __icon("stylus.svg")),
svelte: (name: "Svelte", color: rgb("#ff3e00"), icon: __icon("svelte.svg")), svelte: (name: "Svelte", color: rgb("#ff3e00"), icon: __icon("svelte.svg")),
swift: (name: "Swift", color: rgb("#f05138"), icon: __icon("swift.svg")), swift: (name: "Swift", color: rgb("#f05138"), icon: __icon("swift.svg")),
terraform: (name: "Terraform", color: rgb("#5c4ee5"), icon: __icon("terraform.svg")), terraform: (name: "Terraform", color: rgb("#5c4ee5"), icon: __icon("terraform.svg")),
tf: (name: "Terraform", color: rgb("#5c4ee5"), icon: __icon("terraform.svg")),
tex: (name: "TeX", color: rgb("#000000"), icon: __icon("tex.svg")), tex: (name: "TeX", color: rgb("#000000"), icon: __icon("tex.svg")),
text: (name: "Text", color: rgb("#4579F9"), icon: __icon("text.svg")), text: (name: "Text", color: rgb("#4579F9"), icon: __icon("text.svg")),
txt: (name: "Text", color: rgb("#4579F9"), icon: __icon("text.svg")),
typescript: (name: "TypeScript", color: rgb("#ffffff"), icon: __icon("typescript.svg")), typescript: (name: "TypeScript", color: rgb("#ffffff"), icon: __icon("typescript.svg")),
ts: (name: "TypeScript", color: rgb("#ffffff"), icon: __icon("typescript.svg")),
typst: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst-small.png")), typst: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst-small.png")),
typ: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst-small.png")),
typc: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst-small.png")),
typm: (name: "Typst", color: rgb("#458fa0"), icon: __icon("typst-small.png")),
uml: (name: "UML", color: rgb("#fbbd16"), icon: __icon("unifiedmodelinglanguage.svg")), uml: (name: "UML", color: rgb("#fbbd16"), icon: __icon("unifiedmodelinglanguage.svg")),
vala: (name: "Vala", color: rgb("#6034a5"), icon: __icon("vala.svg")), vala: (name: "Vala", color: rgb("#6034a5"), icon: __icon("vala.svg")),
vim: (name: "Vim", color: rgb("#019833"), icon: __icon("vim.svg")), vim: (name: "Vim", color: rgb("#019833"), icon: __icon("vim.svg")),
vimscript: (name: "Vim", color: rgb("#019833"), icon: __icon("vim.svg")),
visualbasic: (name: "Visual Basic", color: rgb("#004e8c"), icon: __icon("visualbasic.svg")), visualbasic: (name: "Visual Basic", color: rgb("#004e8c"), icon: __icon("visualbasic.svg")),
vb: (name: "Visual Basic", color: rgb("#004e8c"), icon: __icon("visualbasic.svg")),
vyper: (name: "Vyper", color: rgb("#000000"), icon: __icon("vyper.svg")), vyper: (name: "Vyper", color: rgb("#000000"), icon: __icon("vyper.svg")),
wasm: (name: "WASM", color: rgb("#654ff0"), icon: __icon("wasm.svg")), wasm: (name: "WASM", color: rgb("#654ff0"), icon: __icon("wasm.svg")),
xml: (name: "XML", color: rgb("#ae007f"), icon: __icon("xml.svg")), xml: (name: "XML", color: rgb("#ae007f"), icon: __icon("xml.svg")),
yaml: (name: "YAML", color: rgb("#cb171e"), icon: __icon("yaml.svg")), yaml: (name: "YAML", color: rgb("#cb171e"), icon: __icon("yaml.svg")),
yml: (name: "YAML", color: rgb("#cb171e"), icon: __icon("yaml.svg")),
zig: (name: "Zig", color: rgb("#f7a41d"), icon: __icon("zig.svg")), zig: (name: "Zig", color: rgb("#f7a41d"), icon: __icon("zig.svg")),
) )
// add aliases for our languages (e.g. so both "```typ" and "```typst" work)
let aliases = (
aarch64: ("arm"),
clojure: ("clj"),
clojurescript: ("cljs"),
coffeescript: ("coffee"),
cplusplus: ("cpp", "cxx", "c++"),
csharp: ("cs", "c#"),
docker: ("dockerfile"),
elixir: ("ex"),
erlang: ("erl"),
fsharp: ("fs", "f#"),
go: ("golang"),
haskell: ("hs"),
javascript: ("js"),
julia: ("jl"),
kotlin: ("kt"),
neovim: ("nvim"),
objectivec: ("objc", "obj-c"),
ocaml: ("ml"),
perl: ("pl"),
powershell: ("ps1"),
python: ("py"),
ruby: ("rb"),
rust: ("rs"),
sass: ("scss"),
scala: ("sc"),
shellscript: ("bash", "shell", "sh"),
solidity: ("sol"),
ssh-config: ("ssh"),
stylus: ("styl"),
terraform: ("tf"),
text: ("txt"),
typescript: ("ts"),
typst: ("typ", "typc", "typm"),
vim: ("vimscript"),
visualbasic: ("vb"),
yaml: ("yml")
)
for (lang, aliases) in aliases {
for alias in aliases {
base-languages.insert(alias, base-languages.at(lang))
}
}
// finished
base-languages
} }
Binary file not shown.

After

Width:  |  Height:  |  Size: 254 KiB

@@ -0,0 +1,71 @@
#import "/lib.typ": *
#import "@preview/codly:1.1.0": *
#show: codly-init
#codly(languages: codly-languages)
```python
print("Hello, World!")
```
```java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
```
```js
console.log("Hello, World!");
```
```cpp
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}
```
```rust
fn main() {
println!("Hello, World!");
}
```
```cs
using System;
class Program {
static void Main() {
Console.WriteLine("Hello, World!");
}
}
```
```go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
```
```swift
print("Hello, World!")
```
```php
<?php
echo "Hello, World!";
?>
```
```kotlin
fun main() {
println("Hello, World!")
}
```
Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

+160
View File
@@ -0,0 +1,160 @@
#import "/lib.typ": *
#let base-languages = (
"aarch64",
"angular",
"ansible",
"apache",
"apl",
"awk",
"bash",
"c",
"cairo",
"clojure",
"clojurescript",
"cmake",
"coffeescript",
"cplusplus",
"crystal",
"csharp",
"css",
"dart",
"docker",
"elixir",
"elm",
"emacs",
"erlang",
"fortran",
"fsharp",
"git",
"go",
"graphql",
"groovy",
"grpc",
"handlebars",
"haskell",
"haxe",
"html",
"java",
"javascript",
"json",
"julia",
"kotlin",
"latex",
"less",
"lua",
"markdown",
"matlab",
"mysql",
"neovim",
"nginx",
"nim",
"nix",
"objectivec",
"ocaml",
"perl",
"php",
"postgresql",
"powershell",
"processing",
"prolog",
"purescript",
"python",
"r",
"rails",
"ruby",
"rust",
"sass",
"scala",
"solidity",
"sql",
"sqlite",
"ssh-config",
"stylus",
"svelte",
"swift",
"terraform",
"tex",
"text",
"typescript",
"typst",
"uml",
"vala",
"vim",
"visualbasic",
"vyper",
"wasm",
"xml",
"yaml",
"zig",
)
#for lang in base-languages {
if lang not in codly-languages.keys() {
panic("warning: language " + lang + " not found in codly-languages")
}
}
Found all base languages!
#let aliases = (
"arm",
"bash",
"clj",
"cljs",
"coffee",
"cpp",
"cs",
"cxx",
"dockerfile",
"erl",
"ex",
"fs",
"golang",
"hs",
"html5",
"jl",
"js",
"kt",
"ml",
"nixos",
"nvim",
"obj-c",
"objc",
"pl",
"ps1",
"py",
"rb",
"rs",
"sc",
"scss",
"sh",
"shell",
"sol",
"ssh",
"styl",
"tf",
"ts",
"txt",
"typ",
"typc",
"typm",
"vb",
"vimscript",
"yml"
)
#for lang in aliases {
if lang not in codly-languages.keys() {
panic("error: language " + lang + " not found in codly-languages")
}
}
Found all language aliases!
#if codly-languages.keys().len() != base-languages.len() + aliases.len() {
panic("error: language count is incorrect")
}
Language key count matches: #codly-languages.keys().len() keys.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

@@ -1,10 +1,10 @@
[package] [package]
name = "codly-languages" name = "codly-languages"
version = "0.1.1" version = "0.1.3"
entrypoint = "lib.typ" entrypoint = "lib.typ"
authors = ["Stephen Waits <steve@waits.net>"] authors = ["Stephen Waits <steve@waits.net>"]
license = "MIT" license = "MIT"
description = "A set of language configurations for use with codly" description = "A set of language configurations for use with codly"
keywords = [ "code", "languages", "template", "raw" ] keywords = ["code", "languages", "template", "raw"]
repository = "https://github.com/swaits/typst-collection" repository = "https://github.com/swaits/typst-collection"
exclude = ["thumbnail.png"] exclude = ["thumbnail.png", "tests"]
File renamed without changes.
File renamed without changes.
Loaded 100 of 270 files, more files were not shown because too many files have changed in this diff. Show more