<table><tr><td style="">xuetianweng created this revision.<br />xuetianweng added reviewers: hein, broulik.<br />Restricted Application added a project: Plasma.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8771" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Composing CJK character requires a lot more key comparing to latin<br />
characters. The raw length check does not make much sense for query string<br />
in CJK characters. Here we use a simple algorithm to query the character<br />
script property in unicode. If they are belong to CJK, use length 2 instead<br />
of 1 for the character.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Search "系" (normally requires three key press "x + i + 1" under pinyin) under<br />
zh_CN in krunner and get some result instead of nothing.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8771" rel="noreferrer">https://phabricator.kde.org/D8771</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>runners/services/servicerunner.cpp</div></div></div><br /><div><strong>To: </strong>xuetianweng, hein, broulik<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>