[vte/wip/egmont/bidi: 16/21] test update



commit 4e4a4a98a011c14a5d18d01664485e379f78c293
Author: Egmont Koblinger <egmont gmail com>
Date:   Sat May 25 21:35:23 2019 +0200

    test update

 doc/bidi.txt | 156 ++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 91 insertions(+), 65 deletions(-)
---
diff --git a/doc/bidi.txt b/doc/bidi.txt
index ef7911bc..a7c86cbc 100644
--- a/doc/bidi.txt
+++ b/doc/bidi.txt
@@ -2,15 +2,21 @@
 ═════════════════════════╣ BiDi test – for 80 columns ╠═════════════════════════
                          ╚════════════════════════════╝
 
-In the text examples, the subsection title 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.
+Test cases are structured like this:
 
-All words, except for subsection titles under explicit modes, should show up
-in human readable order.
+Title (bold)
+Optional LTR explanation of the logical order (normal)
+Reference rendering using similarly looking LTR glyphs (green)
+Actual rendering, needs to match the reference rendering (cyan)
 
-At Arabic shaping demos, runs of connected letters are denoted.
+All words, except for the explanation of the logical order wherever it’s
+deliberately reversed, should show up in human readable order.
+
+Some test cases are marked as “should look broken”. This means that the
+overall look is not what humans are looking for; still, the actual rendering
+needs to match the reference rendering.
+
+At Arabic shaping tests, runs of connected letters are denoted.
 
 At box tests the reference rendering is upside down, so you should get nice
 squares everywhere.
@@ -18,21 +24,15 @@ squares everywhere.
                                 ┌──────────────┐
 ────────────────────────────────┤ Implicit LTR ├────────────────────────────────
                                 └──────────────┘
-⸤Hello⸣ ⸤Shlm⸣
-⸤Hello⸣ ⸤oi7w⸣
-⸤Hello⸣ ⸤שָׁלוֹם⸣
+LTR + RTL
+Hello1 ⸤Hello23⸣ Hello456 Shlm1 ⸤Shlm23⸣ Shlm456
+Hello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w
+Hello1 ⸤Hello23⸣ Hello456 שָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456
 
-Hello01 ⸤Hello02⸣ Hello03 Shlm01 ⸤Shlm02⸣ Shlm03
-Hello01 ⸤Hello02⸣ Hello03 03oi7w ⸢02oi7w⸥ 01oi7w
-Hello01 ⸤Hello02⸣ Hello03 שָׁלוֹם01 ⸤שָׁלוֹם02⸣ שָׁלוֹם03
-
-⸤Shlm⸣ ⸤Hello⸣
-⸤oi7w⸣ ⸤Hello⸣
-⸤שָׁלוֹם⸣ ⸤Hello⸣
-
-Shlm01 ⸤Shlm02⸣ Shlm03 Hello01 ⸤Hello02⸣ Hello03
-03oi7w ⸢02oi7w⸥ 01oi7w Hello01 ⸤Hello02⸣ Hello03
-שָׁלוֹם01 ⸤שָׁלוֹם02⸣ שָׁלוֹם03 Hello01 ⸤Hello02⸣ Hello03
+RTL + LTR
+Shlm1 ⸤Shlm23⸣ Shlm456 Hello1 ⸤Hello23⸣ Hello456
+456oi7w ⸢23oi7w⸥ 1oi7w Hello1 ⸤Hello23⸣ Hello456
+שָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456 Hello1 ⸤Hello23⸣ Hello456
 
 Paragraph wrapping at foreign word
 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor w
@@ -58,21 +58,15 @@ squares everywhere.
                                 ┌──────────────┐
 ────────────────────────────────┤ Implicit RTL ├────────────────────────────────
                                 └──────────────┘
-⸤Hello⸣ ⸤Shlm⸣
-                                                                  ⸢oi7w⸥ ⸢Hello⸥
-[2 k⸤Hello⸣ ⸤שָׁלוֹם⸣[1 k
+LTR + RTL
+Hello1 ⸤Hello23⸣ Hello456 Shlm1 ⸤Shlm23⸣ Shlm456
+                                456oi7w ⸢23oi7w⸥ 1oi7w Hello1 ⸤Hello23⸣ Hello456
+[2 kHello1 ⸤Hello23⸣ Hello456 שָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456[1 k
 
-Hello01 ⸤Hello02⸣ Hello03 Shlm01 ⸤Shlm02⸣ Shlm03
-                                03oi7w ⸢02oi7w⸥ 01oi7w Hello01 ⸤Hello02⸣ Hello03
-[2 kHello01 ⸤Hello02⸣ Hello03 שָׁלוֹם01 ⸤שָׁלוֹם02⸣ שָׁלוֹם03[1 k
-
-⸤Shlm⸣ ⸤Hello⸣
-                                                                  ⸢Hello⸥ ⸢oi7w⸥
-[2 k⸤שָׁלוֹם⸣ ⸤Hello⸣[1 k
-
-Shlm01 ⸤Shlm02⸣ Shlm03 Hello01 ⸤Hello02⸣ Hello03
-                                Hello01 ⸤Hello02⸣ Hello03 03oi7w ⸢02oi7w⸥ 01oi7w
-[2 kשָׁלוֹם01 ⸤שָׁלוֹם02⸣ שָׁלוֹם03 Hello01 ⸤Hello02⸣ Hello03[1 k
+RTL + LTR
+Shlm1 ⸤Shlm23⸣ Shlm456 Hello1 ⸤Hello23⸣ Hello456
+                                Hello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w
+[2 kשָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456 Hello1 ⸤Hello23⸣ Hello456[1 k
 
 Paragraph with wrong direction (should look broken)
 w Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
@@ -88,7 +82,7 @@ squares everywhere.
 [2 kالطرفية – استعمل سطر الأوامر[1 k
 
 Old Hungarian Rovásírás
-(font at https://github.com/OldHungarian/old-hungarian-font)
+(font at https://github.com/OldHungarian/old-hungarian-font)
                                                          ΛᛩHTΛᛩMↄH ↄ4TH4Λↄ¤ᛝ +ΛↃ
 [2 k𐲛𐳖𐳇 𐲏𐳪𐳙𐳍𐳀𐳢𐳐𐳀𐳙 𐲢𐳛𐳮𐳁𐳤𐳑𐳢𐳁𐳤[1 k
 
@@ -103,13 +97,15 @@ squares everywhere.
                         ┌──────────────────────────────┐
 ────────────────────────┤ Implicit auto (LTR fallback) ├────────────────────────
                         └──────────────────────────────┘
-⸤Hello⸣ ⸤Shlm⸣
-⸤Hello⸣ ⸤oi7w⸣
-[?2501h⸤Hello⸣ ⸤שָׁלוֹם⸣[?2501l
+LTR + RTL
+Hello1 ⸤Hello23⸣ Hello456 Shlm1 ⸤Shlm23⸣ Shlm456
+Hello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w
+[?2501hHello1 ⸤Hello23⸣ Hello456 שָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456[?2501l
 
-⸤Shlm⸣ ⸤Hello⸣
-                                                                  ⸢Hello⸥ ⸢oi7w⸥
-[?2501h⸤שָׁלוֹם⸣ ⸤Hello⸣[?2501l
+RTL + LTR
+Shlm1 ⸤Shlm23⸣ Shlm456 Hello1 ⸤Hello23⸣ Hello456
+                                Hello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w
+[?2501hשָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456 Hello1 ⸤Hello23⸣ Hello456[?2501l
 
 Paragraph wrapping at foreign word
 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor w
@@ -131,13 +127,15 @@ squares everywhere.
                         ┌──────────────────────────────┐
 ────────────────────────┤ Implicit auto (RTL fallback) ├────────────────────────
                         └──────────────────────────────┘
-⸤Hello⸣ ⸤Shlm⸣
-⸤Hello⸣ ⸤oi7w⸣
-[2 k[?2501h⸤Hello⸣ ⸤שָׁלוֹם⸣[?2501l[1 k
+LTR + RTL
+Hello1 ⸤Hello23⸣ Hello456 Shlm1 ⸤Shlm23⸣ Shlm456
+Hello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w
+[2 k[?2501hHello1 ⸤Hello23⸣ Hello456 שָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456[?2501l[1 k
 
-⸤Shlm⸣ ⸤Hello⸣
-                                                                  ⸢Hello⸥ ⸢oi7w⸥
-[2 k[?2501h⸤שָׁלוֹם⸣ ⸤Hello⸣[?2501l[1 k
+RTL + LTR
+Shlm1 ⸤Shlm23⸣ Shlm456 Hello1 ⸤Hello23⸣ Hello456
+                                Hello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w
+[2 k[?2501hשָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456 Hello1 ⸤Hello23⸣ Hello456[?2501l[1 k
 
 Paragraph wrapping at foreign word
 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor w
@@ -159,11 +157,13 @@ squares everywhere.
                                 ┌──────────────┐
 ────────────────────────────────┤ Explicit LTR ├────────────────────────────────
                                 └──────────────┘
-⸤Hello⸣ ⸤mlhS⸣
+LTR + fake RTL
+⸤Hello⸣ ⸤mlhS⸣
 ⸤Hello⸣ ⸤oi7w⸣
 ⸤Hello⸣ ⸤םוֹלשָׁ⸣
 
-⸤mlhS⸣ ⸤Hello⸣
+Fake RTL + RTL
+⸤mlhS⸣ ⸤Hello⸣
 ⸤oi7w⸣ ⸤Hello⸣
 ⸤םוֹלשָׁ⸣ ⸤Hello⸣
 
@@ -182,17 +182,19 @@ squares everywhere.
                                 ┌──────────────┐
 ────────────────────────────────┤ Explicit RTL ├────────────────────────────────
                                 └──────────────┘
-⸤olleH⸣ ⸤Shlm⸣
+Fake LTR + RTL
+⸤olleH⸣ ⸤Shlm⸣
                                                                   ⸢oi7w⸥ ⸢Hello⸥
 [2 k⸤olleH⸣ ⸤שָׁלוֹם⸣[1 k
 
-⸤Shlm⸣ ⸤olleH⸣
+RTL + fake LTR
+⸤Shlm⸣ ⸤olleH⸣
                                                                   ⸢Hello⸥ ⸢oi7w⸥
 [2 k⸤שָׁלוֹם⸣ ⸤olleH⸣[1 k
 
 Fullwidth characters with underlines
-                        [Lorem  ipsum  dolor  sit  [4:3mamet)
-[2 k[4:3m(tema  tis  rolod  muspi  meroL][1 k
+                        [Lorem  ipsum  dolor  sit  amet)
+[2 k(tema  tis  rolod  muspi  meroL][1 k
 
 Arabic shaping
                                                     ╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶
@@ -209,23 +211,47 @@ squares everywhere.
                                  ┌────────────┐
 ─────────────────────────────────┤ Misc tests ├─────────────────────────────────
                                  └────────────┘
-Attributes – bold ("lo S"), magenta ("hl")
-Hello oi7w
-Hello שָׁלוֹם
-
-Numbers are simply LTR – "jumps over 123 456 789 Shlm!"
-The quick brown fox jumps over the lazy dog The quick brown fox jumps over 123 4
-56 789 oi7w!
-The quick brown fox jumps over the lazy dog The quick brown fox jumps over 123 456 789 שָׁלוֹם!
-
-Numbers are inside RTL – "jumps Shlm 123 456 789 Shlm!"
+Numbers inside RTL, across linebreak
+jumps Shalom 123 456 789 Shalom!
 The quick brown fox jumps over the lazy dog The quick brown fox jumps 4 123 oi7w
 oi7w 789 56!
 The quick brown fox jumps over the lazy dog The quick brown fox jumps שָׁלוֹם 123 456 789 שָׁלוֹם!
 
-Mirroring across linebreak – "jumps Shlm <[<[<[<[ Shlm!"
+Mirroring across linebreak
+jumps Shalom <[<[<[<[ Shalom!
 The quick brown fox jumps over the lazy dog The quick brown fox jumps >]>]> oi7w
 oi7w ]>]!
 The quick brown fox jumps over the lazy dog The quick brown fox jumps שָׁלוֹם <[<[<[<[ שָׁלוֹם!
 
+Attributes
+Hello1 Shlm23 Shlm456 Hello7890
+Hello1 456oi7w 23oi7w Hello7890
+Hello1 שָׁלוֹם23 שָׁלוֹם456 Hello7890
+
+Link autodetection, overall LTR
+https!//he.wikipedia.org/wiki/Front_page
+https!//he.wikipedia.org/wiki/'wxᒣ_tiny
+https://he.wikipedia.org/wiki/עמוד_ראשי
+
+Link autodetection, overall LTR (should look broken)
+https!//he.wikipedia.org/wiki/Front_page Shalom
+https!//he.wikipedia.org/wiki/oi7w 'wxᒣ_tiny
+https://he.wikipedia.org/wiki/עמוד_ראשי שָׁלוֹם
+
+Link autodetection, overall RTL
+Shalom1 http!//example.com/test Shalom23
+                                            23oi7w http!//example.com/test 1oi7w
+[2 kשָׁלוֹם1 http://example.com/test שָׁלוֹם23[1 k
+
+Link autodetection, overall RTL (should look broken)
+Shalom1 http!//example.com/test/ Shalom23
+                                           23oi7w /http!//example.com/test 1oi7w
+[2 kשָׁלוֹם1 http://example.com/test/ שָׁלוֹם23[1 k
+
+Explicit hyperlinks
+Hello1 Shlm23 Shlm456 Hello7890
+Hello1 456oi7w 23oi7w Hello7890
+Hello1 456oi7w 23oi7w Hello7890
+]8;;http://example.com/hello123\Hello1 שָׁלוֹם23]8;;\ 
]8;;http://example.com/hello4567890\שָׁלוֹם456 Hello7890]8;;\
+
 ────────────────────────────────────────────────────────────────────────────────


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]