Skip to content

In Chinese typsetting, Interpunct (U+00B7) should not appear at line start and should have consistent width #6774

@chiefaccelerators

Description

@chiefaccelerators

Description

Right now the Chinese punctuation handling is mostly okay, but interpunct is one exception. Per clreq:

The width of interpuncts varies in different regions. In principle, in Hong Kong and Taiwan, interpuncts should have the same dimensions as a Hanzi in both vertical writing mode and horizontal writing mode. In Mainland China, interpuncts take up half the space of a Hanzi.

interpuncts should not appear at the line start.

Interpunct can use various codepoints, but most Chinese input methods produce U+00B7, so it's what I'm testing:

Image

Granted, the width thing is also partly a font issue and can be easily patched with a show rule. But it would save some trouble if typst can give it a consistent width based on the current lang and region setting.

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcjkChinese, Japanese, Korean typography.textText layout, shaping, internationalization, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions