From e2bf2327b53a6b963f7adaeb655fefc1d5fac745 Mon Sep 17 00:00:00 2001 From: Peng Guanwen Date: Tue, 30 May 2023 23:53:10 +0800 Subject: Use icu4x for linebreaking algorithm (#1355) --- tests/ref/text/linebreak.png | Bin 21750 -> 39452 bytes tests/typ/layout/par-justify-cjk.typ | 2 +- tests/typ/text/linebreak.typ | 6 ++++++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/ref/text/linebreak.png b/tests/ref/text/linebreak.png index b137e292..1e94762b 100644 Binary files a/tests/ref/text/linebreak.png and b/tests/ref/text/linebreak.png differ diff --git a/tests/typ/layout/par-justify-cjk.typ b/tests/typ/layout/par-justify-cjk.typ index 04b328a7..41b3e729 100644 --- a/tests/typ/layout/par-justify-cjk.typ +++ b/tests/typ/layout/par-justify-cjk.typ @@ -43,7 +43,7 @@ #set text(font: "Noto Serif CJK SC", lang: "zh") #set par(justify: true) -孔雀最早见于《山海经》中的《海内经》:\u{200b}“有孔雀。”东汉杨孚著《异物志》记载,岭南:“孔雀,其大如大雁而足高,毛皆有斑纹彩,捕而蓄之,拍手即舞。” +孔雀最早见于《山海经》中的《海内经》:“有孔雀。”东汉杨孚著《异物志》记载,岭南:“孔雀,其大如大雁而足高,毛皆有斑纹彩,捕而蓄之,拍手即舞。” #set text(font: "Noto Serif CJK TC", lang: "zh", region: "hk") 孔雀最早见于《山海经》中的《海内经》:「有孔雀。」东汉杨孚著《异物志》记载,岭南:「孔雀,其大如大雁而足高,毛皆有斑纹彩,捕而蓄之,拍手即舞。」 diff --git a/tests/typ/text/linebreak.typ b/tests/typ/text/linebreak.typ index c926789a..7e409a80 100644 --- a/tests/typ/text/linebreak.typ +++ b/tests/typ/text/linebreak.typ @@ -43,3 +43,9 @@ Second part // Test comments at the end of a line with pre-spacing First part // Second part + +--- +// Test linebreak for East Asian languages +ทีวีตรวจทานนอร์ทแฟรีเลคเชอร์โกลด์อัลบัมเชอร์รี่เย้วสโตร์กฤษณ์เคลมเยอบีร่าพ่อค้าบลูเบอร์รี่สหัสวรรษโฮปแคนูโยโย่จูนสตรอว์เบอร์รีซื่อบื้อเยนแบ็กโฮเป็นไงโดนัททอมสเตริโอแคนูวิทย์แดรี่โดนัทวิทย์แอปพริคอทเซอร์ไพรส์ไฮบริดกิฟท์อินเตอร์โซนเซอร์วิสเทียมทานโคโยตี้ม็อบเที่ยงคืนบุญคุณ + + -- cgit v1.2.3