Re: [Koha] Can we use Unicode to enter records?
What details? Koha will support Unicode input out of the box, so just start making your entries. To search successfully in Devanagari you will have to use Zebra. You can apply http://git.biblibre.com/cgi-bin/gitweb.cgi?p=koha;a=commitdiff_plain;h=b4068... this patch to make necessary changes to you Zebra Configuration.. Or if you are not comfortable applying patches etc you can follow following procedure.. #sudo apt-get install libicu-dev libicu38 yaz-icu Copy following files from /usr/share/idzebra-2.0/tab/ to /etc/koha/zebradb/etc/ icu.idx phrases-icu.xml string.chr words-icu.xml Copy /etc/koha/zebradb/etc/words-icu.xml to /etc/koha/zebradb/etc/icu.xml Edit /etc/koha/zebradb/etc/icu.xml change <icu_chain locale="en"> to <icu_chain locale="en_IN.UTF-8"> Save and change ownership of all copied files to koha:koha #sudo chown -R koha:koha /etc/koha/zebradb/etc Edit /etc/koha/zebradb/zebra-biblios.cfg add line index: icu.idx Restart zebra server and queue daemons #sudo /etc/init.d/koha-zebra-daemon restart #sudo /etc/init.d/koha-zebraqueue-daemon restart Rebuild zebra index #sudo KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -r -v Try your searches.. Using yaz-client to verify zebra is working #az-client z>auth kohauser zebrastripes z>open unix:/var/run/koha/zebradb/bibliosocket z>base biblios z>f ”पाँडे” z>s z>q Adjusting Koha System Preferences to correctly search our multilingual data In Koha staff client Home → Administration → System Preferences → Searching Turn off QueryFuzzy ( maybe and QueryWeightFields) Regards, Koustubha Kale Anant Corporation Contact Details : Address : 103, Armaan Residency, R. W Sawant Road, Nr. Golden Dyes Naka, Thane (w), Maharashtra, India, Pin : 400601. TeleFax : +91-22-21720108, +91-22-21720109 Mobile : +919820715876 Website : http://www.anantcorp.com Blog : http://www.anantcorp.com/blog/?author=2 On Thu, Jan 20, 2011 at 10:58 AM, Prawesh Shrestha <prawesh.shrestha@yipl.com.np> wrote:
Dear Kale, Thank you very much for your response. Yes, its Devanagari Script. How long do I have to wait for the details? With regards, -- Prawesh Shrestha Project Engineer --------------------------------------------- Young Innovations Pvt. Ltd. GPO 8976 EPC 241 Pulchowk, Lalitpur, Nepal Tel: +977-01 2291892
http://yipl.com.np info[at]yipl[dot]com[dot]np ----------------------------------------------------
Koustubha Kale wrote
What details? Koha will support Unicode input out of the box, so just start making your entries.
Or if you are not comfortable applying patches etc you can follow following procedure..
#sudo apt-get install libicu-dev libicu38 yaz-icu
Copy following files from /usr/share/idzebra-2.0/tab/ to /etc/koha/zebradb/etc/ icu.idx phrases-icu.xml string.chr words-icu.xml
Copy /etc/koha/zebradb/etc/words-icu.xml to /etc/koha/zebradb/etc/icu.xml
Edit /etc/koha/zebradb/etc/icu.xml change <icu_chain locale="en"> to <icu_chain locale="en_IN.UTF-8"> Save and change ownership of all copied files to koha:koha
#sudo chown -R koha:koha /etc/koha/zebradb/etc
My purpose : I want to enable arabic searching I've got this error after running : #sudo chown -R koha:koha /etc/koha/zebradb/etc root@koha:/usr/share/idzebra-2.0/tab# sudo chown -R koha:koha /etc/koha/zebradb/etc chown: invalid user: `koha:koha' root@koha:/usr/share/idzebra-2.0/tab# Should i change chown -R koha:koha /etc/koha/zebradb/etc to chown -R root:root/etc/koha/zebradb/etc ?? Or what should i do? Sorry to suddenly jump into this discussion. Regards, bidadatun -- View this message in context: http://koha.1045719.n5.nabble.com/Can-we-use-Unicode-to-enter-records-tp3347... Sent from the Koha-general mailing list archive at Nabble.com.
You do have the koha user created, right?
sudo grep koha /etc/passwd
If so, try the following syntax:
sudo chown -R koha.koha /path/to/somedir
Greg -- Greg Lawson Network Administrator Rolling Hills Consolidated Library 1912 N. Belt Highway St. Joseph, MO 64506 ------------------- On 10/15/2012 04:24 AM, bidadatun wrote:
Koustubha Kale wrote
What details? Koha will support Unicode input out of the box, so just start making your entries.
Or if you are not comfortable applying patches etc you can follow following procedure..
#sudo apt-get install libicu-dev libicu38 yaz-icu
Copy following files from /usr/share/idzebra-2.0/tab/ to /etc/koha/zebradb/etc/ icu.idx phrases-icu.xml string.chr words-icu.xml
Copy /etc/koha/zebradb/etc/words-icu.xml to /etc/koha/zebradb/etc/icu.xml
Edit /etc/koha/zebradb/etc/icu.xml change <icu_chain locale="en"> to <icu_chain locale="en_IN.UTF-8"> Save and change ownership of all copied files to koha:koha
#sudo chown -R koha:koha /etc/koha/zebradb/etc
My purpose : I want to enable arabic searching
I've got this error after running : #sudo chown -R koha:koha /etc/koha/zebradb/etc
root@koha:/usr/share/idzebra-2.0/tab# sudo chown -R koha:koha /etc/koha/zebradb/etc chown: invalid user: `koha:koha' root@koha:/usr/share/idzebra-2.0/tab#
Should i change chown -R koha:koha /etc/koha/zebradb/etc to chown -R root:root/etc/koha/zebradb/etc ??
Or what should i do? Sorry to suddenly jump into this discussion.
Regards, bidadatun
Thanks greg, This is the result :
root@koha:~# sudo grep koha /etc/passwd adminkoha:x:1000:1000:AdminKoha,,,:/home/adminkoha:/bin/bash insaniah-koha:x:1001:1001:Koha instance insaniah-koha,,,:/var/lib/koha/insaniah:/bin/bash
So, for this part : Save and change ownership of all copied files to koha:koha #sudo chown -R koha:koha /etc/koha/zebradb/etc I've run the command this way :
sudo chown -R adminkoha:adminkoha /etc/koha/zebradb/etc
It just fine, no error appear. So i just continue.. Edit /etc/koha/zebradb/zebra-biblios.cfg add line index: icu.idx Restart zebra server and queue daemons #sudo /etc/init.d/koha-common restart Rebuild zebra index #sudo KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -r -v And this is what I've got : REINDEXING zebra ==================== 09:30:58-16/10 zebraidx(20438) [warn] Unknown register type: 0 09:30:58-16/10 zebraidx(20438) [warn] Unknown register type: n 09:30:58-16/10 zebraidx(20438) [warn] Unknown register type: y 09:30:58-16/10 zebraidx(20438) [warn] Unknown register type: d 09:32:37-16/10 zebraidx(20452) [warn] previous transaction didn't reach commit ==================== CLEANING ==================== At this point, my catalogue searching is not working at all, even for english language. What should i do?? Then, i try to follow this : http://wiki.koha-community.org/wiki/Encoding_and_Character_Sets_in_Koha for locale part : root@koha:~# locale LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= root@koha:~# root@koha:~# locale -a C en_US.utf8 POSIX root@koha:~# So, what's next ?? Lots of thanks in advance, bidadatun glaws wrote
You do have the koha user created, right?
sudo grep koha /etc/passwd
If so, try the following syntax:
sudo chown -R koha.koha /path/to/somedir
Greg
-- View this message in context: http://koha.1045719.n5.nabble.com/Can-we-use-Unicode-to-enter-records-tp3347... Sent from the Koha-general mailing list archive at Nabble.com.
participants (3)
-
bidadatun -
glaws -
Koustubha Kale