https://bugs.kde.org/show_bug.cgi?id=440246

Alvin Wong <al...@alvinhc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/docu |https://invent.kde.org/docu
                   |mentation/docs-krita-org/co |mentation/docs-krita-org/co
                   |mmit/f67b09964d2ba0547bdfa5 |mmit/2d63f23f4b21a182812fda
                   |e73fa11ddcb0c98fe6          |8755ca94a58e661c01

--- Comment #2 from Alvin Wong <al...@alvinhc.com> ---
Git commit 2d63f23f4b21a182812fda8755ca94a58e661c01 by Alvin Wong.
Committed on 25/08/2021 at 14:19.
Pushed by alvinwong into branch 'krita/5.0'.

Try to split search term into smaller parts for zh and ja

When sphinx generates the search index, terms gets split into the
smallest logical part, for example "笔刷预设介绍" will be split into
three individual terms - "笔刷", "预设" and "介绍". The search page
JavaScript does not know how to do segmentation (wouldn't be feasible
anyway due to the need of a dictionary). Therefore here we add an
extra logic to attempt to further split the search terms according to
available terms in the search index to make the search function more
useful for Chinese and Japanese languages.

This logic requires that every part of the search term to be an existing
term in the index, like "笔刷预设介绍". If the search term is instead
"笔刷预设道路" and that "道路" does not exist in the index, this logic
will not apply the split and the search will yield no results.


(cherry picked from commit f67b09964d2ba0547bdfa5e73fa11ddcb0c98fe6)

M  +52   -0    theme/static/searchtools.js_t

https://invent.kde.org/documentation/docs-krita-org/commit/2d63f23f4b21a182812fda8755ca94a58e661c01

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to