summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-16 00:37:33 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-16 00:37:33 +0100
commit210c4d93736263e124e66622f052758dbec544b1 (patch)
treea0ccabe6686bc9f50a80ad3d6c383ceb8139a985 /tests
parent370802de1368961744316ea8f4a8786afc0b87d6 (diff)
Move `lang` functionality into `par`
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/text/bidi.typ24
-rw-r--r--tests/typ/text/shaping.typ2
2 files changed, 13 insertions, 13 deletions
diff --git a/tests/typ/text/bidi.typ b/tests/typ/text/bidi.typ
index 128e65d4..7d33aeea 100644
--- a/tests/typ/text/bidi.typ
+++ b/tests/typ/text/bidi.typ
@@ -4,35 +4,35 @@
// Test reordering with different top-level paragraph directions.
#let text = [Text טֶקסט]
#font(serif, "Noto Serif Hebrew")
-#lang("he") {text}
-#lang("de") {text}
+#par(lang: "he") {text}
+#par(lang: "de") {text}
---
// Test that consecutive, embedded LTR runs stay LTR.
// Here, we have two runs: "A" and italic "B".
#let text = [أنت A_B_مطرC]
#font(serif, "Noto Sans Arabic")
-#lang("ar") {text}
-#lang("de") {text}
+#par(lang: "ar") {text}
+#par(lang: "de") {text}
---
// Test that consecutive, embedded RTL runs stay RTL.
// Here, we have three runs: "גֶ", bold "שֶׁ", and "ם".
#let text = [Aגֶ*שֶׁ*םB]
#font(serif, "Noto Serif Hebrew")
-#lang("he") {text}
-#lang("de") {text}
+#par(lang: "he") {text}
+#par(lang: "de") {text}
---
// Test embedding up to level 4 with isolates.
#font(serif, "Noto Serif Hebrew", "Twitter Color Emoji")
-#lang(dir: rtl)
+#par(dir: rtl)
א\u{2066}A\u{2067}Bב\u{2069}?
---
// Test hard line break (leads to two paragraphs in unicode-bidi).
#font("Noto Sans Arabic", serif)
-#lang("ar")
+#par(lang: "ar")
Life المطر هو الحياة \
الحياة تمطر is rain.
@@ -45,12 +45,12 @@ Lריווח #h(1cm) R
---
// Test inline object.
#font("Noto Serif Hebrew", serif)
-#lang("he")
+#par(lang: "he")
קרנפיםRh#image("../../res/rhino.png", height: 11pt)inoחיים
---
-// Test the `lang` function.
+// Test setting a vertical direction.
// Ref: false
-// Error: 12-15 must be horizontal
-#lang(dir: ttb)
+// Error: 11-14 must be horizontal
+#par(dir: ttb)
diff --git a/tests/typ/text/shaping.typ b/tests/typ/text/shaping.typ
index aa4e3c98..1a8a7933 100644
--- a/tests/typ/text/shaping.typ
+++ b/tests/typ/text/shaping.typ
@@ -41,5 +41,5 @@ A🐈中文B
// Test reshaping.
#font("Noto Serif Hebrew")
-#lang("he")
+#par(lang: "he")
ס \ טֶ