summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeng Guanwen <pg999w@outlook.com>2023-04-18 00:20:59 +0800
committerGitHub <noreply@github.com>2023-04-17 18:20:59 +0200
commit480ad7670b19457a3163d59e948bfac5eacd9472 (patch)
tree1927ca2b08d5bfa249ceb7a344a2aa2ac915c70d /tests
parent9bdc4a7de0fb685fa2b8d02280e70aa0b5d92bf9 (diff)
More Chinese punctuation adjustment (#836)
and also general linebreak improvements
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/layout/par-justify-cjk.pngbin43928 -> 120972 bytes
-rw-r--r--tests/ref/layout/par-justify.pngbin12441 -> 41627 bytes
-rw-r--r--tests/typ/layout/par-justify-cjk.typ13
-rw-r--r--tests/typ/layout/par-justify.typ6
4 files changed, 19 insertions, 0 deletions
diff --git a/tests/ref/layout/par-justify-cjk.png b/tests/ref/layout/par-justify-cjk.png
index ee58318a..5efcc1e1 100644
--- a/tests/ref/layout/par-justify-cjk.png
+++ b/tests/ref/layout/par-justify-cjk.png
Binary files differ
diff --git a/tests/ref/layout/par-justify.png b/tests/ref/layout/par-justify.png
index a16c3f7b..9f92034f 100644
--- a/tests/ref/layout/par-justify.png
+++ b/tests/ref/layout/par-justify.png
Binary files differ
diff --git a/tests/typ/layout/par-justify-cjk.typ b/tests/typ/layout/par-justify-cjk.typ
index 1016b282..17f2d1e5 100644
--- a/tests/typ/layout/par-justify-cjk.typ
+++ b/tests/typ/layout/par-justify-cjk.typ
@@ -20,4 +20,17 @@
ウィキペディア(英: 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"))[
+ “引号测试”,还,
+
+ 《书名》《测试》下一行
+
+ 《书名》《测试》。
] \ No newline at end of file
diff --git a/tests/typ/layout/par-justify.typ b/tests/typ/layout/par-justify.typ
index 7034a42b..131eadfa 100644
--- a/tests/typ/layout/par-justify.typ
+++ b/tests/typ/layout/par-justify.typ
@@ -25,3 +25,9 @@ D E F #linebreak(justify: true)
// basically empty paragraph.
#set par(justify: true)
#""
+
+---
+// Test that the last line can be shrinked
+#set page(width: 155pt)
+#set par(justify: true)
+This text can be fitted in one line. \ No newline at end of file