basho:0.1.0#4917
Open
KoyaTofu42 wants to merge 17 commits into
Open
Conversation
… test for asymmetric margins
…on and improve character rendering logic
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am submitting
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
typst.tomlfile with all required keysREADME.mdwith documentation for my packageLICENSEfile or linked one in myREADME.mdexcluded PDFs or README images, if any, but not the LICENSE