[Koha] How to let Koha support Chinese Character searching

Paul Poulain paul.poulain at biblibre.com
Sat Jan 14 02:41:36 NZDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 13/01/2012 10:24, Mason James a écrit :
> 
> On 2012-01-13, at 7:40 PM, Peter Zhao wrote:
> 
>> Hi,
>> 
>> I have installed Koha 3.06.02 and everything is good. It can
>> searching English very well,but can't searching Chinese character
>> properly. Could anyone know how to hanld this problem?
> 
> its a very tricky problem... :/
Yes, and I think this tricky problem can be solved by activating ICU
on zebra.

For this:
* install ICU (unicode library from IBM)
* activate it by editing default.idx file, and :
comment this line:
#charmap word-phrase-utf.chr
add this line:
icuchain icu.xml

Your icu.xml should look like this:
<icu_chain locale="fr-FR">
  <transliterate rule="\'>\ "/>
  <transliterate rule="[:Number:] { '-' > '' "/>
  <transform rule="[:Control:] Any-Remove"/>
  <tokenize rule="l"/>
  <transform rule="[[:WhiteSpace:][:Punctuation:]] Remove"/>
  <transform rule="NFD"/>
  <transform rule="[:Nonspacing Mark:] Remove"/>
  <transform rule="NFC"/>
  <display/>
  <casemap rule="l"/>
</icu_chain>


HTH
- -- 
Paul POULAIN
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
Tel : (33) 4 91 81 35 08
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPEDSKAAoJEK81SonuhyGo2J8H/i+8C2uzM0WFHtDLZUyChVjA
9G1KuqGJapQxEwO79meSQkx/xvwqMwo7EtlGNS+n9/+leFi9cpRuyiOl84t40peY
/JNDsSPgEJszwm2INQXgh5/1Ya0OO9uJ8L0EN/FjfOfswO7wqWVUskgO3EA29mnf
M9NnIEY36f9mam8B8f46c6/p3OgVm1EKz74m1d9STNrvFSiiiJgCrs8rgKp6ei2i
yCbQR8hgefBwOsCH7o1rtuBPK730b7a2/5Nk+1ayhxor3cs1W2ESAf91tbzIzjGQ
jFiMR0tu/FBO57hmv0N7BY8rTU5j9ciTHoNvMhmwPsQX9ZKldjrbZI4AdvzOikY=
=+IRO
-----END PGP SIGNATURE-----


More information about the Koha mailing list