I cannot search Chinese key words

Bug #794795 reported by seeking on 2011-06-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I like zim very much. But I found that I cannot search Chinese key words by Shift+Ctrl+F.
As you know, this is used to search for key words in all notes, not only the present one.
It is a very important feature. But I can only search English key words.
I work in Archlinux, Zim 0.52.

I have had this question before and it is because Chinese doesn't use
whitespace between words the same way western languages do. So when looking
for whole words the logic to separate words fails. Try "*searchterm*"
instead, the "*" will make it match partial words as well.

Robin Lee (cheeselee) wrote :

Searching with "*searchterm*" succeeds, but then finding fails for the excessive asterisks.

On Wed, Jun 15, 2011 at 4:47 AM, Robin Lee <email address hidden> wrote:

> Searching with "*searchterm*" succeeds, but then finding fails for the
> excessive asterisks.

This is already fixed in current development version.

-- Jaap

Thinking how to fix this and make the search do the right thing for chinese characters.

What would be the right way to determine word boundries in chinese text ? Can we rely on whitespace for that, or is there a different rule ?

If no rule at all maybe add the "*" internally for words that have chinese characters (check unicode ranges).

Changed in zim:
status: New → Confirmed
importance: Undecided → Medium
Robin Lee (cheeselee) wrote :

No literal way to determine word boundaries in Chinese text and the concept of "word" is vague in Chinese.

seeking (lishengwen) wrote :

I think you can put an option in the searching dialog for users to decide whether to search for whole words. For English users, they can search for whole words, while Chinese do not. This is just what is done in many notebook softwares.

In fact, as a Chinese, I also search for English words sometimes. But I have to type the word completely even when the word is very long. I think this is inconvenience.

seeking (lishengwen) wrote :

Hi, I just noticed that the local search Ctrl+F is different from the global search Shift+Ctrl+F. There is no such problem mentioned here in the local search Ctrl+F. I wish the global search could obey the same rule with Ctrl+F.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.