From e4d9db83ea4b7b9a3003c754c80b30b87d6cd119 Mon Sep 17 00:00:00 2001 From: Peng Guanwen Date: Tue, 17 Oct 2023 17:14:09 +0800 Subject: Automatically add spacing between CJK and Latin characters (#2334) --- tests/typ/layout/cjk-latin-spacing.typ | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/typ/layout/cjk-latin-spacing.typ (limited to 'tests/typ') diff --git a/tests/typ/layout/cjk-latin-spacing.typ b/tests/typ/layout/cjk-latin-spacing.typ new file mode 100644 index 00000000..9cc94fd2 --- /dev/null +++ b/tests/typ/layout/cjk-latin-spacing.typ @@ -0,0 +1,16 @@ +// Test CJK-Latin spacing. + +#set page(width: 50pt + 10pt, margin: (x: 5pt)) +#set text(lang: "zh", font: "Noto Serif CJK SC", cjk-latin-spacing: auto) +#set par(justify: true) + +中文,中12文1中,文12中文 + +中文,中ab文a中,文ab中文 + +#set text(cjk-latin-spacing: none) + +中文,中12文1中,文12中文 + +中文,中ab文a中,文ab中文 + -- cgit v1.2.3