[vte/wip/egmont/bidi: 13/21] shaping demo
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 13/21] shaping demo
- Date: Sat, 1 Jun 2019 12:59:42 +0000 (UTC)
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).[m
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.
[32ma<z n>x[m
[36ma<z א<ת[m
+[01mArabic shaping[m
+[32m╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶[m
+[36mالطرفية – استعمل سطر الأوامر[m
+
[01mBox[m
[32m┏━┓ a╔═╗z n┌─┐x ╭─╮[m
[36m┗━┛ a╚═╝z א┘─└ת ╰─╯[m
@@ -77,6 +83,10 @@ squares everywhere.
[32ma<z n>x[m
[36m[2 kא<ת a<z[1 k[m
+[01mArabic shaping[m
+ [32m╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶[m
+[36m[2 kالطرفية – استعمل سطر الأوامر[1 k[m
+
[01mOld Hungarian Rovásírás[m
(font at https://github.com/OldHungarian/old-hungarian-font)
[32mΛᛩHTΛᛩMↄH ↄ4TH4Λↄ¤ᛝ +ΛↃ[m
@@ -106,6 +116,10 @@ squares everywhere.
[32moi7 incididunt ut labore et dolore magna aliqua.[m
[36m[?2501hLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָׁלוֹם
incididunt ut labore et dolore magna aliqua.[?2501l[m
+[01mArabic shaping[m
+ [32m╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶[m
+[36m[?2501hالطرفية – استعمل سطر الأوامر[?2501l[m
+
[01mBox[m
[32m┏━┓ a╔═╗z n┌─┐x ╭─╮[m[?2501h
[36m┗━┛ a╚═╝z א┘─└ת ╰─╯[m[?2501l
@@ -130,6 +144,10 @@ squares everywhere.
[32moi7 incididunt ut labore et dolore magna aliqua.[m
[36m[2 k[?2501hLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָׁלוֹם
incididunt ut labore et dolore magna aliqua.[?2501l[1 k[m
+[01mArabic shaping[m
+ [32m╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶[m
+[36m[2 k[?2501hالطرفية – استعمل سطر الأوامر[?2501l[1 k[m
+
[01mBox[m
[32m╭─╮ a┌─┐z n╔═╗x ┏━┓[m[2 k[?2501h
[36m┛━┗ א╝═╚ת a└─┘z ╯─╰[m[?2501l[1 k
@@ -149,6 +167,10 @@ squares everywhere.
[32m⸤oi7w⸣ ⸤Hello⸣[m
[36m[8l⸤םוֹלשָׁ⸣ ⸤Hello⸣[8h[m
+[01mArabic shaping[m
+[32m╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶[m
+[36m[8lرماوألا رطس لمعتسا – ةيفرطلا[8h[m
+
[01mBox[m
[32m┏━┓ a╔═╗z n┌─┐x ╭─╮[m[8l
[36m┗━┛ a╚═╝z ת└─┘א ╰─╯[m[8h
@@ -172,6 +194,10 @@ squares everywhere.
[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
+[01mArabic shaping[m
+ [32m╶─╶╶╶─╶ ╶── ╶────╶ ╶ ╶──╶──╶[m
+[36m[8l[2 kالطرفية – استعمل سطر الأوامر[1 k[8h[m
+
[01mBox[m
[32m╭─╮ a┌─┐z n╔═╗x ┏━┓[m[8l[2 k
[36m┛━┗ א╝═╚ת z┘─└a ╯─╰[m[1 k[8h
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]