emacs-devel
[Top][All Lists]
Advanced

[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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]