summaryrefslogtreecommitdiff
path: root/tests/typ/text/quote-nesting.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/text/quote-nesting.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]