feat: add tab stop parsing and improved tab rendering#121
Merged
Conversation
developer0hye
force-pushed
the
feat/tab-stops
branch
from
March 4, 2026 23:10
c508292 to
5cdd1a7
Compare
Parse custom tab stops from DOCX paragraph properties (position, alignment, leader type) and render tabs as Typst #h() spacing instead of raw tab characters. Falls back to Word's default 36pt (0.5 inch) spacing when no tab stops are defined. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
developer0hye
force-pushed
the
feat/tab-stops
branch
from
March 6, 2026 16:09
5cdd1a7 to
70785a5
Compare
Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
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.
Summary
clearsemantics for targeted tab positionsWhy
Word tab stops are inherited through styles, can be selectively cleared, and often depend on dotted leaders or decimal alignment. The initial implementation covered the basics but still replaced inherited stops wholesale and aligned decimal tabs on the first punctuation mark.
Key changes
.or,Test plan
cargo test -p office2pdfRelated: #111