D8771: Use heuristic weighted length algorithm to calculate the query term length.
    Xuetian Weng 
    noreply at phabricator.kde.org
       
    Sun Nov 12 11:02:48 UTC 2017
    
    
  
xuetianweng created this revision.
xuetianweng added reviewers: hein, broulik.
Restricted Application added a project: Plasma.
REVISION SUMMARY
  Composing CJK character requires a lot more key comparing to latin
  characters. The raw length check does not make much sense for query string
  in CJK characters. Here we use a simple algorithm to query the character
  script property in unicode. If they are belong to CJK, use length 2 instead
  of 1 for the character.
TEST PLAN
  Search "系" (normally requires three key press "x + i + 1" under pinyin) under
  zh_CN in krunner and get some result instead of nothing.
REPOSITORY
  R120 Plasma Workspace
BRANCH
  master
REVISION DETAIL
  https://phabricator.kde.org/D8771
AFFECTED FILES
  runners/services/servicerunner.cpp
To: xuetianweng, hein, broulik
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171112/fbbf5292/attachment.html>
    
    
More information about the Plasma-devel
mailing list