因為最近灌了ubuntu8.0.4 在2133 上面,所以接著來的就是輸入中文的問題,好死不死的我會的又只有嘸蝦米這一千零一種輸入法,所以只好孤狗一下看有沒有類似的解決方案。
原則上,你必需要有嘸蝦米的字碼檔(liu55.cin)
Step1: iconv -f cp950 -t utf-8 liu55.cin > liu55.cin.utf8 (將該檔編碼由big5 改為 utf-8,並轉存為liu55.cin.utf8)
Step2: 修正liu55.cin.utf8中的資訊,將字碼表前的資料全部清空,改成下列設定(字碼表為 類似a  A... 這玩意的)
(###開頭的為註解,可有可無,但為了增加辨識度,一般都還是建議加上去)
-------------------------------------------------------------------------------------------------
 ### File header must not be modified 
 ### This file must be encoded into UTF-8. 
 ### This file comes from xcin module. 
 SCIM_Generic_Table_Phrase_Library_TEXT 
 VERSION_1_0 
 ### Begin Table definition. 
 BEGIN_DEFINITION 
 ### An unique id to distinguish this table among others. 
 ### Use uuidgen to generate this kind of id. 
 UUID = 3d872a7a-760e-400c-8b23-688d38390e81 
 ### A unique number indicates the version of this file. 
 ### For example the last modified date of this file. 
 ### This number must be less than 2^32. 
 SERIAL_NUMBER = 20040922 
 ICON = /usr/share/scim/icons/liu5.png 
 ### The default name of this table 
 NAME = Liu5 
 ### The local names of this table  
 NAME.zh_CN = 嘸蝦米 
 NAME.zh_TW = 嘸蝦米 
 NAME.zh_HK = 嘸蝦米 
 ### Supported languages of this table 
 LANGUAGES = zh_TW,zh_HK,zh_CN,zh_SG 
 ### Prompt string to be displayed in the status area. 
 STATUS_PROMPT = 中 
 ### If true then the first candidate phrase 
 ### will be selected automatically during inputing. 
 AUTO_SELECT = FALSE 
 ### If true then a multi wildcard will be appended 
 ### at the end of inputing string automatically. 
 AUTO_WILDCARD = TRUE 
 ### If true then the result string will be committed to client automatically. 
 ### This should be used with AUTO_SELECT = TRUE. 
 AUTO_COMMIT = FALSE 
 ### If true then the inputed string will be automatically splitted during inputing. 
 AUTO_SPLIT = TRUE 
 ### If true then the phrases' frequencies will be adjusted dynamically. 
 DYNAMIC_ADJUST = TRUE 
 ### If true then the preedit area will be filled up by the current candidate phrase automatically. 
 AUTO_FILL = FALSE 
 ### If true then the lookup table will always be shown if there is any candidate phrase. 
 ### Otherwise the lookup table won't be shown unless the user requires it by moving the preedit caret left. 
 ALWAYS_SHOW_LOOKUP = TRUE 
 ### Use full width punctuation by default 
 DEF_FULL_WIDTH_PUNCT = TRUE 
 ### Use full width letter by default 
 DEF_FULL_WIDTH_LETTER = FALSE 
 ### The maxmium length of a key. 
 MAX_KEY_LENGTH = 4 
 ### Valid input chars. 
 VALID_INPUT_CHARS = ,.'abcdefghijklmnopqrstuvwxyz[] 
 ### Single wildcard char, can have multiple chars. 
 SINGLE_WILDCARD_CHAR = ? 
 ### Multi wildcard char. 
 MULTI_WILDCARD_CHAR = * 
 ### The key strokes to split inputed string. 
 SPLIT_KEYS = space 
 ### The key strokes to commit the convert result to client. 
 COMMIT_KEYS = space 
 ### The key strokes to forward the inputed string to client. 
 FORWARD_KEYS = Return 
 ### The key strokes to select candidiate phrases. 
 SELECT_KEYS = space,v,3,4,5,6,7,8,9,0 
 ### The key strokes to page up the lookup table. 
 PAGE_UP_KEYS = Page_Up 
 ### The key strokes to page down the lookup table. 
 PAGE_DOWN_KEYS = Page_Down,space 
 END_DEFINITION 
 ### Begin Table data. 
 BEGIN_TABLE
(...... 一堆五四三的字碼對應資料 ,最後再加上這一行)
END_TABLE
-------------------------------------------------------------------------------------------------
 Step3: 
scim-make-table liu55.cin.utf8 -b -o liu.bin (將 liu55.cin.utf8 轉成 scim 認得的 liu.bin 檔)
Step4: 確認你輸入法的圖檔存放處,可執行  dpkg -L scim-tables-zh (一般應該是存放在 /usr/share/scim/icons/ 底下)
Step5: 將下列圖檔存入該目錄中
Step6: 將liu.bin 複製到 /usr/share/scim/tables 目錄中
sudo cp liu.bin /usr/share/scim/tables/Liu5.bin
Step7: 重啟你的xwindows (一般我都直接重開機 XD)
感謝Tsung's Blog中提供的相關資料,資料來源:
Tsung's Blog