Bug 343759 - Quickfilter is triggered for >= than 3 letters, should be less
Summary: Quickfilter is triggered for >= than 3 letters, should be less
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: search (show other bugs)
Version: 5.4.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-04 04:22 UTC by Sylvain
Modified: 2017-04-11 19:30 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain 2015-02-04 04:22:08 UTC
When one search in the search bar, the search is only started if more or equal than 3 "characters" are entered. While this seems reasonnable in English and other western language, it is not convenient for japanese and perhaps other CJK. In Japanese, for example, name are often of length 2 (2 characters) and therefore it makes search by name not possible.


Reproducible: Always

Steps to Reproduce:
1.Search for a word (in japanese or else) with a length <3
2.The search does not start
3.Pressing enter does not work too

Actual Results:  
The search does not start

Expected Results:  
The search is automatically triggered or can be forced start by pressing enter or a search button (not available).

Perhaps a good way would be to check for the length in bytes and not character as the problem should mainly concern complex language where each character is 2 bytes. I don't know if it possible or not, just an idea.
I remember that Eike Hein blogged about improving KDE support for CJK, but I don't know how to cc him.
Comment 1 Sylvain 2015-02-04 04:24:16 UTC
https://blogs.kde.org/2015/01/17/improving-kdes-support-korean-and-other-cjk-languages 
The blog post I was referencing.
Comment 2 Eike Hein 2015-02-04 13:41:51 UTC
Found me :)
Comment 3 Sylvain 2015-02-09 04:46:10 UTC
Nice :) You are fast!
I hope someone will be able to fix this. It is kind of a stopper for CJK users.
Comment 4 Eike Hein 2015-02-09 19:36:22 UTC
For Korean it's a fairly easy fix by normalizing to Unicode NFD (decomposing blocks into combining characters) and checking the length again. I'm still mulling what a good way to handle the Japanese syllabaries might be. Additionally, this is a problem pattern that's common across KDE, so it would be good to place a solution in one of our lower-level framework libraries.
Comment 5 Eike Hein 2015-02-10 21:02:37 UTC
I've started to pursue a solution for this, you can follow our dev discussion here: http://mail.kde.org/pipermail/kde-frameworks-devel/2015-February/022141.html
Comment 6 Denis Kurz 2017-04-11 19:30:14 UTC
Still no filtering for less than 3 characters in KMail 5.4.3.