unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Verticality and future of display engine and lines (bis) [Was: Re: RTL lines]
Date: Thu, 28 Oct 2021 09:53:21 +0300	[thread overview]
Message-ID: <83wnlxtzby.fsf@gnu.org> (raw)
In-Reply-To: <7275793.Xk2IM2Q3GM@galex-713.eu> (message from Alexandre Garreau on Wed, 27 Oct 2021 21:54:11 +0200)

> From: Alexandre Garreau <galex-713@galex-713.eu>
> Date: Wed, 27 Oct 2021 21:54:11 +0200
> 
> > So you are not only talking about a revolution in the display engine,
> > you are also talking about a revolution in scrolling commands.
> 
> That’s less than half a dozen of commands and the change is trivial, it’s 
> just level of abstraction.

I guess you are unaware, or perhaps forgot, that the display engine
itself scrolls the window when it finds that necessary.

> > I don't see any excess height of the lines, I think if you see that in
> > Emacs, you have a faulty font or something.
> 
> Did you really look at the screenshots? don’t you see all the blank 
> between the lines?

I'm talking about what I see in my Emacs session where I read your
email.  If any Emacs session displays that as you describe, that's
either a font configuration problem or some rendering bug that isn't
present in my build of Emacs.

> > Showing just one diacritic is TRT in this case.  Anything else is a
> > display bug.
> 
> So how do you display languages which *need* several diacritics?

Not every arbitrary combination of the diacritics on the same base
character is valid.  Lumping the same diacritic several times on the
same base character certainly isn't.  For valid combination of the
diacritics, we will display them the way the font and the shaping
engine (HarfBuzz) tell us to do.

IOW, find a real-life case with several diacritics on the same
character, and then let's talk.  The example you provided makes no
sense in real life, and the correct reaction of the Emacs display
engine to that nonsensical example is to show just one diacritic.

> > > Btw it would be nice if emacs supported such tweaking of
> > > directionality
> > > (although my friend wouldn’t benefit from it since he’s a user of vim,
> > > but I’m pretty sure that would be a point in advertising emacs to
> > > him).
> > You can have this with special bidirectional formatting control
> > characters, like LRO and RLO.  Emacs supports them.
> 
> Yes I know but I mean to have that systematically without having to 
> manually enter them at each script change (and avoiding to put them in a 
> possibly shared file with people with different opinions regarding 
> directionality)

Using those formatting controls _is_ the systematic way of changing
the text directionality.  Emacs is not a playground for arbitrarily
messing with the text layout, it follows relevant standards of
layout.  And in those standards, the _only_ way of controlling the
text directionality is by using directionality controls and
overrides.

You could, of course, go overboard and modify the basic properties of
the characters, which Emacs holds in char-tables.  But that is not
recommended, and I'm not even sure I understand why would you like to
do something like that.



  reply	other threads:[~2021-10-28  6:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-18 12:40 RTL lines Alexandre Garreau
2021-10-18 13:18 ` Eli Zaretskii
2021-10-27 19:26   ` Alexandre Garreau
2021-10-28  6:04     ` Eli Zaretskii
2021-10-28  6:08       ` Alexandre Garreau
2021-10-28  7:03         ` tomas
2021-10-28  8:59         ` Eli Zaretskii
2021-10-27 14:50 ` Verticality and future of display engine and lines (bis) [Was: Re: RTL lines] Alexandre Garreau
2021-10-27 16:18   ` Eli Zaretskii
2021-10-27 18:46     ` Alexandre Garreau
2021-10-27 18:58       ` Eli Zaretskii
2021-10-27 19:54         ` Alexandre Garreau
2021-10-28  6:53           ` Eli Zaretskii [this message]
2021-10-28  7:12             ` Alexandre Garreau
2021-10-28  9:23               ` Eli Zaretskii
2021-10-28 14:40                 ` Alexandre Garreau
2021-10-28 16:11                   ` Eli Zaretskii
2021-10-28  7:18             ` Alexandre Garreau
2021-10-28  9:28               ` Eli Zaretskii
2021-10-28 14:28                 ` Alexandre Garreau
2021-10-28 16:07                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83wnlxtzby.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).