Implementation of Chinese Emphasis Dots in Typst

Currently, Typst does not support Chinese emphasis dots(着重号). I wrote my own Typst function for Chinese emphasis dots. The effect is pretty good, but the performance may not be optimal.

#let 着重号(body) = {
  show regex("\p{sc=Han}"): it => {
    box(
      grid(
        columns: 1,
        rows: (auto, -0.05em),
        row-gutter: 0.04em,
        align(center, it),
        align(center, text("・", size: 0.8em, weight: "extrabold")),
      )
    )
  }
  body
}

Usage: #着重号[text]

For example:

自发地和大批地#着重号[产生着]

That’s nice!

You can find previous discussions at 行间标点:着重号、专名号、书名号 · Issue #29 · typst-doc-cn/clreq · GitHub. It looks like that grid is a new implementation.