You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In Chinese typsetting, Interpunct (U+00B7) should not appear at line start and should have consistent width #6774
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:
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.
Perhaps the width of interpuncts can be adjusted. At present, clreq descriptions are inconsistent. (I created w3c/clreq#705.) Therefore, I suggest postponing the implementation.
Nevertheless, the prohibition rules for line start can be fixed first.
The only existing test case that contains interpuncts is text-chinese-basic.
But in the following examples they are all full-width.
Since different fonts often make interpunct only half-width or even thinner, in many plain-text environment people may use U+30FB (Katakana Middle Dot) to ensure the full-width, which is not easy to input for non-Japanese users.
Hi cocoAutumn!
I guess the consensus is that the width of interpuncts is controversial.
I suggest moving further discussions to w3c/clreq#705 rather than continuing here. w3c/clreq has a wider audience and it's more convenient to cite Chinese materials.
Besides, you might be interested in The Type — 文字 / 设计 / 文化 — #189:十二部委联合发文指定的标点 (broadcast).
The CLReq editorial group discussed and closed the issue on the width of interpuncts (w3c/clreq#705). Their conclusion is that the rule can be chosen freely. In practice, most fonts prefer 1em.
Therefore, I suggest we respect the choice made by the font designer, and do not change the width unless we provide an option in the future.
After the editorial meeting in September 2025, it was confirmed that the several quoted texts mentioned above are not mutually exclusive in terms of content logic and are feasible.
It should be noted that the actual adjustment of punctuation width depends on the layout style. Different regions, media and works can decide for themselves whether to adjust or not. This document focuses on highlighting principles, with a particular emphasis on the parts that "should not be done". For the parts not mentioned, it leaves room for "what can be done or not done" for each specific design case to make decisions.
Even though the Chinese national standard GB/T 15834—2011 stipulates that the space should occupy half the width of a Chinese character, this national standard is only a recommended one. Currently, most fonts will be made to the width of one Chinese character, and ultimately it is up to the user to decide whether to adjust.
I would like to add that the full-width semicolon ; should also be prohibited from appearing at the start of a line. It should follow the same punctuation compression rules as the ideographic full stop 。.
As shown below, Typst does have prohibition rules for ;. It's just that the rules don't work well with math. I suggest creating a new issue instead.
Edit: My conclusion was correct, but my analysis was wrong! The linebreak opportunities are determined by icu_segmenter. Typst's codes here are only for punctuation adjustments.
Activity
YDX-2147483647 commentedon Sep 2, 2025
Perhaps the width of interpuncts can be adjusted. At present, clreq descriptions are inconsistent. (I created w3c/clreq#705.) Therefore, I suggest postponing the implementation.
Nevertheless, the prohibition rules for line start can be fixed first.
The only existing test case that contains interpuncts is text-chinese-basic.
typst/tests/suite/layout/inline/cjk.typ
Lines 3 to 10 in 560e49b
docs: Add interpuncts
docs: Add interpuncts
cocoAutumn commentedon Oct 6, 2025
Even in the national standard itself, the witdh of interpunct is still not well-defined.
https://openstd.samr.gov.cn/bzgk/gb/newGbInfo?hcno=22EA6D162E4110E752259661E1A0D0A8
But in the following examples they are all full-width.

Since different fonts often make interpunct only half-width or even thinner, in many plain-text environment people may use U+30FB (Katakana Middle Dot) to ensure the full-width, which is not easy to input for non-Japanese users.
YDX-2147483647 commentedon Oct 6, 2025
Hi cocoAutumn!
I guess the consensus is that the width of interpuncts is controversial.
I suggest moving further discussions to w3c/clreq#705 rather than continuing here. w3c/clreq has a wider audience and it's more convenient to cite Chinese materials.
Besides, you might be interested in The Type — 文字 / 设计 / 文化 — #189:十二部委联合发文指定的标点 (broadcast).
YDX-2147483647 commentedon Oct 28, 2025
The CLReq editorial group discussed and closed the issue on the width of interpuncts (w3c/clreq#705). Their conclusion is that the rule can be chosen freely. In practice, most fonts prefer 1em.
Therefore, I suggest we respect the choice made by the font designer, and do not change the width unless we provide an option in the future.
The original reply is as follows.
Chinese (original):
English (translated):
kands-code commentedon Jan 20, 2026
I would like to add that the full-width semicolon
;should also be prohibited from appearing at the start of a line. It should follow the same punctuation compression rules as the ideographic full stop。.YDX-2147483647 commentedon Jan 20, 2026
Hi, @kands-code!
As shown below, Typst does have prohibition rules for
;. It's just that the rules don't work well with math. I suggest creating a new issue instead.Edit: My conclusion was correct, but my analysis was wrong! The linebreak opportunities are determined by icu_segmenter. Typst's codes here are only for punctuation adjustments.
The old wrong analysis
typst/crates/typst-layout/src/inline/shaping.rs
Lines 1364 to 1370 in a5abe41
See also 有没有标点避头尾规则? - Search | DeepWiki
As for compressing
;, I believe the current implementation matches your description and there isn't any issue.YDX-2147483647 commentedon Jan 24, 2026
This might be an upstream bug.
icu_segmenterdetermines linebreak opportunities, and it thinks linebreaks can happen immediately after·.Expected:
Test code
Relates to #7412, #1355, unicode-org/icu#223, unicode-org/icu4x#3284.
Update on 2026-10-26
I confirm that the neo segmenter provided by icu4x 2.4 resolves this problem. See #9003.
Test code