Skip to content

basho:0.1.0#4917

Open
KoyaTofu42 wants to merge 17 commits into
typst:mainfrom
KoyaTofu42:update/basho-0.1.0
Open

basho:0.1.0#4917
KoyaTofu42 wants to merge 17 commits into
typst:mainfrom
KoyaTofu42:update/basho-0.1.0

Conversation

@KoyaTofu42
Copy link
Copy Markdown

@KoyaTofu42 KoyaTofu42 commented May 22, 2026

I am submitting

  • a new package
  • an update for a package

Description: It's useful because Typst only handle horizontal left-to-right text natively. Basho provides a vertical layout pipeline.

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
    • Explanation: Basho (芭蕉) is a famous writer of haiku, Japanese short poem, in 17c. This package is named after him because haiku mostly written in vertical text.
  • 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
  • ensured that my package is licensed such that users can use and distribute the contents of its template directory without restriction, after modifying them through normal use.

@typst-package-check typst-package-check Bot added the new A new package submission. label May 22, 2026
- Updated architecture documentation to reflect the new five-stage rendering pipeline.

- Introduced new transform and classify stages in the pipeline.

- Enhanced module contracts in modules.md to clarify expected structures and examples.

- Added comprehensive token schema in token-schema.md detailing token types and fields.

- Implemented a validation system for configuration in validate.typ to ensure correct module structures.

- Refactored token creation and merging logic into token.typ for consistency.

- Improved list handling in list.typ to utilize new token creation methods.

- Updated parser logic in parser.typ to use the new token creation functions.

- Added new pipeline stages for rendering transforms and classification.

- Enhanced layout handling to support new token types and rendering logic.
- Updated the `transform` function in the config to accept `config` as a parameter.
- Refactored `apply-spacing-compression` to return a new array of tokens with updated `compression` fields.
- Introduced `get-compressible-amount` to calculate compressible amounts for tokens.
- Added `count-justification-points` and `justify-line` functions to manage spacing across justification points.
- Enhanced the `default-spacing` function to assign `space-after` values based on adjacency rules for alphanumeric and Japanese characters.
- Modified the layout logic to apply justification after column adjustments.
- Updated the rendering logic to include `space-after` in the final rendered output.
Removed space between "Basho" and "パッケージ" in Japanese vertical demo.

Enhanced is-alphanumeric function to include additional punctuation marks and handle different token types.

Adjusted spacing logic to ensure correct gaps between alphanumeric and Japanese characters.

Refactored rendering logic to streamline character rendering and ensure proper handling of heading levels and alignment.

Fixed condition to check for space-after to ensure it only applies when greater than 0pt.
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