diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-07-04 15:27:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-04 13:27:43 +0000 |
| commit | 129a4d600c1860beb7ec2ae52a9186088f6f043d (patch) | |
| tree | 8b510cdba4160f37103401bd6dc3fed94d7bbf19 /tests | |
| parent | 0ef672c347f368325313c8bccc4f70e3f1016b0a (diff) | |
Fix hyphenation outside of words (#4498)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/hyphenate-outside-of-words.png | bin | 0 -> 1011 bytes | |||
| -rw-r--r-- | tests/suite/layout/inline/hyphenate.typ | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/ref/hyphenate-outside-of-words.png b/tests/ref/hyphenate-outside-of-words.png Binary files differnew file mode 100644 index 00000000..57b11ed8 --- /dev/null +++ b/tests/ref/hyphenate-outside-of-words.png diff --git a/tests/suite/layout/inline/hyphenate.typ b/tests/suite/layout/inline/hyphenate.typ index c366b38f..debce1da 100644 --- a/tests/suite/layout/inline/hyphenate.typ +++ b/tests/suite/layout/inline/hyphenate.typ @@ -50,6 +50,16 @@ It's a #emph[Tree]beard. #set text(hyphenate: true) #h(6pt) networks, the rest. +--- hyphenate-outside-of-words --- +// More tests for hyphenation of non-words. +#set text(hyphenate: true) +#block(width: 0pt, "doesn't") +#block(width: 0pt, "(OneNote)") +#block(width: 0pt, "(present)") + +#set text(lang: "de") +#block(width: 0pt, "(bzw.)") + --- hyphenate-pt-repeat-hyphen-natural-word-breaking --- // The word breaker naturally breaks arco-da-velha at arco-/-da-velha, // so we shall repeat the hyphen, even that hyphenate is set to false. |
