Skip to content

CJK brackets at the beginning of paragraph #4011

@minamotorin

Description

@minamotorin

Description

When paragraph indentation is enabled, positioning of brackets at the beginning of paragraph doesn't follow §3.1.5 of Requirements for Japanese Text Layout.
Example code is below.

// This program is public domain (CC0).
#set page(
  width: 210mm,
  margin: (left: 30mm, right: 210mm-30mm-10em),
)
#set par(
  leading: 1em
)
#show par: set block(
  spacing: 2.5em
)

「日日日日日日日日日「日

#set par(first-line-indent: 1em)

「日日日日日日日日「日

#h(-0.5em)「日日日日日日日日「日

brac

The first paragraph is an example of paragraph indentation is not enabled, and the second one is an example of paragraph indentation is enabled.

The third paragraph is an example of the expected result that follows §3.1.5 of Requirements for Japanese Text Layout.

Thanks.

Reproduction URL

No response

Operating system

macOS

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    cjkChinese, Japanese, Korean typography.feature requestNew feature or requesttextRelated 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