diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/text/hyphenate.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/text/hyphenate.typ')
| -rw-r--r-- | tests/typ/text/hyphenate.typ | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/typ/text/hyphenate.typ b/tests/typ/text/hyphenate.typ deleted file mode 100644 index 42946a88..00000000 --- a/tests/typ/text/hyphenate.typ +++ /dev/null @@ -1,51 +0,0 @@ -// Test hyphenation. - ---- -// Test hyphenating english and greek. -#set text(hyphenate: true) -#set page(width: auto) -#grid( - columns: (50pt, 50pt), - [Warm welcomes to Typst.], - text(lang: "el")[διαμερίσματα. \ λατρευτός], -) - ---- -// Test disabling hyphenation for short passages. -#set page(width: 110pt) -#set text(hyphenate: true) - -Welcome to wonderful experiences. \ -Welcome to `wonderful` experiences. \ -Welcome to #text(hyphenate: false)[wonderful] experiences. \ -Welcome to wonde#text(hyphenate: false)[rf]ul experiences. \ - -// Test enabling hyphenation for short passages. -#set text(hyphenate: false) -Welcome to wonderful experiences. \ -Welcome to wo#text(hyphenate: true)[nd]erful experiences. \ - ---- -// Hyphenate between shape runs. -#set page(width: 80pt) -#set text(hyphenate: true) -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 -// "net" and "works". -#set page(width: 60pt) -#set text(hyphenate: true) -#h(6pt) networks, the rest. |
