Hi Egmond.

Thank you for the info.

About lam-alif: Yes, you are right. It indeed is displayed like a U in
my screenshot, although it should have been similar to a "y", but as you
said, it is not that terribly bad and can be read without an issue.
Perhaps we can improve it in a future work!

About RTL bug:

I have searched and found the following file from you regarding the
modes you described:
https://github.com/skirino/vte/blob/master/perf/bidi.sh

And I tried the following modes:
- alias ltr='printf "\e[1 k"'
- alias rtl='printf "\e[2 k"'

I attached images for how they look like (Also a 3rd screenshot for
autodetect again).

The RTL base one would have been good if the user is expected to write
everything 100% in Arabic. However that's not the case; normal commands
are written in English but the output of the commands may be Arabic, and
some strings may not be translated. You can see how the Shell
interrupter is displayed totally missed up if you write one line in
English, and the other line in Arabic. In fact, if you try to write in
English using RTL base, then you will notice that the shell interrupter
is moving to the left side with you as you write! :D

I think it would be good if someone developed a command line based tool
in Arabic/RTL languages, then he/she can opt for using this mode by
default (because their application is 100% for RTL-based audience), but
in the normal average terminal it would be a horrible user experience.

The LTR one was just like the default situation in VTE. The text is not
displayed good if it was Arabic and the line gets messed up.

Please tell me if you need more tests or experiments, I would be happy
to provide them.

Yes, of course we can also add Urdu and Persian and other RTL-based
languages to the list from $locale, it was just a simple example.

Thank you again Egmont for taking time to do all this work and respond here.
Best.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/2002290

Title:
  Poor Arabic rendering in VTE

Status in gnome-terminal package in Ubuntu:
  New
Status in vte2.91 package in Ubuntu:
  New

Bug description:
  VTE has a number of issues when it comes to rendering Arabic letters
  in the terminal, which could affect a number of languages (Arabic,
  Urdu, Persian... etc).

  Bug 1: Any Arabic word in any VTE-based terminal is choppily displayed
  with spaces between its letters, making readability hard and sometimes
  not possible. Sometimes the letters are crushed together very closely
  making reading impossible too.

  Bug 2: If a non-Arabic text and an Arabic text are displayed together
  in the same line, then the entire line will be missed up and you won't
  be able to understand what is being said.

  Both of these bugs can be seen from the image I attached.

  I reported both of these bugs together because it's unlikely they can
  be fixed separately, probably they are related to each other.

  Problem can be seen in any VTE-based terminal. Here I am using GNOME
  Terminal 3.44.0 on Ubuntu 22.04, but it can be seen in any Ubuntu
  version and in any terminal version as well (it has been there since
  forever).

  I reported the bug here instead of upstream because that's what they
  said at the page: https://wiki.gnome.org/Apps/Terminal/ReportingBugs,
  but this bug is not related to Ubuntu only; it happens on all Linux
  distributions.

  Happy to provide any information you need, or any do tests or
  experiments.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/2002290/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to