Skip to content

auto-canto:0.2.3#4255

Merged
elegaanz merged 8 commits intotypst:mainfrom
VincentTam:auto-canto-0.2.3
Mar 6, 2026
Merged

auto-canto:0.2.3#4255
elegaanz merged 8 commits intotypst:mainfrom
VincentTam:auto-canto-0.2.3

Conversation

@VincentTam
Copy link
Copy Markdown
Contributor

@VincentTam VincentTam commented Mar 3, 2026

I am submitting

  • a new package
  • an update for a package

Description: A Cantonese version of auto-pinyin with word segmentation.

For a live demo, you may view my YouTube video: https://youtu.be/ivUu91eDfvY, and also the release notes of the most recent version

This is a continuation of #4242, and it depends on #4253.

I have read and followed the submission guidelines and, in particular, I

  • selected a name that isn't the most obvious or canonical name for what the package does
  • added a typst.toml file with all required keys
  • added a README.md with documentation for my package
  • have chosen a license and added a LICENSE file or linked one in my README.md
  • tested my package locally on my system and it worked
  • excluded PDFs or README images, if any, but not the LICENSE

@typst-package-check typst-package-check Bot added the new A new package submission. label Mar 3, 2026
@elegaanz elegaanz self-assigned this Mar 4, 2026
"education",
"linguistics",
]
compiler = "0.14.2"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless you depend on a fix introduced in 0.14.2, this should be lower: as low as the oldest compiler version you support (so probably even less than 0.14.0).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right. I've changed it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you considered possibilities to compact that file? In particular, since it mostly data which may contain repetitive patterns, do you think compressing it using some well-known format and decompressing it in memory could result in a net positive in terms of file size? Also, have you looked into wasm-opt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now it's 1.5MB. Hope it's acceptable.

The WASM file can be generated from the build script in my Rust crate rust-canto

@elegaanz
Copy link
Copy Markdown
Member

elegaanz commented Mar 6, 2026

Thank you for taking time to improve the WASM file size, 1.5MiB is much better. :) And thank you for contributing this package!

@elegaanz elegaanz merged commit a03a9b5 into typst:main Mar 6, 2026
3 checks passed
leostudiooo pushed a commit to leostudiooo/packages that referenced this pull request Mar 19, 2026
retroflexivity pushed a commit to retroflexivity/typst-packages that referenced this pull request Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new A new package submission.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants