I just found out that the search highlighting is broken, when one searches for multiple words, where one of the words is contained in another.
Consider a page with the word "word". Searching for "word or" will list this page; after clicking on this search result, the page will be shown, with "word" being highlighted. Fine -- well, look at the generated HTML source code:
Code: Select all
<span class="xh_find">w<span class="xh_find">or</span>d</span>
Anyway, let's search for "or word":
Code: Select all
w<span class="xh_find">or</span>d
Now consider a page with the text "उद्धरेदात्मनात्मानं नात्मानमवसादयेत्" (that's Sanskrit, BTW). We search for "रेदात्मनात्मानं नात्मान":
Code: Select all
उद्ध<span class="xh_find">रेदात्म<span class="xh_find">नात्मान</span>ं</span> <span class="xh_find">नात्मान</span>मवसादयेत्
I'm not sure if it is possible to solve the combining character problem efficiently, and I tend to classify that as "won't fix". Solving the problem that only a partial word is highlighted (second case) should be easy by simply ordering the search words by length.
Thoughts?
Christoph