Skip to content

Some smart quotes render incorrectly with CJK #8191

Description

@Elecleus

Description

Just as the example code:

#set text(
  font: "Noto Serif CJK SC",
  lang: "zh",
  region: "cn",
)

#grid(
  columns: 2,
  column-gutter: 1em,
  row-gutter: 2em,
)[
  双括号、不相连\ 
  double quote, not connected:
][
  我能 "吞下" 玻璃而不伤身体
][
  双括号、相连\ 
  double quote, connected:
][
  我能"吞下"玻璃而不伤身体
][
  单括号、不相连\ 
  single quote, not connected:
][
  我能 '吞下' 玻璃而不伤身体
][
  单括号、相连\ 
  single quote, connected:
][
  我能'吞下'玻璃而不伤身体
]

compile result:

Image

This picture should show the problem :)

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcjkChinese, Japanese, Korean typography.textRelated to the text category, which is all about text handling, shaping, etc.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions