[vte/wip/egmont/bidi: 103/107] test update
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 103/107] test update
- Date: Thu, 30 May 2019 13:50:11 +0000 (UTC)
commit 06134510e73db151dcc07b518bf5ecc9bfbe7e19
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 ╠═════════════════════════
╚════════════════════════════╝
-[01mIn the text examples, the subsection title sometimes shows the wire order,
-transcribed to English (“Shalom” abbreviated to occupy the same width).[m
-[32mThis is followed by the reference rendering, using similar LTR glyphs.[m
-[36mFinally the actual rendering which should match the line above.[m
+Test cases are structured like this:
-All words, except for subsection titles under explicit modes, should show up
-in human readable order.
+[01mTitle (bold)[m
+Optional LTR explanation of the logical order (normal)
+[32mReference rendering using similarly looking LTR glyphs (green)[m
+[36mActual rendering, needs to match the reference rendering (cyan)[m
-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 ├────────────────────────────────
└──────────────┘
-[01m⸤Hello⸣ ⸤Shlm⸣[m
-[32m⸤Hello⸣ ⸤oi7w⸣[m
-[36m⸤Hello⸣ ⸤שָׁלוֹם⸣[m
+[01mLTR + RTL[m
+[00mHello1 ⸤Hello23⸣ Hello456 Shlm1 ⸤Shlm23⸣ Shlm456[m
+[32mHello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w[m
+[36mHello1 ⸤Hello23⸣ Hello456 שָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456[m
-[01mHello01 ⸤Hello02⸣ Hello03 Shlm01 ⸤Shlm02⸣ Shlm03[m
-[32mHello01 ⸤Hello02⸣ Hello03 03oi7w ⸢02oi7w⸥ 01oi7w[m
-[36mHello01 ⸤Hello02⸣ Hello03 שָׁלוֹם01 ⸤שָׁלוֹם02⸣ שָׁלוֹם03[m
-
-[01m⸤Shlm⸣ ⸤Hello⸣[m
-[32m⸤oi7w⸣ ⸤Hello⸣[m
-[36m⸤שָׁלוֹם⸣ ⸤Hello⸣[m
-
-[01mShlm01 ⸤Shlm02⸣ Shlm03 Hello01 ⸤Hello02⸣ Hello03[m
-[32m03oi7w ⸢02oi7w⸥ 01oi7w Hello01 ⸤Hello02⸣ Hello03[m
-[36mשָׁלוֹם01 ⸤שָׁלוֹם02⸣ שָׁלוֹם03 Hello01 ⸤Hello02⸣ Hello03[m
+[01mRTL + LTR[m
+[00mShlm1 ⸤Shlm23⸣ Shlm456 Hello1 ⸤Hello23⸣ Hello456[m
+[32m456oi7w ⸢23oi7w⸥ 1oi7w Hello1 ⸤Hello23⸣ Hello456[m
+[36mשָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456 Hello1 ⸤Hello23⸣ Hello456[m
[01mParagraph wrapping at foreign word[m
[32mLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor w[m
@@ -58,21 +58,15 @@ squares everywhere.
┌──────────────┐
────────────────────────────────┤ Implicit RTL ├────────────────────────────────
└──────────────┘
-[01m⸤Hello⸣ ⸤Shlm⸣[m
- [32m⸢oi7w⸥ ⸢Hello⸥[m
-[36m[2 k⸤Hello⸣ ⸤שָׁלוֹם⸣[1 k[m
+[01mLTR + RTL[m
+[00mHello1 ⸤Hello23⸣ Hello456 Shlm1 ⸤Shlm23⸣ Shlm456[m
+ [32m456oi7w ⸢23oi7w⸥ 1oi7w Hello1 ⸤Hello23⸣ Hello456[m
+[36m[2 kHello1 ⸤Hello23⸣ Hello456 שָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456[1 k[m
-[01mHello01 ⸤Hello02⸣ Hello03 Shlm01 ⸤Shlm02⸣ Shlm03[m
- [32m03oi7w ⸢02oi7w⸥ 01oi7w Hello01 ⸤Hello02⸣ Hello03[m
-[36m[2 kHello01 ⸤Hello02⸣ Hello03 שָׁלוֹם01 ⸤שָׁלוֹם02⸣ שָׁלוֹם03[1 k[m
-
-[01m⸤Shlm⸣ ⸤Hello⸣[m
- [32m⸢Hello⸥ ⸢oi7w⸥[m
-[36m[2 k⸤שָׁלוֹם⸣ ⸤Hello⸣[1 k[m
-
-[01mShlm01 ⸤Shlm02⸣ Shlm03 Hello01 ⸤Hello02⸣ Hello03[m
- [32mHello01 ⸤Hello02⸣ Hello03 03oi7w ⸢02oi7w⸥ 01oi7w[m
-[36m[2 kשָׁלוֹם01 ⸤שָׁלוֹם02⸣ שָׁלוֹם03 Hello01 ⸤Hello02⸣ Hello03[1 k[m
+[01mRTL + LTR[m
+[00mShlm1 ⸤Shlm23⸣ Shlm456 Hello1 ⸤Hello23⸣ Hello456[m
+ [32mHello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w[m
+[36m[2 kשָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456 Hello1 ⸤Hello23⸣ Hello456[1 k[m
[01mParagraph with wrong direction (should look broken)[m
[32mw Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor[m
@@ -88,7 +82,7 @@ squares everywhere.
[36m[2 kالطرفية – استعمل سطر الأوامر[1 k[m
[01mOld Hungarian Rovásírás[m
-(font at https://github.com/OldHungarian/old-hungarian-font)
+[00m(font at https://github.com/OldHungarian/old-hungarian-font)[m
[32mΛᛩHTΛᛩMↄH ↄ4TH4Λↄ¤ᛝ +ΛↃ[m
[36m[2 k𐲛𐳖𐳇 𐲏𐳪𐳙𐳍𐳀𐳢𐳐𐳀𐳙 𐲢𐳛𐳮𐳁𐳤𐳑𐳢𐳁𐳤[1 k[m
@@ -103,13 +97,15 @@ squares everywhere.
┌──────────────────────────────┐
────────────────────────┤ Implicit auto (LTR fallback) ├────────────────────────
└──────────────────────────────┘
-[01m⸤Hello⸣ ⸤Shlm⸣[m
-[32m⸤Hello⸣ ⸤oi7w⸣[m
-[36m[?2501h⸤Hello⸣ ⸤שָׁלוֹם⸣[?2501l[m
+[01mLTR + RTL[m
+[00mHello1 ⸤Hello23⸣ Hello456 Shlm1 ⸤Shlm23⸣ Shlm456[m
+[32mHello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w[m
+[36m[?2501hHello1 ⸤Hello23⸣ Hello456 שָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456[?2501l[m
-[01m⸤Shlm⸣ ⸤Hello⸣[m
- [32m⸢Hello⸥ ⸢oi7w⸥[m
-[36m[?2501h⸤שָׁלוֹם⸣ ⸤Hello⸣[?2501l[m
+[01mRTL + LTR[m
+[00mShlm1 ⸤Shlm23⸣ Shlm456 Hello1 ⸤Hello23⸣ Hello456[m
+ [32mHello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w[m
+[36m[?2501hשָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456 Hello1 ⸤Hello23⸣ Hello456[?2501l[m
[01mParagraph wrapping at foreign word[m
[32mLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor w[m
@@ -131,13 +127,15 @@ squares everywhere.
┌──────────────────────────────┐
────────────────────────┤ Implicit auto (RTL fallback) ├────────────────────────
└──────────────────────────────┘
-[01m⸤Hello⸣ ⸤Shlm⸣[m
-[32m⸤Hello⸣ ⸤oi7w⸣[m
-[36m[2 k[?2501h⸤Hello⸣ ⸤שָׁלוֹם⸣[?2501l[1 k[m
+[01mLTR + RTL[m
+[00mHello1 ⸤Hello23⸣ Hello456 Shlm1 ⸤Shlm23⸣ Shlm456[m
+[32mHello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w[m
+[36m[2 k[?2501hHello1 ⸤Hello23⸣ Hello456 שָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456[?2501l[1 k[m
-[01m⸤Shlm⸣ ⸤Hello⸣[m
- [32m⸢Hello⸥ ⸢oi7w⸥[m
-[36m[2 k[?2501h⸤שָׁלוֹם⸣ ⸤Hello⸣[?2501l[1 k[m
+[01mRTL + LTR[m
+[00mShlm1 ⸤Shlm23⸣ Shlm456 Hello1 ⸤Hello23⸣ Hello456[m
+ [32mHello1 ⸤Hello23⸣ Hello456 456oi7w ⸢23oi7w⸥ 1oi7w[m
+[36m[2 k[?2501hשָׁלוֹם1 ⸤שָׁלוֹם23⸣ שָׁלוֹם456 Hello1 ⸤Hello23⸣ Hello456[?2501l[1 k[m
[01mParagraph wrapping at foreign word[m
[32mLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor w[m
@@ -159,11 +157,13 @@ squares everywhere.
┌──────────────┐
────────────────────────────────┤ Explicit LTR ├────────────────────────────────
└──────────────┘
-[01m⸤Hello⸣ ⸤mlhS⸣[m
+[01mLTR + fake RTL[m
+[00m⸤Hello⸣ ⸤mlhS⸣[m
[32m⸤Hello⸣ ⸤oi7w⸣[m
[36m[8l⸤Hello⸣ ⸤םוֹלשָׁ⸣[8h[m
-[01m⸤mlhS⸣ ⸤Hello⸣[m
+[01mFake RTL + RTL[m
+[00m⸤mlhS⸣ ⸤Hello⸣[m
[32m⸤oi7w⸣ ⸤Hello⸣[m
[36m[8l⸤םוֹלשָׁ⸣ ⸤Hello⸣[8h[m
@@ -182,17 +182,19 @@ squares everywhere.
┌──────────────┐
────────────────────────────────┤ Explicit RTL ├────────────────────────────────
└──────────────┘
-[01m⸤olleH⸣ ⸤Shlm⸣[m
+[01mFake LTR + RTL[m
+[00m⸤olleH⸣ ⸤Shlm⸣[m
[32m⸢oi7w⸥ ⸢Hello⸥[m
[36m[8l[2 k⸤olleH⸣ ⸤שָׁלוֹם⸣[1 k[8h[m
-[01m⸤Shlm⸣ ⸤olleH⸣[m
+[01mRTL + fake LTR[m
+[00m⸤Shlm⸣ ⸤olleH⸣[m
[32m⸢Hello⸥ ⸢oi7w⸥[m
[36m[8l[2 k⸤שָׁלוֹם⸣ ⸤olleH⸣[1 k[8h[m
[01mFullwidth characters with underlines[m
- [32m[4m[Lorem[24m ipsum dolor sit [4:3mamet)[m
-[36m[8l[2 k[4:3m(tema[24m tis rolod muspi [4mmeroL][1 k[8h[m
+ [32m[Lorem [4mipsum[24m dolor [21msit[24m amet)[m
+[36m[8l[2 k(tema [21mtis[24m rolod [4mmuspi[24m meroL][1 k[8h[m
[01mArabic shaping[m
[32m╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶[m
@@ -209,23 +211,47 @@ squares everywhere.
┌────────────┐
─────────────────────────────────┤ Misc tests ├─────────────────────────────────
└────────────┘
-[01mAttributes – bold ("lo S"), magenta ("hl")[m
-[32mHel[1mlo[0;32m o[35mi7[32;1mw[m
-[36mHel[1mlo שָׁ[0;35mלו[36mֹם[m
-
-[01mNumbers are simply LTR – "jumps over 123 456 789 Shlm!"[m
-[32mThe quick brown fox jumps over the lazy dog The quick brown fox jumps over 123 4[m
-[32m56 789 oi7w![m
-[36mThe quick brown fox jumps over the lazy dog The quick brown fox jumps over 123 456 789 שָׁלוֹם![m
-
-[01mNumbers are inside RTL – "jumps Shlm 123 456 789 Shlm!"[m
+[01mNumbers inside RTL, across linebreak[m
+[00mjumps Shalom 123 456 789 Shalom![m
[32mThe quick brown fox jumps over the lazy dog The quick brown fox jumps 4 123 oi7w[m
[32moi7w 789 56![m
[36mThe quick brown fox jumps over the lazy dog The quick brown fox jumps שָׁלוֹם 123 456 789 שָׁלוֹם![m
-[01mMirroring across linebreak – "jumps Shlm <[<[<[<[ Shlm!"[m
+[01mMirroring across linebreak[m
+[00mjumps Shalom <[<[<[<[ Shalom![m
[32mThe quick brown fox jumps over the lazy dog The quick brown fox jumps >]>]> oi7w[m
[32moi7w ]>]![m
[36mThe quick brown fox jumps over the lazy dog The quick brown fox jumps שָׁלוֹם <[<[<[<[ שָׁלוֹם![m
+[01mAttributes[m
+[00mHel[4mlo1 Shlm2[24m3 Shl[21mm456 H[24mello7890[m
+[32mHel[4mlo1 [24m[21m456o[24mi7w [4m2[24m3[4moi7w[24m[21m H[24mello7890[m
+[36mHel[4mlo1 שָׁלוֹם2[24m3 שָׁלוֹ[21mם456 H[24mello7890[m
+
+[01mLink autodetection, overall LTR[m
+[00mhttps!//he.wikipedia.org/wiki/Front_page[m
+[32m[4mhttps!//he.wikipedia.org/wiki/'wxᒣ_tiny[24m[m
+[36mhttps://he.wikipedia.org/wiki/עמוד_ראשי[m
+
+[01mLink autodetection, overall LTR (should look broken)[m
+[00mhttps!//he.wikipedia.org/wiki/Front_page Shalom[m
+[32m[4mhttps!//he.wikipedia.org/wiki/[24moi7w [4m'wxᒣ_tiny[24m[m
+[36mhttps://he.wikipedia.org/wiki/עמוד_ראשי שָׁלוֹם[m
+
+[01mLink autodetection, overall RTL[m
+[00mShalom1 http!//example.com/test Shalom23[m
+[32m 23oi7w [4mhttp!//example.com/test[24m 1oi7w[m
+[36m[2 kשָׁלוֹם1 http://example.com/test שָׁלוֹם23[1 k[m
+
+[01mLink autodetection, overall RTL (should look broken)[m
+[00mShalom1 http!//example.com/test/ Shalom23[m
+[32m 23oi7w [4m/http!//example.com/test[24m 1oi7w[m
+[36m[2 kשָׁלוֹם1 http://example.com/test/ שָׁלוֹם23[1 k[m
+
+[01mExplicit hyperlinks[m
+[00m[4mHello1 Shlm23[24m [4mShlm456 Hello7890[24m[m
+[32m[4mHello1 [24m456oi7w [4m23oi7w[24m Hello7890[m
+[32mHello1 [4m456oi7w[24m 23oi7w[4m Hello7890[24m[m
+[36m]8;;http://example.com/hello123\Hello1 שָׁלוֹם23]8;;\
]8;;http://example.com/hello4567890\שָׁלוֹם456 Hello7890]8;;\[m
+
────────────────────────────────────────────────────────────────────────────────
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]