emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: char equivalence classes in search - why not symmetric?


From: Juri Linkov
Subject: Re: char equivalence classes in search - why not symmetric?
Date: Wed, 09 Sep 2015 00:19:28 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu)

>> > I disagree. When I search for "Müller" I want it to also match
>> > "Muller" because some people (e.g., in French speaking countries) use
>> > this as an approximation of the spelling.
>>
>> It's fine that emacs is "different", but common (nano, vi, GUI editors, word
>> processors) behaviour is that a search strictly matches the string, and that
>> creates expectations.

In Web browsers by default “u” matches “ü” as well as “ü” matches “u”.

>> For the Muller case above, as a translator I could see
>> myself search for Muller to correct it to Müller and not be happy to have
>> all the correct Müllers showing up in the search.
>
> Not a problem, provided we have a toggle like what Juri suggested.
> Toggle literal vs char folding.  And ensure that char folding is
> symmetric (this thread), and not just one-way as it is now.

Do you mean a toggle for an individual character in the search string
or a toggle for the whole search string?  Also is it a three-state toggle
between literal match, “ü” matches only “ü”, “ü” matches both “u” and “ü”,
“ü” matches “u”, “ü” and all other variants like “ú”?



reply via email to

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