summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
author+merlan #flirora <uruwi@protonmail.com>2024-07-14 09:48:40 -0400
committerGitHub <noreply@github.com>2024-07-14 13:48:40 +0000
commit17ee3df1ba99183fc074e91dfba3e9189dae1c0c (patch)
treef2b9f3ba7e437dc176fe4056f4689e5f8a012595 /tests
parenta3f3a1a83330e3fe9a686fbe4c0eda9f1e9e99b2 (diff)
Wrap outline entry body in LRE/RLE + make smart quotes ignore directional control characters (#4491)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
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: "«»")