summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-07-04 15:27:43 +0200
committerGitHub <noreply@github.com>2024-07-04 13:27:43 +0000
commit129a4d600c1860beb7ec2ae52a9186088f6f043d (patch)
tree8b510cdba4160f37103401bd6dc3fed94d7bbf19 /tests
parent0ef672c347f368325313c8bccc4f70e3f1016b0a (diff)
Fix hyphenation outside of words (#4498)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/hyphenate-outside-of-words.pngbin0 -> 1011 bytes
-rw-r--r--tests/suite/layout/inline/hyphenate.typ10
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
new file mode 100644
index 00000000..57b11ed8
--- /dev/null
+++ b/tests/ref/hyphenate-outside-of-words.png
Binary files differ
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.