From: Jason Rumney <jasonr@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, David De La Harpe Golden <david@harpegolden.net>
Subject: Re: How to recognize keyboard insertion?
Date: Sun, 01 Nov 2009 09:30:35 +0800 [thread overview]
Message-ID: <4AECE4BB.9010900@gnu.org> (raw)
In-Reply-To: <83skczcwes.fsf@gnu.org>
Eli Zaretskii wrote:
> But that is wrong: per the Unicode Bidirectional Algorithm
> (a.k.a. UAX#9), a `(' should only be mirrored if its resolved
> directionality is R:
>
I don't think you can do that mirroring on input, as the directionality
will change as the user types (Assume below letters represent an Arabic
or Hebrew character):
User types: ABCD(
Displayed as: )DCBA
User types: ABCD(4
Displayed as: 4)DCBA or (4DCBA? I suspect the first, as the user might
type something other than a number next
User types: ABCD(4+5)
Displayed as: (4+5)DCBA regardless of how directionality of parens is
interpreted.
User types: ABCD(4+5)*9
Displayed as: (4+5)*9DCBA Parens here must be LTR
I guess this is why the mirroring happens at keyboard driver level and
applications do not try to do it correctly, because in practice doing it
correctly results in text jumping around, confusing the user more than
it confuses them to manually fix the problems of a dumb implementation.
And there are always going to be ambiguous cases, where leaving the user
to manually DTRT will be the only option.
next prev parent reply other threads:[~2009-11-01 1:30 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-31 15:57 How to recognize keyboard insertion? Eli Zaretskii
2009-10-31 16:58 ` David De La Harpe Golden
2009-10-31 17:20 ` Eli Zaretskii
2009-10-31 17:37 ` David De La Harpe Golden
2009-10-31 17:43 ` David De La Harpe Golden
2009-10-31 18:15 ` Eli Zaretskii
2009-10-31 19:26 ` David De La Harpe Golden
2009-10-31 20:01 ` Eli Zaretskii
2009-10-31 20:42 ` David De La Harpe Golden
2009-10-31 21:23 ` Eli Zaretskii
2009-10-31 21:49 ` David De La Harpe Golden
2009-11-01 3:44 ` Eli Zaretskii
2009-11-01 5:24 ` David De La Harpe Golden
2009-11-01 19:59 ` Eli Zaretskii
2009-11-01 20:19 ` David De La Harpe Golden
2009-11-01 3:40 ` Stephen J. Turnbull
2009-11-01 5:46 ` David De La Harpe Golden
2009-11-01 5:44 ` tomas
2009-11-01 18:48 ` Eli Zaretskii
2009-11-01 20:09 ` David De La Harpe Golden
2009-11-02 5:03 ` tomas
2009-11-01 1:30 ` Jason Rumney [this message]
2009-11-01 4:02 ` Eli Zaretskii
2009-11-01 5:25 ` Stephen J. Turnbull
2009-11-01 13:59 ` David De La Harpe Golden
2009-11-01 19:57 ` Eli Zaretskii
[not found] ` <837huac8gg.fsf@gnu.org>
2009-11-02 14:49 ` Ehud Karni
2009-11-02 19:02 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AECE4BB.9010900@gnu.org \
--to=jasonr@gnu.org \
--cc=david@harpegolden.net \
--cc=eliz@gnu.org \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.