all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: bruce.connor.am@gmail.com
Cc: help-gnu-emacs@gnu.org, emacs-devel@gnu.org, mbork@wmi.amu.edu.pl
Subject: Re: Single quotes in Info
Date: Tue, 27 Jan 2015 20:04:09 +0200	[thread overview]
Message-ID: <83h9vcp0bq.fsf@gnu.org> (raw)
In-Reply-To: <CAAdUY-J4s+1_C7bj32Xk5x8d01fe9baPCYmwd+0KU=QorO7wZg@mail.gmail.com>

> Date: Tue, 27 Jan 2015 14:27:45 -0200
> From: Artur Malabarba <bruce.connor.am@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs <help-gnu-emacs@gnu.org>
> 
> I also really like this idea, so much so that I've gone ahead and
> implemented it. It is implemented on the branch
> `scratch/isearch-character-group-folding'. I called it group-folding,
> but we can call it class folding or whatever sounds more intuitive to
> most people.

I didn't yet have time to look at the source, so apologies if what's
below is off the mark.

> The implementation is very much up for debate. Currently, what it does
> is use regexps (behind the scenes) so that a plain double quote
> matches all those unicode double quotes, and the same for a hard
> single quote. The way it is written, it is trivial to add more groups
> by adding entries to `isearch-groups-alist'.
> Of course, other characters are appropriately regexp-quoted behind the
> scenes, so that everything else works as expected. The surface is
> exactly like regular isearch, except for these two characters.

If this is implemented in isearch, then IMO doing it for quotes alone
makes very little sense.  It would make a lot of sense if it were
implemented in info.el, for searching Info manuals (in which case it
should also support the other Unicode characters produced by makeinfo
that have ASCII equivalents, like ⇒ vs =>.  (Note that this is not
character-for-character equivalence anymore.)

For a general-purpose search feature, we'd need a much more
general-purpose and versatile implementation.

> The set of groups is defined by `isearch-groups-alist', and the
> folding only happens if `isearch-fold-groups' is non-nil.
> Other groups that maybe should be added are latin accented letters.

If we do this via our private database, that database is going to be
huge.  I suggest to explore an alternative implementation, which uses
canonical equivalence.  We already have infrastructure for that, see
the description of the 'decomposition' character property in the ELisp
manual.




  parent reply	other threads:[~2015-01-27 18:04 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-23 23:17 Single quotes in Info Marcin Borkowski
2015-01-23 23:53 ` Drew Adams
2015-01-24 17:01   ` Marcin Borkowski
2015-01-24  8:38 ` Eli Zaretskii
2015-01-24 15:11   ` Drew Adams
2015-01-24 15:19     ` Eli Zaretskii
     [not found]     ` <<838ugsrysw.fsf@gnu.org>
2015-01-24 15:54       ` Drew Adams
2015-01-24 16:45         ` Marcin Borkowski
2015-01-24 17:00     ` Marcin Borkowski
2015-01-27 16:27       ` Artur Malabarba
2015-01-27 17:37         ` Stefan Monnier
2015-01-27 18:09           ` Eli Zaretskii
2015-01-27 19:00             ` Stefan Monnier
2015-01-27 19:15               ` Eli Zaretskii
2015-01-27 19:49           ` Artur Malabarba
2015-01-27 20:30             ` Stefan Monnier
2015-01-28  3:48               ` Stefan Monnier
2015-01-28 21:42                 ` Artur Malabarba
2015-01-28 22:23                   ` Stefan Monnier
2015-01-29 14:31                     ` Artur Malabarba
2015-01-27 18:04         ` Eli Zaretskii [this message]
2015-01-27 18:39           ` Drew Adams
2015-01-27 20:24           ` Artur Malabarba
2015-01-27 21:18             ` Eli Zaretskii
2015-01-28  1:15               ` Artur Malabarba
2015-01-28 15:24                 ` Eli Zaretskii
2015-01-28 16:10                   ` Yuri Khan
2015-01-28 17:22                     ` Eli Zaretskii
2015-01-28 21:38                   ` Artur Malabarba
2015-01-29  3:44                     ` Eli Zaretskii
2015-01-29  6:01                       ` Drew Adams
2015-01-29 16:03                         ` Eli Zaretskii
2015-01-29 16:24                           ` Drew Adams
2015-01-29 16:57                             ` Eli Zaretskii
     [not found] ` <mailman.18484.1422057224.1147.help-gnu-emacs@gnu.org>
2015-01-26  3:26   ` Unicode in emacs (was Single quotes in Info) Rusi
     [not found] <<87twzhgk84.fsf@wmi.amu.edu.pl>
     [not found] ` <<83lhksshdm.fsf@gnu.org>
     [not found]   ` <<9ee0c895-a178-40e1-b1c8-ed2b97071c6b@default>
     [not found]     ` <<87h9vgglkz.fsf@wmi.amu.edu.pl>
     [not found]       ` <<CAAdUY-J4s+1_C7bj32Xk5x8d01fe9baPCYmwd+0KU=QorO7wZg@mail.gmail.com>
     [not found]         ` <<83h9vcp0bq.fsf@gnu.org>
     [not found]           ` <<CAAdUY-Kck6moHTRJshbXJdRVQ6gK6Q24f_PD7SuEaZ7hURpdQw@mail.gmail.com>
     [not found]             ` <<83y4onorcc.fsf@gnu.org>
     [not found]               ` <<CAAdUY-+ooLydD-qPtiEvv-01TGxX5E-cf6asvs+Jn+eR_=38ig@mail.gmail.com>
     [not found]                 ` <<83vbjrnd1f.fsf@gnu.org>
     [not found]                   ` <<CAAdUY-JwX-p-ZzdExm9+cKs5pC0SUoLLs8ppA9esuXsRuHRdng@mail.gmail.com>
     [not found]                     ` <<83386untcd.fsf@gnu.org>
     [not found]                       ` <<ee612423-67bf-42d0-a0ef-0dad11605c49@default>
     [not found]                         ` <<83vbjpmv4w.fsf@gnu.org>
     [not found]                           ` <<6164d89d-23ac-46bf-9f84-154cc0e6c6e4@default>
     [not found]                             ` <<83mw51msnz.fsf@gnu.org>
2015-01-29 17:05                               ` Single quotes in Info Drew Adams
2015-01-29 17:24                                 ` Eli Zaretskii
2015-01-29 18:34                                   ` Drew Adams
2015-01-29 18:54                                     ` Eli Zaretskii
2015-01-29 19:35                                       ` Drew Adams

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=83h9vcp0bq.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@wmi.amu.edu.pl \
    /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.