Open Bug 1042681 Opened 11 years ago Updated 1 month ago

Recipient autocomplete and AB (quick) searches should be less sensitive about accented local characters ("bar" should match "bàr"): use .localeCompare(... { sensitivity: 'base' })

Categories

(Thunderbird :: Message Compose Window, enhancement)

31 Branch
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: contact, Unassigned)

References

()

Details

(Keywords: intl)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release) Build ID: 20140722064054 Steps to reproduce: add a contact name Loïc then try autocompletion with loic Actual results: no matching result Expected results: it should match Loïc
Severity: normal → minor
OS: Windows 7 → Linux
Have you confirmed that the capital L is preventing the match? It looks to me the problem could be the special accented i, that you do not have in your search string.
Sorry my first message was quite ambiguous. it is the spécial accented i -> ï same thing with ô œ etc etc
This seems to work fine for me. I put "Loïc" as Last name of a contact. I can find it (via autocomplete in composer) using loïc and also oïc . That is on TB34, Win XP. I am not sure anything relevant was changed here between TB31 and 34.
Attached image thunderbird.png
Hi As you can see it does not match. Archlinux 64 up to date > thunderbird 31.0-1 going to try on another system.
I do not see any autocompletion in the screenshot. At least not the one in the compose window. I just see search inside the address book. And "pa with roof" properly matches the contact you created. Why should "pa" match "pa with roof" ? Those do not seem to be the same character.
autocompletion in message compose window is the same. not matching. I do agree it is not the same character with or without roof... but it usually happen that people does not use roof or special accent as they should. Using specials accent need to press additionnal keys. At least maybe some option to match or not specials accents could be introduced ?
Ok, so from the features described on the page at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare you actually want the "sensitivity=base" option?
Yes absolutely.
Aceman, any reasons NOT to use sensitivity: 'base'? Could this cause havoc (too many results) for specific locales? If this isn't implemented yet, it sounds good to me (could be confirmed as an RFE)...
Severity: minor → enhancement
OS: Linux → All
Hardware: x86_64 → All
Summary: Autocompleting email addresses should be case insensitive → Recipient autocomplete and AB (quick) searches should be less sensitive about accented local characters ("bar" should match "bàr"): use .localeCompare(... { sensitivity: 'base' })
Although, looking at my own locale, is it really desirable that "Hocker" finds "Höcker"? Different words, and both exist... Would have to check further how this affects name searches on each locale...
1. I am not sure if that .localeCompare() functionality is already supported in TB. I rememeber it needed to include some special international support library and that one was just coming to Firefox yet. 2. the AB search actually descends into c++ code to search matching cards. I really doubt that backend supports these special character features.
Re 1: INTL_API is enabled in thunderbird nowadays
Though for the actual feature, I don't know. For Finnish and Swedish it's not desirable to have å or ä mach a, or ä to match a. (Not sure if that would be the case though).
en ö to match o.
(In reply to Magnus Melin from comment #13) > Though for the actual feature, I don't know. For Finnish and Swedish it's > not desirable to have å or ä mach a, or ä to match a. (Not sure if that > would be the case though). Not sure either, but the more interesting usecase is the other way round: Type "a" to match å or ä...
See Also: → 572182
Citing some related bugs. I didn't include bug 730945 - doe sthat even exist anymore?
See Also: → 521649, 506064, 284856
Keywords: intl

As someone who deals with French named contacts a lot, this should definitely be listed as a bug not an enhancement... It is frustrating to have to type accented characters for recipients to autocomplete.

Severity: normal → S3
See Also: 284856
  1. Can confirm, very annoying and non-standard behavior. Used to enter "Boz" and enter for "Božena", but here nothing happens.
  2. Deleting char (in this case "Boz" -> "Bo") wouldn't give you "Božena" either, because for some reason autocomplete is only after new character at the end of the input string, not after any other edits, like delete for example. Also very annoying.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: