diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-18 12:25:24 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-18 12:37:22 +0200 |
| commit | a302105b9fda249755f6b1b27e010d32587f4946 (patch) | |
| tree | ffade71b45308f051938080ffaf263cc7721850b /tests/typ/text | |
| parent | db820ae9aa095cf47d4ae3a582467b01613c3711 (diff) | |
Fix duplicate RTL text and alignment + fr bugs
Diffstat (limited to 'tests/typ/text')
| -rw-r--r-- | tests/typ/text/bidi.typ | 4 | ||||
| -rw-r--r-- | tests/typ/text/repeat.typ | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/typ/text/bidi.typ b/tests/typ/text/bidi.typ index a180ad55..7058638a 100644 --- a/tests/typ/text/bidi.typ +++ b/tests/typ/text/bidi.typ @@ -46,6 +46,10 @@ Lריווח #h(1cm) R קרנפיםRh#image("../../res/rhino.png", height: 11pt)inoחיים --- +// Test whether L1 whitespace resetting destroys stuff. +الغالب #h(70pt) ن{" "}ة + +--- // Test setting a vertical direction. // Ref: false diff --git a/tests/typ/text/repeat.typ b/tests/typ/text/repeat.typ index 0036999a..13e99b51 100644 --- a/tests/typ/text/repeat.typ +++ b/tests/typ/text/repeat.typ @@ -1,6 +1,7 @@ // Test the `repeat` function. --- +// Test multiple repeats. #let sections = ( ("Introduction", 1), ("Approach", 1), @@ -13,3 +14,26 @@ #for section in sections [ #section(0) #repeat[.] #section(1) \ ] + +--- +// Test dots with RTL. +#set text(lang: "ar") +مقدمة #repeat[.] 15 + +--- +// Test empty repeat. +A #repeat[] B + +--- +// Test spaceless repeat. +A#repeat(rect(width: 2.5em, height: 1em))B + +--- +// Test single repeat in both directions. +A#repeat(rect(width: 6em, height: 0.7em))B + +#set par(align: center) +A#repeat(rect(width: 6em, height: 0.7em))B + +#set text(dir: rtl) +ريجين#repeat(rect(width: 4em, height: 0.7em))سون |
