all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: rms@gnu.org
Cc: ivan@siamics.net, 20499@debbugs.gnu.org
Subject: bug#20499: [PROPOSED PATCH] C-x 8 shorthands for curved quotes, Euro, etc.
Date: Sat, 09 May 2015 10:44:30 +0300	[thread overview]
Message-ID: <83egmqp541.fsf@gnu.org> (raw)
In-Reply-To: <E1YqnIY-0003BP-0N@fencepost.gnu.org>

> Date: Fri, 08 May 2015 14:46:58 -0400
> From: Richard Stallman <rms@gnu.org>
> CC: ivan@siamics.net, 20499@debbugs.gnu.org
> 
>   > > Are you kidding?  Just to see 32 characters' glyphs
>   > > I'd have to type 128 input characters.
> 
>   > No, you need to type much less.  A codepoint, if you know it, is at
>   > most 5 characters,
> 
> I miscalculated.  C-x 8 RET codepoint RET is 8 characters (or 9).
> Thus, to see 32 characters' glyphs that way, I'd need to type
> between 256 and 288 input characters.

If you are not looking for a single specific character by its
codepoint, then typing the codepoint makes no sense.

>    > and for name completion, typing something like
> 
>    >  C-x 8 RET greek <TAB> <TAB>
> 
> That is a lot less input than the other method, and is sort of usable,
> but inconvenient.  I tried it in that very case.
> 
> It includes Coptic characters as well as Greek; I don't know why.

I don't know either.  If I type TAB after just "greek", then I see no
Coptic characters in completion candidates.  What did you type before
asking for completion?

> It also includes many punctuation characters, and letters with
> diacritics, that are in a different part of Unicode, and are not
> normal Greek letters.

This is simple Emacs completion at work: it brings you every character
whose name begins with "GREEK".

In any case, when I complete on "greek", I see only punctuation and
diacriticals from the same block as alpha, so I don't think we show
irrelevant punctuation.  We do show some ancient characters from other
Greek blocks than the one where alpha lives, but they are not
punctuation.

As for letters with diacriticals, how would Emacs know that you don't
need those?  I think the use case where the user looks for characters
with diacriticals is much more plausible than when she looks for some
simple character like alpha.  But if we think that looking for
characters "with diacriticals" or "without diacriticals" is an
important use case, we could provide that as well, based on the
'decomposition' property of the characters.

> If I could see the glyphs of the area of Unicode which alpha is in, I could
> easily see the character I want.

If you only want letters, you can give a more accurate spec to
completion: "C-x 8 RET greek*letter <TAB> <TAB>".  (The asterisk is a
wildcard character.)  That still produces quite a long list, but no
symbols, punctuation, or lone diacriticals.

Alternatively, you'd need to know the Unicode block in which those
characters live, or find it by completing on block names.  (This
block's name is "Greek and Coptic".)

> And when I want to enter some non-ASCII punctuator, if I could see
> the glyphs of that part of Unicode, it would be easy.
> I don't want to have to remember their official names.

Only a small part of (language- and script-agnostic) punctuation
characters have their own block.  The language-specific punctuation is
in the same block as their main characters.

We could have a feature which would display punctuation characters,
either specific to a language/script or not.  Such a feature would
need to use [:punct:] regexp (we'd need to extend [:punct:] to use
Unicode character properties).  Similarly, using [:alpha:] would bring
only letters.

I hope you now agree that the use case of searching for a character
with only some vague idea about its appearance and/or name needs some
pretty sophisticated (and overlapping) capabilities for allowing the
user to specify what she knows, before showing the possible
candidates.  I'm not really sure what would be a good UI for such
specifications; perhaps something using the widget library a-la
Customize, where you can check or uncheck certain options and specify
values for non-boolean fields.





  reply	other threads:[~2015-05-09  7:44 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04  1:13 bug#20499: [PROPOSED PATCH] C-x 8 shorthands for curved quotes, Euro, etc Paul Eggert
2015-05-04 14:22 ` Eli Zaretskii
2015-05-04 15:20   ` bug#16082: " Ivan Shmakov
2015-05-04 15:41     ` bug#20499: " Eli Zaretskii
2015-05-04 16:12       ` Ivan Shmakov
2015-05-04 16:31         ` Eli Zaretskii
2015-05-04 18:12           ` bug#20499: " Ivan Shmakov
2015-05-04 18:29             ` Eli Zaretskii
2015-05-04 22:00     ` bug#20499: bug#16082: bug#20499: [PROPOSED PATCH] " Stefan Monnier
2015-05-04 16:11   ` Paul Eggert
2015-05-04 16:15 ` Richard Stallman
2015-05-04 16:34   ` Eli Zaretskii
2015-05-04 16:48     ` Ivan Shmakov
2015-05-04 17:03       ` Eli Zaretskii
2015-05-04 17:40         ` bug#20499: " Ivan Shmakov
2015-05-04 22:00           ` Stefan Monnier
2015-05-05 14:38       ` bug#20499: [PROPOSED PATCH] " Richard Stallman
2015-05-05 14:49         ` Ted Zlatanov
2015-05-05 15:32           ` Eli Zaretskii
2015-05-05 16:05             ` bug#20499: " Ivan Shmakov
2015-05-05 15:31         ` bug#20499: [PROPOSED PATCH] " Eli Zaretskii
2015-05-05 16:20           ` bug#20499: " Ivan Shmakov
2015-05-05 16:42             ` Eli Zaretskii
2015-05-06 13:09             ` Richard Stallman
2015-05-06 15:33               ` Eli Zaretskii
     [not found]             ` <<E1Ypz4X-0002JA-R0@fencepost.gnu.org>
2015-05-09  0:03               ` Drew Adams
2015-05-09  8:22                 ` Eli Zaretskii
2015-05-06 13:09           ` bug#20499: [PROPOSED PATCH] " Richard Stallman
2015-05-06 16:27             ` Eli Zaretskii
2015-05-07 22:22               ` Richard Stallman
2015-05-08  5:48                 ` Eli Zaretskii
2015-05-08 18:46                   ` Richard Stallman
2015-05-08 18:46                   ` Richard Stallman
2015-05-09  7:44                     ` Eli Zaretskii [this message]
2015-05-09 14:17                       ` Richard Stallman
2015-05-09 14:36                         ` Eli Zaretskii
2015-05-08 20:18               ` Drew Adams
2015-05-09  7:59                 ` Eli Zaretskii
2015-05-04 18:40   ` Paul Eggert
2015-05-05  6:03     ` Paul Eggert
2015-05-06 22:20       ` bug#20499: " Ivan Shmakov
2015-05-07  4:05         ` Eli Zaretskii
2015-05-07  7:14           ` Ivan Shmakov
2015-05-07 14:33             ` Eli Zaretskii
2015-05-07  7:53       ` bug#20499: [PROPOSED PATCH] " Paul Eggert
2015-05-07 10:00         ` bug#20499: " Ivan Shmakov
2015-05-07 14:44           ` Eli Zaretskii
2015-05-07 17:03         ` bug#20499: [PROPOSED PATCH] " Stefan Monnier
2015-05-11  0:51           ` Paul Eggert
2015-05-11  2:25             ` Stefan Monnier
2015-05-11  1:28 ` bug#20499: [PROPOSED PATCH] C-x 8 shorthands for curved quotes, , " Paul Eggert
2015-05-11 14:54   ` Eli Zaretskii
2015-05-11 15:52     ` Stefan Monnier
2015-05-11 16:16       ` Eli Zaretskii
2015-05-11 18:48     ` Paul Eggert
2015-05-11 19:10       ` Eli Zaretskii
2015-05-12  8:56     ` Richard Stallman
2015-05-12 16:13       ` Eli Zaretskii
2019-06-26 15:12         ` bug#16082: " Lars Ingebrigtsen
2020-08-13  8:49           ` Lars Ingebrigtsen
2015-05-11 18:27   ` Richard Stallman
2015-05-11  1:55 ` bug#20499: C-x 8 shorthands for curved quotes, " Paul Eggert
     [not found] <"<1430701990-31993-1-git-send-email-eggert"@cs.ucla.edu>

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=83egmqp541.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=20499@debbugs.gnu.org \
    --cc=ivan@siamics.net \
    --cc=rms@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.