diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-13 14:48:19 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-13 14:48:19 +0200 |
| commit | 67e9313b9127b70b9d7dad6540853025ae90b4a5 (patch) | |
| tree | 9f060b1982534ad67ee5a0688927071aa08dd96c /tests/typ/text | |
| parent | 2279c26543f7edde910fd89a3f8f0710c67249db (diff) | |
Soft breaks and shy hyphens
Diffstat (limited to 'tests/typ/text')
| -rw-r--r-- | tests/typ/text/hyphenate.typ | 10 | ||||
| -rw-r--r-- | tests/typ/text/linebreak.typ | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/typ/text/hyphenate.typ b/tests/typ/text/hyphenate.typ index 02a33277..6bb87b13 100644 --- a/tests/typ/text/hyphenate.typ +++ b/tests/typ/text/hyphenate.typ @@ -31,6 +31,16 @@ Welcome to wo#text(hyphenate: true)[nd]erful experiences. \ It's a #emph[Tree]beard. --- +// Test shy hyphens. +#set text(lang: "de", hyphenate: true) +#grid( + columns: 2 * (20pt,), + gutter: 20pt, + [Barankauf], + [Bar-?ankauf], +) + +--- // This sequence would confuse hypher if we passed trailing / leading // punctuation instead of just the words. So this tests that we don't // do that. The test passes if there's just one hyphenation between diff --git a/tests/typ/text/linebreak.typ b/tests/typ/text/linebreak.typ index ff8559d6..bee17c6b 100644 --- a/tests/typ/text/linebreak.typ +++ b/tests/typ/text/linebreak.typ @@ -26,3 +26,8 @@ Two consecutive \ \ breaks and three \ \ \ more. --- // Test forcing an empty trailing line. Trailing break \ \ + +--- +// Test soft breaks. +#set par(justify: true) +With a soft \+ break you can force a break without breaking justification. |
