Skip to content

U+2E3A and two consecutive U+2014 should not be overhung #6735

@chiefaccelerators

Description

@chiefaccelerators

Description

To my knowledge, U+2E3A is used in Chinese typesetting only, which does not have punctuation overhang styling right now (#6582), so the hanging of this particular punctuation is really confusing. Plus, even if we bring it back, U+2E3A should not be overhung. Per clreq, hanging punctuation "helps to avoid moving characters or punctuation marks between lines and avoids inconsistency of space between the characters in different lines." The current hanging effect of U+2E3A defeats that purpose:

Image

Typst code:

#let ccwd = 12pt

// Set the text width to exact 30 Chinese characters.
#set page("a5", margin: (x: 50% - ccwd * 15))

#set text(
  lang: "zh",
  font: ("Source Han Serif SC"), // font converts 2 U+2014s to U+2E3A
  size: ccwd,
)

#set par(justify: true, first-line-indent: (amount: 2em, all: true))

// stripe background
#place(
  top + left,
	dx: ccwd,
  repeat(
      rect(width: ccwd, height: 6em, stroke: none, fill: rgb("#7092be70")),
			gap: ccwd,
			justify: false
    )
  )

#set text(overhang: false)
囗囗囗囗囗囗囗,囗囗囗囗囗囗囗囗。囗囗囗囗囗囗囗囗囗——囗囗囗囗 this is correct

#set text(overhang: true)
囗囗囗囗囗囗囗,囗囗囗囗囗囗囗囗。囗囗囗囗囗囗囗囗囗——囗囗囗囗 the grid is broken :(

Reproduction URL

No response

Operating system

macOS

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestA proposal for changes to an existing featurecjkChinese, Japanese, Korean typography.textRelated to the text category, which is all about text handling, shaping, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions