Re: [greenstone-users] Hightlight of Chinese words search

From Katherine Don
DateTue, 30 Nov 2004 15:53:21 +1300
Subject Re: [greenstone-users] Hightlight of Chinese words search
In-Reply-To (41ABD47D-3060602-realss-com)
Hi Lian

What version of Greenstone are you using? and have you added the
"separate_cjk true" option to your config file?

I think this is a problem with segmentation (splitting the text up into
individual characters). If you do a query without quotes, do you get the
individual characters highlighted?

How are you doing the segmentation? Do you have presegmented documents
or is Greenstone doing it?

If the query is segmented, eg "X Y Z", but the text that you display is
not, eg it has XYZ in it, the highlighting will not work (as it is
searching for "X Y Z" to highlight).

If you can tell me how you are doing the segmentation, maybe I can
suggest a way to get around this.

Cheers,
Katherine Don

Lian Liming wrote:
> Michael Dewsnip wrote:
>
>> Hi Lian,
>>
>> Have you changed the format statements at all? Your format statements
>> need to have "[highlight]" and "[/highlight]" in them for the search
>> term highlighting to work.
>>
>> Regards,
>>
>> Michael
>
>
> Thank you very much for reply.
>
> I didn't do any changes to "format statements". Actually, the
> "highlight" can work when i search English words or sentences. But when
> come to Chinese words or sentences, i can find the files that contain
> those words or sentences. But in the file, the words or sentences can't
> be hightlighted.
>
> It seems there are something special for Chinese search. I don't know
> much about the souce structure of greenstone ,so i don't know whether it
> is a bug.
>
> Any ideas?
>
> Any help is appreciated.
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>