From 847b710480d388b890f13c2c0a20c4e8b7e16cc2 Mon Sep 17 00:00:00 2001 From: A-Walrus <58790821+A-Walrus@users.noreply.github.com> Date: Tue, 9 Apr 2024 14:49:38 +0300 Subject: Fix raw bidi text (#3885) --- tests/ref/layout/par-bidi.png | Bin 25731 -> 31441 bytes tests/typ/layout/par-bidi.typ | 10 ++++++++++ 2 files changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/ref/layout/par-bidi.png b/tests/ref/layout/par-bidi.png index 4750ccb8..af66a719 100644 Binary files a/tests/ref/layout/par-bidi.png and b/tests/ref/layout/par-bidi.png 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 @@ -54,6 +54,16 @@ Lריווח #h(1cm) R #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 -- cgit v1.2.3