[vte/wip/egmont/bidi: 13/21] shaping demo



commit 1632856ee6cf20317cc8553f014ebcf596e8ea63
Author: Egmont Koblinger <egmont gmail com>
Date:   Fri May 24 16:46:29 2019 +0200

    shaping demo

 doc/bidi.txt | 26 ++++++++++++++++++++++++++
 src/bidi.cc  |  2 +-
 2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/doc/bidi.txt b/doc/bidi.txt
index a8145824..ef7911bc 100644
--- a/doc/bidi.txt
+++ b/doc/bidi.txt
@@ -10,6 +10,8 @@ transcribed to English (“Shalom” abbreviated to occupy the same width).
 All words, except for subsection titles under explicit modes, should show up
 in human readable order.
 
+At Arabic shaping demos, runs of connected letters are denoted.
+
 At box tests the reference rendering is upside down, so you should get nice
 squares everywhere.
 
@@ -41,6 +43,10 @@ squares everywhere.
 a<z  n>x
 a<z  א<ת
 
+Arabic shaping
+╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶
+الطرفية – استعمل سطر الأوامر
+
 Box
 ┏━┓   a╔═╗z  n┌─┐x   ╭─╮
 ┗━┛   a╚═╝z  א┘─└ת   ╰─╯
@@ -77,6 +83,10 @@ squares everywhere.
                                                                       a<z  n>x
 [2 kא<ת  a<z[1 k
 
+Arabic shaping
+                                                    ╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶
+[2 kالطرفية – استعمل سطر الأوامر[1 k
+
 Old Hungarian Rovásírás
 (font at https://github.com/OldHungarian/old-hungarian-font)
                                                          ΛᛩHTΛᛩMↄH ↄ4TH4Λↄ¤ᛝ +ΛↃ
@@ -106,6 +116,10 @@ squares everywhere.
 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
 
+Arabic shaping
+                                                    ╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶
+[?2501hالطرفية – استعمل سطر الأوامر[?2501l
+
 Box
 ┏━┓   a╔═╗z  n┌─┐x   ╭─╮[?2501h
 ┗━┛   a╚═╝z  א┘─└ת   ╰─╯[?2501l
@@ -130,6 +144,10 @@ squares everywhere.
 oi7 incididunt ut labore et dolore magna aliqua.
 [2 k[?2501hLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָׁלוֹם 
incididunt ut labore et dolore magna aliqua.[?2501l[1 k
 
+Arabic shaping
+                                                    ╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶
+[2 k[?2501hالطرفية – استعمل سطر الأوامر[?2501l[1 k
+
 Box
                                                         ╭─╮   a┌─┐z  n╔═╗x   ┏━┓[2 k[?2501h
 ┛━┗   א╝═╚ת  a└─┘z   ╯─╰[?2501l[1 k
@@ -149,6 +167,10 @@ squares everywhere.
 ⸤oi7w⸣ ⸤Hello⸣
 ⸤םוֹלשָׁ⸣ ⸤Hello⸣
 
+Arabic shaping
+╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶
+رماوألا رطس لمعتسا – ةيفرطلا
+
 Box
 ┏━┓   a╔═╗z  n┌─┐x   ╭─╮
 ┗━┛   a╚═╝z  ת└─┘א   ╰─╯
@@ -172,6 +194,10 @@ squares everywhere.
                         [Lorem  ipsum  dolor  sit  [4:3mamet)
 [2 k[4:3m(tema  tis  rolod  muspi  meroL][1 k
 
+Arabic shaping
+                                                    ╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶
+[2 kالطرفية – استعمل سطر الأوامر[1 k
+
 Box
                                                         ╭─╮   a┌─┐z  n╔═╗x   ┏━┓[2 k
 ┛━┗   א╝═╚ת  z┘─└a   ╯─╰[1 k
diff --git a/src/bidi.cc b/src/bidi.cc
index ded325aa..71764833 100644
--- a/src/bidi.cc
+++ b/src/bidi.cc
@@ -368,7 +368,7 @@ void BidiRunner::paragraph(vte::grid::row_t start, vte::grid::row_t end)
         }
 #endif
 
-        explicit_paragraph(start, end, row_data->attr.bidi_flags & VTE_BIDI_RTL, false);
+        explicit_paragraph(start, end, row_data->attr.bidi_flags & VTE_BIDI_RTL, true);
 }
 
 /* Set up the mapping according to explicit mode, for all the lines


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