diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/layout/par-bidi.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/layout/par-bidi.typ')
| -rw-r--r-- | tests/typ/layout/par-bidi.typ | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/tests/typ/layout/par-bidi.typ b/tests/typ/layout/par-bidi.typ deleted file mode 100644 index 4ff83802..00000000 --- a/tests/typ/layout/par-bidi.typ +++ /dev/null @@ -1,72 +0,0 @@ -// Test bidirectional text and language configuration. - ---- -// Test reordering with different top-level paragraph directions. -#let content = par[Text טֶקסט] -#text(lang: "he", content) -#text(lang: "de", content) - ---- -// Test that consecutive, embedded LTR runs stay LTR. -// Here, we have two runs: "A" and italic "B". -#let content = par[أنت A#emph[B]مطرC] -#set text(font: ("PT Sans", "Noto Sans Arabic")) -#text(lang: "ar", content) -#text(lang: "de", content) - ---- -// Test that consecutive, embedded RTL runs stay RTL. -// Here, we have three runs: "גֶ", bold "שֶׁ", and "ם". -#let content = par[Aגֶ#strong[שֶׁ]םB] -#set text(font: ("Linux Libertine", "Noto Serif Hebrew")) -#text(lang: "he", content) -#text(lang: "de", content) - ---- -// Test embedding up to level 4 with isolates. -#set text(dir: rtl) -א\u{2066}A\u{2067}Bב\u{2069}? - ---- -// Test hard line break (leads to two paragraphs in unicode-bidi). -#set text(lang: "ar", font: ("Noto Sans Arabic", "PT Sans")) -Life المطر هو الحياة \ -الحياة تمطر is rain. - ---- -// Test spacing. -L #h(1cm) ריווחR \ -Lריווח #h(1cm) R - ---- -// Test inline object. -#set text(lang: "he") -קרנפיםRh#box(image("/assets/images/rhino.png", height: 11pt))inoחיים - ---- -// Test whether L1 whitespace resetting destroys stuff. -الغالب #h(70pt) ن#" "ة - ---- -// Test explicit dir -#set text(dir: rtl) -#text("8:00 - 9:00",dir:ltr) בבוקר -#linebreak() -ב #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 - -// Error: 16-19 text direction must be horizontal -#set text(dir: ttb) |
