-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Option to have raw, unchanged, surpriseless, uniform CJK full-width punctuation width #7643
Copy link
Copy link
Open
Labels
cjkChinese, Japanese, Korean typography.Chinese, Japanese, Korean typography.feature requestNew feature or requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.Related to the text category, which is all about text handling, shaping, etc.
Description
Description
What I want
A beautiful, predictable, uniform matrix of glyphs with one single, static, constant width.
When using xeCJK, all the requirement is a simple line:
\xeCJKsetup{PunctStyle=plain,RubberPunctSkip=false}Current behavior
Chaotic width squeezing rules full of surprises.
Proposed API
#set text(cjk-punct-width: auto | "raw")When set to auto, which is the default value, use the current behavior. When set to "raw", use the raw, unchanged, surpriseless, uniform width.
This option should not affect how the width of sequence —— is determined, whose glyph might from a ligature of the current font.
Workaround
#show regex("[,。、]"): it => box(width: 1em, align(left, it))
#show regex("[!?;:()【】「」『』❲❳[]]"): it => box(width: 1em, align(center, it))Mostly usable; might need further tweaking.
Use Case
Anyone migrating from XeLaTeX + xeCJK workflow will need this feature to have a fully comparable CJK environment.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
cjkChinese, Japanese, Korean typography.Chinese, Japanese, Korean typography.feature requestNew feature or requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.Related to the text category, which is all about text handling, shaping, etc.