diff options
| author | Peng Guanwen <pg999w@outlook.com> | 2023-04-18 00:20:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-17 18:20:59 +0200 |
| commit | 480ad7670b19457a3163d59e948bfac5eacd9472 (patch) | |
| tree | 1927ca2b08d5bfa249ceb7a344a2aa2ac915c70d /tests | |
| parent | 9bdc4a7de0fb685fa2b8d02280e70aa0b5d92bf9 (diff) | |
More Chinese punctuation adjustment (#836)
and also general linebreak improvements
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/layout/par-justify-cjk.png | bin | 43928 -> 120972 bytes | |||
| -rw-r--r-- | tests/ref/layout/par-justify.png | bin | 12441 -> 41627 bytes | |||
| -rw-r--r-- | tests/typ/layout/par-justify-cjk.typ | 13 | ||||
| -rw-r--r-- | tests/typ/layout/par-justify.typ | 6 |
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 Binary files differindex ee58318a..5efcc1e1 100644 --- a/tests/ref/layout/par-justify-cjk.png +++ b/tests/ref/layout/par-justify-cjk.png diff --git a/tests/ref/layout/par-justify.png b/tests/ref/layout/par-justify.png Binary files differindex a16c3f7b..9f92034f 100644 --- a/tests/ref/layout/par-justify.png +++ b/tests/ref/layout/par-justify.png 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 |
