kiwix / kiwix-apple

Kiwix for iOS & macOS
https://apple.kiwix.org
GNU Lesser General Public License v3.0
478 stars 70 forks source link

No search result when the key word more than 1 byte with Chinese zim files #847

Closed macligithub closed 2 months ago

macligithub commented 3 months ago

When I updated to 3.4.0 version and search 1 Chinese byte, it seems work well, but when I try to search more than 1 byte, No search result.

For example: if you search “西班牙”, it will show “no result". it's normal in old version.

English zim is no problem.

kelson42 commented 3 months ago

@macligithub What is the content you use?

macligithub commented 3 months ago

The content is: wikipedia_zh_all_maxi_2024-04.zim, but I think it infect all of Chinese zim files.

macligithub commented 3 months ago

Also I have noticed that the new software menu has changed to Chinese also, any connection between the menu language and this problem?

kelson42 commented 3 months ago

@macligithub Pretty sure I know the problem, but may I ask you to download/test with ifixit in chinese https://library.kiwix.org/#lang=&q=chinese&category=iFixit ? I believe that content should be searchable in Chinese.

macligithub commented 3 months ago

Tested iFixit in Chinese file, search function is fine as you said. :)

kelson42 commented 2 months ago

@macligithub Thank you for your feedback. The root cause of the problem is that the scraper of Wikipedia still rely on a very old version of the libzim. This is a known problem and we will fix it withing a quarter, see https://github.com/openzim/mwoffliner/issues/1576. Unfortunately once fixed, you will have to download the latest version of the Wikipedia in Chinese.