summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-02-15 10:41:27 +0100
committerGitHub <noreply@github.com>2024-02-15 09:41:27 +0000
commitaabb4b5ecf67a5b51b0e550f0b06087465f4ba75 (patch)
treee7dd89965f75a234160e7c8f70b9a4478a8fbc5b /tests/typ
parent79e37ccbac080212dc42e996d760664c75d1a56f (diff)
Better quote selection (#3422)
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/text/quote-nesting.typ27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/typ/text/quote-nesting.typ b/tests/typ/text/quote-nesting.typ
new file mode 100644
index 00000000..381aaa56
--- /dev/null
+++ b/tests/typ/text/quote-nesting.typ
@@ -0,0 +1,27 @@
+// Test quote nesting.
+
+---
+// Test quote selection.
+#set page(width: auto)
+#set text(lang: "en")
+=== EN
+#quote[An apostroph'] \
+#quote[A #quote[nested] quote] \
+#quote[A #quote[very #quote[nested]] quote]
+
+#set text(lang: "de")
+=== DE
+#quote[Satz mit Apostroph'] \
+#quote[Satz mit #quote[Zitat]] \
+#quote[A #quote[very #quote[nested]] quote]
+
+#set smartquote(alternative: true)
+=== DE Alternative
+#quote[Satz mit Apostroph'] \
+#quote[Satz mit #quote[Zitat]] \
+#quote[A #quote[very #quote[nested]] quote]
+
+---
+// With custom quotes.
+#set smartquote(quotes: (single: ("<", ">"), double: ("(", ")")))
+#quote[A #quote[nested] quote]