Zim

can not find a page containing "海芳" when searching for "海芳"

Asked by 翁凯

Hi there,

I think this is a bug: I can not find a page containing "海芳" when searching for "海芳", although this does not happen for other Chinese words. Thanks!

best,

Question information

Language:
English Edit question
Status:
Answered
For:
Zim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

Maybe you can run "zim -D" and check the debug output for error messages?

Thanks,

Jaap

Revision history for this message
翁凯 (214733622-v) said :
#2

OK. But where can I find the debug output? Also, another page containing "海芳" could be found. Maybe it is due to the page name? The name of the one which could not be found is "④", while that of the other is "13".

Thanks!

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#3

On Thu, Jun 14, 2012 at 2:01 AM, 翁凯
> OK. But where can I find the debug output? Also, another page containing
> "海芳" could be found. Maybe it is due to the page name? The name of the
> one which could not be found is "④", while that of the other is "13".

On Linux the debug output will show in the terminal, on windows it
ends up in zim.log in the temp folder: %TMP%/zim.log

Btw. is "海芳" a single word with space " " on both sides ? (Word
boundary in western language.) Or are there more characters directly
next to it?

If characters are next to it, try to search "*海芳*" (So with a "*" to
match other characters next to it). If both pages are found that may
be the reason.

Regards,

Jaap

Revision history for this message
翁凯 (214733622-v) said :
#4

OK, "*海芳*" works. But why? It's a little bit inconvenient. Thanks a lot!

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#5

On Thu, Jun 14, 2012 at 12:06 PM, 翁凯
<email address hidden> > OK, "*海芳*" works. But why?
It's a little bit inconvenient. Thanks a lot!

Because I'm not Chinese speaking, so when I wrote the search function,
I assume words always end with whitespace.

-- Jaap

Revision history for this message
翁凯 (214733622-v) said :
#6

I see. Then is it possible and easy for the function to handle this kind of situation? Thanks!

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#7

On Thu, Jun 14, 2012 at 1:11 PM, 翁凯
<email address hidden> wrote:
> I see. Then is it possible and easy for the function to handle this kind
> of situation? Thanks!

Do you have a proposal ?

Problem is that for western languages it works really well, so I don't
want to change it. Don't know the rules for Chinese and other
languages, so can not design a good rule that works for all.

Regards,

Jaap

Revision history for this message
翁凯 (214733622-v) said :
#8

Maybe one could allow "non-word" (i.e. strings not being surrounded by whiht spaces) to be searched while putting higher priorities to matched words. In this way, I think both could be satisfied.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#9

On Thu, Jun 14, 2012 at 1:26 PM, 翁凯 > Maybe one could allow "non-word"
(i.e. strings not being surrounded by
> whiht spaces) to be searched while putting higher priorities to matched
> words. In this way, I think both could be satisfied.

That is a good suggestion, I will look into it.

-- Jaap

Revision history for this message
翁凯 (214733622-v) said :
#10

Thanks a lot :)

Can you help with this problem?

Provide an answer of your own, or ask 翁凯 for more information if necessary.

To post a message you must log in.