Cataloging没办法使用中文字体

89 views
Skip to first unread message

CHOO LY ER

unread,
Jul 4, 2019, 10:55:01 PM7/4/19
to Koha 臺灣
各位前辈们好,

我馆刚安装了KOHA,现在正在试用阶段。
但我们遇到了一个问题——cataloging时居然没办法使用中文字体!
输入资料后,按了save & add item,但是凡用中文字来输入的栏位就都变成空白。
OPAC也无法显示刚刚输入的中文字。基本上,就凡是中文字就会不见~
我们经验尚浅,没办法想通到底是什么原因……
请有经验的前辈们指点指点,拜托了~~

KOHA version:19.05.00.000

如果有需要提供的资料,请告诉我~谢谢啦~~


丽儿
--


Disclaimer: The information transmitted is solely intended for the person
or entity to which it is addressed and may contain confidential and/or
privileged material and does not necessarily represent the views of New Era
University College.If you are not the intended recipient(s), nor the
employee or agent responsible for delivering this message in confidence to
the intended recipient(s), you are hereby notified that you have received
this transmittal in error, and any review, dissemination, distribution or
copying of this transmittal or its attachments is strictly prohibited. If
you have received this transmittal and/or attachments in error, please
notify me immediately by reply e-mail and then delete this message,
including any attachments.


Visit New Era University College website at
https://www.newera.edu.my <https://www.newera.edu.my> for more information. 

David Wong

unread,
Jul 5, 2019, 8:45:16 PM7/5/19
to kohat...@googlegroups.com

Install Koha Interface Language

The following command will install traditional and simplified Chinese (Note: Koha Preference > I18N/L10N > opaclanguage and opaclanguagedisplay should be changed accordingly)


sudo koha-translate --install zh-Hans-TW

sudo koha-translate --install zh-Hans-CN


Customize Zebra to allow correct Chinese character search (zebra 搜尋中文 需要使用 ICU)


Install ICU (unicode library from IBM)     sudo apt-get install yaz-icu


Set Koha Global system preferences - UseICU: Use / QueryFuzzy: Don't try / QueryStemming: Don't try


Activate it by editing default.idx file    sudo leafpad /etc/koha/zebradb/etc/default.idx


# Traditional word index
# Used if completenss is 'incomplete field' (@attr 6=1) and
# structure is word/phrase/word-list/free-form-text/document-text
index w
completeness 0
position 1
alwaysmatches 1
firstinfield 1
# Replaced by DHW # charmap word-phrase-utf.chr
icuchain words-icu.xml

# Phrase index
# Used if completeness is 'complete {sub}field' (@attr 6=2, @attr 6=1)
# and structure is word/phrase/word-list/free-form-text/document-text
index p
completeness 1
firstinfield 1
# Replaced by DHW # charmap word-phrase-utf.chr
icuchain words-icu.xml

sudo leafpad /etc/koha/zebradb/etc/words-icu.xml - Replace contents with (reference):


<icu_chain locale="zh_TW.UTF-8">
  <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>

Koha-restart-zebra {instance}

koha-rebuild-zebra -v -f {instance}



--
群組首頁, http://groups.google.com.tw/group/kohataiwan
取消訂閱, 請寄電子郵件至 kohataiwan-...@googlegroups.com
張貼留言, 請寄電子郵件至 kohat...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Koha 臺灣" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kohataiwan+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kohataiwan/8618c1ea-e54c-438f-8a86-29226a2ad31c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages