[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Upcoming loss of usability of Emacs source files and Emacs.
From: |
Eli Zaretskii |
Subject: |
Re: Upcoming loss of usability of Emacs source files and Emacs. |
Date: |
Thu, 18 Jun 2015 08:46:20 +0300 |
> Date: Thu, 18 Jun 2015 07:27:37 +0200
> From: Ulrich Mueller <address@hidden>
> Cc: address@hidden, address@hidden, Nicolas Petton <address@hidden>,
> address@hidden, Tassilo Horn <address@hidden>, address@hidden,
> address@hidden
>
> ;; Ignore accent and umlaut marks when searching.
> ;; Works for Emacs 19.30 and later.
> (let ((eqv-list '("aAàÀáÁâÂãÃäÄåÅ"
> "cCçÇ"
> "eEèÈéÉêÊëË"
> "iIìÌíÍîÎïÏ"
> "nNñÑ"
> "oOòÒóÓôÔõÕöÖøØ"
> "uUùÙúÚûÛüÜ"
> "yYýÝÿ"))
> (table (standard-case-table))
> canon)
> (setq canon (copy-sequence table))
> (mapcar (lambda (s)
> (mapcar (lambda (c) (aset canon c (aref s 0))) s))
> eqv-list)
> (set-char-table-extra-slot table 1 canon)
> (set-char-table-extra-slot table 2 nil)
> (set-standard-case-table table))
This means you cannot search for, say, å, even if you want to find
only it and not the other "equivalents", right? That's not how Emacs
works now wrt letter-case. At the very least, this folding of
diacriticals should offer the same flexibility, i.e. if the user types
'a', she should be able to find all the variants, but if she types 'å',
should find only that character.
Also, this doesn't handle decomposed characters, as in 'å'. So this
is not really Unicode-compliant, it's a half-measure of sorts.
- Re: ASCII-folded search [was: Re: Upcoming loss of usability ...], (continued)
- Re: ASCII-folded search [was: Re: Upcoming loss of usability ...], Artur Malabarba, 2015/06/26
- Re: ASCII-folded search [was: Re: Upcoming loss of usability ...], Juri Linkov, 2015/06/27
- RE: ASCII-folded search [was: Re: Upcoming loss of usability ...], Drew Adams, 2015/06/26
- Re: ASCII-folded search [was: Re: Upcoming loss of usability ...], Eli Zaretskii, 2015/06/23
- Re: ASCII-folded search [was: Re: Upcoming loss of usability ...], Artur Malabarba, 2015/06/23
- Re: ASCII-folded search [was: Re: Upcoming loss of usability ...], Eli Zaretskii, 2015/06/23
- Re: ASCII-folded search [was: Re: Upcoming loss of usability ...], Eli Zaretskii, 2015/06/23
- Re: ASCII-folded search [was: Re: Upcoming loss of usability ...], Artur Malabarba, 2015/06/23
- Re: ASCII-folded search [was: Re: Upcoming loss of usability ...], Eli Zaretskii, 2015/06/23
- Re: Upcoming loss of usability of Emacs source files and Emacs., Ulrich Mueller, 2015/06/18
- Re: Upcoming loss of usability of Emacs source files and Emacs.,
Eli Zaretskii <=
- Re: Upcoming loss of usability of Emacs source files and Emacs., Ulrich Mueller, 2015/06/18
- Re: Upcoming loss of usability of Emacs source files and Emacs., Eli Zaretskii, 2015/06/18
- Re: Upcoming loss of usability of Emacs source files and Emacs., Ulrich Mueller, 2015/06/18
- Re: Upcoming loss of usability of Emacs source files and Emacs., Steinar Bang, 2015/06/18
- Re: Upcoming loss of usability of Emacs source files and Emacs., Eli Zaretskii, 2015/06/18
- Re: Upcoming loss of usability of Emacs source files and Emacs., Steinar Bang, 2015/06/18
- Re: Upcoming loss of usability of Emacs source files and Emacs., Marcin Borkowski, 2015/06/18
- Re: Upcoming loss of usability of Emacs source files and Emacs., Steinar Bang, 2015/06/18
- Re: Upcoming loss of usability of Emacs source files and Emacs., Steinar Bang, 2015/06/18
- Re: Upcoming loss of usability of Emacs source files and Emacs., Eli Zaretskii, 2015/06/18