[vte/wip/egmont/bidi: 22/78] add test file (doc/bidi.txt)
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 22/78] add test file (doc/bidi.txt)
- Date: Fri, 7 Dec 2018 12:34:59 +0000 (UTC)
commit 2e10f6dded3f148eac10b1ed1b417f4514a63579
Author: Egmont Koblinger <egmont gmail com>
Date: Thu Aug 23 14:04:54 2018 +0200
add test file (doc/bidi.txt)
doc/bidi.txt | 165 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 165 insertions(+)
---
diff --git a/doc/bidi.txt b/doc/bidi.txt
new file mode 100644
index 00000000..d8b87ca4
--- /dev/null
+++ b/doc/bidi.txt
@@ -0,0 +1,165 @@
+ ╔════════════════════════════════════════════╗
+═════════════════╣ BiDi test – should be cat’ed at 80 columns ╠═════════════════
+ ╚════════════════════════════════════════════╝
+
+In text examples, the subsection title (bold) sometimes shows the wire order,
+transcribed to English (“Shalom” abbreviated to occupy the same width).
+This is followed by the reference rendering, using similar LTR glyphs.
+Finally the actual rendering which should match the line above.
+
+All words, except for subsection titles under explicit modes, should show up
+in human readable order.
+
+Boxes should all show up nicely.
+
+ ┌──────────────┐
+────────────────────────────────┤ Implicit LTR ├────────────────────────────────
+ └──────────────┘
+[1m⸤Hello⸣ ⸤Shlm⸣[22m
+⸤Hello⸣ ⸤oi7w⸣
+⸤Hello⸣ ⸤שָׁלוֹם⸣
+
+[1mHello1 ⸤Hello2⸣ Hello3 Shlm1 ⸤Shlm2⸣ Shlm3[22m
+Hello1 ⸤Hello2⸣ Hello3 3oi7w ⸢2oi7w⸥ 1oi7w
+Hello1 ⸤Hello2⸣ Hello3 שָׁלוֹם1 ⸤שָׁלוֹם2⸣ שָׁלוֹם3
+
+[1m⸤Shlm⸣ ⸤Hello⸣[22m
+⸤oi7w⸣ ⸤Hello⸣
+⸤שָׁלוֹם⸣ ⸤Hello⸣
+
+[1mShlm1 ⸤Shlm2⸣ Shlm3 Hello1 ⸤Hello2⸣ Hello3[22m
+3oi7w ⸢2oi7w⸥ 1oi7w Hello1 ⸤Hello2⸣ Hello3
+שָׁלוֹם1 ⸤שָׁלוֹם2⸣ שָׁלוֹם3 Hello1 ⸤Hello2⸣ Hello3
+
+[1mParagraph wrapping at foreign word[22m
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor w
+oi7 incididunt ut labore et dolore magna aliqua.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָׁלוֹם incididunt ut labore
et dolore magna aliqua.
+
+[1mBox[22m
+┏━┓╔═╗┌─┐╭─╮
+┗━┛╚═╝└─┘╰─╯
+
+[1mBox in mirrored mode[22m
+[?2500h┏━┓╔═╗┌─┐╭─╮
+┗━┛╚═╝└─┘╰─╯[?2500l
+
+ ┌──────────────┐
+────────────────────────────────┤ Implicit RTL ├────────────────────────────────
+ └──────────────┘
+[1m⸤Hello⸣ ⸤Shlm⸣[22m
+ ⸢oi7w⸥ ⸢Hello⸥
+[3 S⸤Hello⸣ ⸤שָׁלוֹם⸣[0 S
+
+[1mHello1 ⸤Hello2⸣ Hello3 Shlm1 ⸤Shlm2⸣ Shlm3[22m
+ 3oi7w ⸢2oi7w⸥ 1oi7w Hello1 ⸤Hello2⸣ Hello3
+[3 SHello1 ⸤Hello2⸣ Hello3 שָׁלוֹם1 ⸤שָׁלוֹם2⸣ שָׁלוֹם3[0 S
+
+[1m⸤Shlm⸣ ⸤Hello⸣[22m
+ ⸢Hello⸥ ⸢oi7w⸥
+[3 S⸤שָׁלוֹם⸣ ⸤Hello⸣[0 S
+
+[1mShlm1 ⸤Shlm2⸣ Shlm3 Hello1 ⸤Hello2⸣ Hello3[22m
+ Hello1 ⸤Hello2⸣ Hello3 3oi7w ⸢2oi7w⸥ 1oi7w
+[3 Sשָׁלוֹם1 ⸤שָׁלוֹם2⸣ שָׁלוֹם3 Hello1 ⸤Hello2⸣ Hello3[0 S
+
+[1mParagraph with wrong direction (should look broken)[22m
+w Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
+ .incididunt ut labore et dolore magna aliqua oi7
+[3 SLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָׁלוֹם incididunt ut
labore et dolore magna aliqua.[0 S
+
+[1mBox[22m
+[3 S┓━┏╗═╔┐─┌╮─╭
+┛━┗╝═╚┘─└╯─╰[0 S
+
+[1mBox in mirrored mode[22m
+[3 S[?2500h┏━┓╔═╗┌─┐╭─╮
+┗━┛╚═╝└─┘╰─╯[?2500l[0 S
+
+ ┌──────────────────────────────┐
+────────────────────────┤ Implicit auto (LTR fallback) ├────────────────────────
+ └──────────────────────────────┘
+[1m⸤Hello⸣ ⸤Shlm⸣[22m
+⸤Hello⸣ ⸤oi7w⸣
+[?2501h⸤Hello⸣ ⸤שָׁלוֹם⸣[?2501l
+
+[1m⸤Shlm⸣ ⸤Hello⸣[22m
+ ⸢Hello⸥ ⸢oi7w⸥
+[?2501h⸤שָׁלוֹם⸣ ⸤Hello⸣[?2501l
+
+[1mParagraph wrapping at foreign word[22m
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor w
+oi7 incididunt ut labore et dolore magna aliqua.
+[?2501hLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָׁלוֹם incididunt ut
labore et dolore magna aliqua.[?2501l
+
+[1mBox[22m
+[?2501h┏━┓╔═╗┌─┐╭─╮
+┗━┛╚═╝└─┘╰─╯[?2501l
+
+[1mBox in mirrored mode[22m
+[?2501h[?2500h┏━┓╔═╗┌─┐╭─╮
+┗━┛╚═╝└─┘╰─╯[?2500l[?2501l
+
+ ┌──────────────────────────────┐
+────────────────────────┤ Implicit auto (RTL fallback) ├────────────────────────
+ └──────────────────────────────┘
+[1m⸤Hello⸣ ⸤Shlm⸣[22m
+⸤Hello⸣ ⸤oi7w⸣
+[3 S[?2501h⸤Hello⸣ ⸤שָׁלוֹם⸣[?2501l[0 S
+
+[1m⸤Shlm⸣ ⸤Hello⸣[22m
+ ⸢Hello⸥ ⸢oi7w⸥
+[3 S[?2501h⸤שָׁלוֹם⸣ ⸤Hello⸣[?2501l[0 S
+
+[1mParagraph wrapping at foreign word[22m
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor w
+oi7 incididunt ut labore et dolore magna aliqua.
+[3 S[?2501hLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָׁלוֹם
incididunt ut labore et dolore magna aliqua.[?2501l[0 S
+
+[1mBox[22m
+[3 S[?2501h┓━┏╗═╔┐─┌╮─╭
+┛━┗╝═╚┘─└╯─╰[?2501l[0 S
+
+[1mBox in mirrored mode[22m
+[3 S[?2501h[?2500h┏━┓╔═╗┌─┐╭─╮
+┗━┛╚═╝└─┘╰─╯[?2500l[?2501l[0 S
+
+ ┌──────────────┐
+────────────────────────────────┤ Explicit LTR ├────────────────────────────────
+ └──────────────┘
+[1m⸤Hello⸣ ⸤mlhS⸣[22m
+⸤Hello⸣ ⸤oi7w⸣
+[8l⸤Hello⸣ ⸤םוֹלשָׁ⸣[8h
+
+[1m⸤mlhS⸣ ⸤Hello⸣[22m
+⸤oi7w⸣ ⸤Hello⸣
+[8l⸤םוֹלשָׁ⸣ ⸤Hello⸣[8h
+
+[1mBox[22m
+[8l┏━┓╔═╗┌─┐╭─╮
+┗━┛╚═╝└─┘╰─╯[8h
+
+[1mBox in mirrored mode[22m
+[8l[?2500h┏━┓╔═╗┌─┐╭─╮
+┗━┛╚═╝└─┘╰─╯[?2500l[8h
+
+ ┌──────────────┐
+────────────────────────────────┤ Explicit RTL ├────────────────────────────────
+ └──────────────┘
+[1m⸤olleH⸣ ⸤Shlm⸣[22m
+ ⸢oi7w⸥ ⸢Hello⸥
+[8l[3 S⸤olleH⸣ ⸤שָׁלוֹם⸣[0 S[8h
+
+[1m⸤Shlm⸣ ⸤olleH⸣[22m
+ ⸢Hello⸥ ⸢oi7w⸥
+[8l[3 S⸤שָׁלוֹם⸣ ⸤olleH⸣[0 S[8h
+
+[1mBox[22m
+[8l[3 S┓━┏╗═╔┐─┌╮─╭
+┛━┗╝═╚┘─└╯─╰[0 S[8h
+
+[1mBox in mirrored mode[22m
+[8l[3 S[?2500h┏━┓╔═╗┌─┐╭─╮
+┗━┛╚═╝└─┘╰─╯[?2500l[0 S[8h
+
+────────────────────────────────────────────────────────────────────────────────
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]