summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-4476-rtl-title-ending-in-ltr-text.pngbin0 -> 6312 bytes
-rw-r--r--tests/ref/smartquote-with-embedding-chars.pngbin0 -> 571 bytes
-rw-r--r--tests/suite/model/outline.typ7
-rw-r--r--tests/suite/text/smartquote.typ5
4 files changed, 12 insertions, 0 deletions
diff --git a/tests/ref/issue-4476-rtl-title-ending-in-ltr-text.png b/tests/ref/issue-4476-rtl-title-ending-in-ltr-text.png
new file mode 100644
index 00000000..09506966
--- /dev/null
+++ b/tests/ref/issue-4476-rtl-title-ending-in-ltr-text.png
Binary files differ
diff --git a/tests/ref/smartquote-with-embedding-chars.png b/tests/ref/smartquote-with-embedding-chars.png
new file mode 100644
index 00000000..569bfb50
--- /dev/null
+++ b/tests/ref/smartquote-with-embedding-chars.png
Binary files differ
diff --git a/tests/suite/model/outline.typ b/tests/suite/model/outline.typ
index 085e06ed..2409dbbe 100644
--- a/tests/suite/model/outline.typ
+++ b/tests/suite/model/outline.typ
@@ -176,3 +176,10 @@ Ok ...
// Error: 2-55 heading must have a location
// Hint: 2-55 try using a query or a show rule to customize the outline.entry instead
#outline.entry(1, heading[Hello], [World!], none, [1])
+
+--- issue-4476-rtl-title-ending-in-ltr-text ---
+#set text(lang: "he")
+#outline()
+
+= הוקוס Pocus
+= זוהי כותרת שתורגמה על ידי מחשב
diff --git a/tests/suite/text/smartquote.typ b/tests/suite/text/smartquote.typ
index 28fcba5b..02ac4455 100644
--- a/tests/suite/text/smartquote.typ
+++ b/tests/suite/text/smartquote.typ
@@ -69,6 +69,11 @@ Some people's thought on this would be #[#set smartquote(enabled: false); "stran
"'test' statement" \
"statement 'test'"
+--- smartquote-with-embedding-chars ---
+#set text(lang: "fr")
+"#"\u{202A}"bonjour#"\u{202C}"" \
+#"\u{202A}""bonjour"#"\u{202C}"
+
--- smartquote-custom ---
// Use language quotes for missing keys, allow partial reset
#set smartquote(quotes: "«»")