From ef4482ce4b084aa97155dbde89f02dda3f7fb219 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 28 Aug 2024 10:21:21 +0200 Subject: Better smartquotes (#4849) --- tests/suite/text/smartquote.typ | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'tests/suite') diff --git a/tests/suite/text/smartquote.typ b/tests/suite/text/smartquote.typ index 4c27be07..a69ad25c 100644 --- a/tests/suite/text/smartquote.typ +++ b/tests/suite/text/smartquote.typ @@ -56,7 +56,28 @@ He said "I'm a big fella." --- smartquote-escape --- // Test escape sequences. -The 5\'11\" 'quick\' brown fox jumps over the \"lazy" dog\'s ear. +The 5\'11\" 'quick\' brown fox jumps over the \"lazy' dog\'s ear. + +--- smartquote-slash --- +// Test that smartquotes can open before non-whitespace if not nested. +"Hello"/"World" \ +'"Hello"/"World"' \ +""Hello"/"World"" + +--- smartquote-close-before-letter --- +// Test that smartquotes can close before alphabetic letters. +Straight "A"s and "B"s + +--- smartquote-prime --- +// Test that primes result after numbers when possible. +A 2" nail. \ +'A 2" nail.' \ +"A 2" nail." + +--- smartquote-bracket --- +// Test that brackets indicate an opening quote. +"a ["b"] c" \ +"a b"c"d e" --- smartquote-disable --- // Test turning smart quotes off. -- cgit v1.2.3