diff options
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. |
