Sunday, March 25, 2012

Simplified and Traditional Chinese characters translation in LibreOffice on Debian Linux

LibreOffice (version 3.5.1) can help me to translate some Simplified Chinese (SC, 簡體中文) characters into Traditional Chinese (TC, 正體、繁體中文) characters.

However, I should add more terms to make this function more usable. For example, "咨询" in SC should be "諮詢" in TC。

Here is how to improve the SC-to-TC function:

In Terminal, type:

gedit /home/nameOfTheUser/.config/libreoffice/3/user/wordbook/ChineseS2T.tcd

Copy and paste the contents below:



<?xml version="1.0" encoding="UTF-8"?>
<tcd:text-conversion-dictionary xmlns:tcd="http://openoffice.org/2003/text-conversion-dictionary" tcd:package="org.openoffice.Office" tcd:lang="zh-CN" tcd:conversion-type="Chinese simplified / Chinese traditional">
<!--
    Begin: Add terms
 -->
<tcd:entry tcd:left-text="咨询" tcd:property-type="0"><tcd:right-text>諮詢</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="模范" tcd:property-type="1"><tcd:right-text>模範</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="情系祖国" tcd:property-type="1"><tcd:right-text>情繫祖國</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="同样" tcd:property-type="1"><tcd:right-text>同樣</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="几乎" tcd:property-type="1"><tcd:right-text>幾乎</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="不同" tcd:property-type="1"><tcd:right-text>不同</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="家里" tcd:property-type="1"><tcd:right-text>家裏</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="干活" tcd:property-type="1"><tcd:right-text>幹活</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="要么" tcd:property-type="1"><tcd:right-text>要麼</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="几十" tcd:property-type="1"><tcd:right-text>幾十</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text=",并" tcd:property-type="1"><tcd:right-text>,並</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="最后" tcd:property-type="1"><tcd:right-text>最後</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="几个" tcd:property-type="1"><tcd:right-text>幾個</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="历史" tcd:property-type="1"><tcd:right-text>歷史</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="那么" tcd:property-type="1"><tcd:right-text>那麼</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="杰出" tcd:property-type="1"><tcd:right-text>傑出</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="并对" tcd:property-type="1"><tcd:right-text>並對</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="咨委会" tcd:property-type="1"><tcd:right-text>諮委會</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="准备" tcd:property-type="1"><tcd:right-text>準備</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="亲历" tcd:property-type="1"><tcd:right-text>親歷</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="吁请" tcd:property-type="1"><tcd:right-text>籲請</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="视同" tcd:property-type="1"><tcd:right-text>視同</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="表里" tcd:property-type="1"><tcd:right-text>表裏</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="并不看好" tcd:property-type="1"><tcd:right-text>並不看好</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="先后" tcd:property-type="1"><tcd:right-text>先後</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="业余" tcd:property-type="1"><tcd:right-text>業餘</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="同年" tcd:property-type="1"><tcd:right-text>同年</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="同行" tcd:property-type="1"><tcd:right-text>同行</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="呼吁" tcd:property-type="1"><tcd:right-text>呼籲</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="赞同" tcd:property-type="1"><tcd:right-text>贊同</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="那里" tcd:property-type="1"><tcd:right-text>那裏</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="什么" tcd:property-type="1"><tcd:right-text>甚麼</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="然后" tcd:property-type="1"><tcd:right-text>然後</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="同时" tcd:property-type="1"><tcd:right-text>同時</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="关系" tcd:property-type="1"><tcd:right-text>關係</tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="不同" tcd:property-type="1"><tcd:right-text>不同</tcd:right-text></tcd:entry>
<!--
    The tags below are for adding new terms. They are copies of the same tags.
 -->

<tcd:entry tcd:left-text="" tcd:property-type="1"><tcd:right-text></tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="" tcd:property-type="1"><tcd:right-text></tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="" tcd:property-type="1"><tcd:right-text></tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="" tcd:property-type="1"><tcd:right-text></tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="" tcd:property-type="1"><tcd:right-text></tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="" tcd:property-type="1"><tcd:right-text></tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="" tcd:property-type="1"><tcd:right-text></tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="" tcd:property-type="1"><tcd:right-text></tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="" tcd:property-type="1"><tcd:right-text></tcd:right-text></tcd:entry>
<tcd:entry tcd:left-text="" tcd:property-type="1"><tcd:right-text></tcd:right-text></tcd:entry>
<!--
    The tags above are for adding new terms. They are copies of the same tags.
 -->

</tcd:text-conversion-dictionary>


Save the file. Restart LibreOffice.

Click on Tools, Language, Chinese Conversion, Simplified Chinese to Traditional Chinese, Translate Common Terms, Edit Common Terms, Simplified Chinese to Traditional Chinese, OK and OK.

No comments: