diff options
| author | Peng Guanwen <pg999w@outlook.com> | 2024-01-29 18:46:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-29 10:46:41 +0000 |
| commit | 269860c571fa270ac5a2a25f52f0b24fa52d7ba1 (patch) | |
| tree | cdd6d3e5cc93714a9f7f404535f357f0f6affca3 /tests/typ | |
| parent | 6207b3d9b010d07f73b1819fe1d8463dee3c5adc (diff) | |
Do not parse special spaces to Space Token (#3267)
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/layout/par-justify-cjk.typ | 2 | ||||
| -rw-r--r-- | tests/typ/meta/numbering.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/space.typ | 11 |
3 files changed, 13 insertions, 2 deletions
diff --git a/tests/typ/layout/par-justify-cjk.typ b/tests/typ/layout/par-justify-cjk.typ index cd25fca1..51c86c7b 100644 --- a/tests/typ/layout/par-justify-cjk.typ +++ b/tests/typ/layout/par-justify-cjk.typ @@ -15,7 +15,7 @@ // 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", font: ("Linux Libertine", "Noto Serif CJK JP")) +#set text(lang: "ja", font: ("Linux Libertine", "Noto Serif CJK JP")) #rect(inset: 0pt, width: 80pt, fill: rgb("eee"))[ ウィキペディア(英: Wikipedia)は、世界中のボランティアの共同作業によって執筆及び作成されるフリーの多言語インターネット百科事典である。主に寄付に依って活動している非営利団体「ウィキメディア財団」が所有・運営している。 diff --git a/tests/typ/meta/numbering.typ b/tests/typ/meta/numbering.typ index 171eca1a..9c0c9b66 100644 --- a/tests/typ/meta/numbering.typ +++ b/tests/typ/meta/numbering.typ @@ -41,7 +41,7 @@ } --- -#set text(lang: "jp", font: ("Linux Libertine", "Noto Serif CJK JP")) +#set text(lang: "ja", font: ("Linux Libertine", "Noto Serif CJK JP")) #for i in range(0, 4) { numbering("イ", i) [ (or ] diff --git a/tests/typ/text/space.typ b/tests/typ/text/space.typ index a3fd6c0a..9d29f347 100644 --- a/tests/typ/text/space.typ +++ b/tests/typ/text/space.typ @@ -40,3 +40,14 @@ A#"\n" B --- // Test that trailing space does not force a line break. LLLLLLLLLLLLLLLLLL R _L_ + +--- +// Test that ideographic spaces are preserved. +#set text(lang: "ja", font: "Noto Serif CJK JP") + +だろうか? 何のために! 私は、 + +--- +// Test that thin spaces are preserved. +| | U+0020 regular space \ +| | U+2009 thin space |
