mirror of
https://github.com/typst/typst
synced 2025-05-16 18:15:29 +08:00
36 lines
1.8 KiB
Typst
36 lines
1.8 KiB
Typst
// Test Chinese text in narrow lines.
|
||
|
||
// In Chinese typography, line length should be multiples of the character size
|
||
// and the line ends should be aligned with each other.
|
||
// Most Chinese publications do not use hanging punctuation at line end.
|
||
#set page(width: auto)
|
||
#set par(justify: true)
|
||
#set text(overhang: false, lang: "zh")
|
||
|
||
#rect(inset: 0pt, width: 80pt, fill: rgb("eee"))[
|
||
中文维基百科使用汉字书写,汉字是汉族或华人的共同文字,是中国大陆、新加坡、马来西亚、台湾、香港、澳门的唯一官方文字或官方文字之一。25.9%,而美国和荷兰则分別占13.7%及8.2%。近年來,中国大陆地区的维基百科编辑者正在迅速增加;
|
||
]
|
||
|
||
---
|
||
// Japanese typography is more complex, make sure it is at least a bit sensible.
|
||
#set page(width: auto)
|
||
#set par(justify: true)
|
||
#set text(lang: "jp")
|
||
#rect(inset: 0pt, width: 80pt, fill: rgb("eee"))[
|
||
ウィキペディア(英: Wikipedia)は、世界中のボランティアの共同作業によって執筆及び作成されるフリーの多言語インターネット百科事典である。主に寄付に依って活動している非営利団体「ウィキメディア財団」が所有・運営している。
|
||
|
||
専門家によるオンライン百科事典プロジェクトNupedia(ヌーペディア)を前身として、2001年1月、ラリー・サンガーとジミー・ウェールズ(英: Jimmy Donal "Jimbo" Wales)により英語でプロジェクトが開始された。
|
||
]
|
||
|
||
---
|
||
// Test punctuation whitespace adjustment
|
||
#set page(width: auto)
|
||
#set text(lang: "zh", font: "Noto Serif CJK SC", overhang: false)
|
||
#set par(justify: true)
|
||
#rect(inset: 0pt, width: 80pt, fill: rgb("eee"))[
|
||
“引号测试”,还,
|
||
|
||
《书名》《测试》下一行
|
||
|
||
《书名》《测试》。
|
||
] |