diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-08-28 10:21:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-28 08:21:21 +0000 |
| commit | ef4482ce4b084aa97155dbde89f02dda3f7fb219 (patch) | |
| tree | 723fdac6b85dcc2a95d7e88984c14dfefe7e829d /tests/suite | |
| parent | 4e4c5175e531d99ec6f39d9a77d59d02f2109308 (diff) | |
Better smartquotes (#4849)
Diffstat (limited to 'tests/suite')
| -rw-r--r-- | tests/suite/text/smartquote.typ | 23 |
1 files changed, 22 insertions, 1 deletions
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. |
