From: Eli Zaretskii <eliz@gnu.org>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: Bidirectional text in tooltips
Date: Sat, 06 Nov 2010 19:46:35 +0200 [thread overview]
Message-ID: <837hgqny4k.fsf@gnu.org> (raw)
In-Reply-To: <4CD58EF7.40004@swipnet.se>
> Date: Sat, 06 Nov 2010 18:23:03 +0100
> From: Jan Djärv <jan.h.d@swipnet.se>
> CC: emacs-devel@gnu.org
>
> Well, not sure how it is supposed to look, but here are the NS and Gtk+
> results.
Thanks.
> The first image is from NS, but Gtk+ looks the same.
This image looks good, although the string seems to be flushed to the
left; the w32 display is slightly better in this case, and so should
be the non-GTK display on X. However, judging by the second example,
I'm guessing that this is NS-only problem, in this case as well, and
GTK did flush the text to the right, did it?
> The ! has moved to the left, maybe that is intended?
Yes, because the text is read right-to-left, so the reordering engine
shows it correctly, with the exclam at the end of the text. (This
doesn't happen in the x-show-tip call in *scratch*, because the
trailing quote prevents that, per UBA, the Unicode Bidirectional
Algorithm.)
> For the second test, the NS does not align the same way Gtk+ does (I added
> some text to make this clear). I guess NS is wrong here.
Yes, GTK's display is correct, NS's display is not. Looks like NS
does not determine the paragraph direction dynamically as required by
the UBA. Perhaps there's some NS setting outside Emacs that enables
that?
Anyway, it looks like these two toolkits produce reasonable results,
even though NS is slightly incorrect. (I don't expect many tooltips
with mixed L2R and R2L text.)
Thanks for testing this.
next prev parent reply other threads:[~2010-11-06 17:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-06 14:14 Bidirectional text in tooltips Eli Zaretskii
2010-11-06 17:23 ` Jan Djärv
2010-11-06 17:46 ` Eli Zaretskii [this message]
2010-11-06 17:28 ` Jan Djärv
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=837hgqny4k.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=jan.h.d@swipnet.se \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).