summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorA-Walrus <58790821+A-Walrus@users.noreply.github.com>2024-04-09 14:49:38 +0300
committerGitHub <noreply@github.com>2024-04-09 11:49:38 +0000
commit847b710480d388b890f13c2c0a20c4e8b7e16cc2 (patch)
tree8d59ad446c80560e9cdf6fd5890951cbcac601c7 /tests
parent7ea55ec9a09c6ca92eb272f99c03499d1cdd5ee3 (diff)
Fix raw bidi text (#3885)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/layout/par-bidi.pngbin25731 -> 31441 bytes
-rw-r--r--tests/typ/layout/par-bidi.typ10
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/ref/layout/par-bidi.png b/tests/ref/layout/par-bidi.png
index 4750ccb8..af66a719 100644
--- a/tests/ref/layout/par-bidi.png
+++ b/tests/ref/layout/par-bidi.png
Binary files differ
diff --git a/tests/typ/layout/par-bidi.typ b/tests/typ/layout/par-bidi.typ
index edbd75e1..4ff83802 100644
--- a/tests/typ/layout/par-bidi.typ
+++ b/tests/typ/layout/par-bidi.typ
@@ -55,6 +55,16 @@ Lריווח #h(1cm) R
ב #text("12:00 - 13:00",dir:ltr) בצהריים
---
+// Mixing raw
+#set text(lang: "he")
+לדוג. `if a == b:` זה תנאי
+#set raw(lang:"python")
+לדוג. `if a == b:` זה תנאי
+
+#show raw: set text(dir:rtl)
+לתכנת בעברית `אם א == ב:`
+
+---
// Test setting a vertical direction.
// Ref: false