自製scim內的輸入法
(本人習慣使用快倉六加上自行修改的輸入法,因為是獨一無二,所以DIY是一定要的啦)
編輯好CangJie6.txt(可以檔名自己命名) 內容如下
-----------------------------------------------------------------------
### 存成 UTF-8.
### This file comes from xcin module.
SCIM_Generic_Table_Phrase_Library_TEXT
VERSION_1_0
### 開始定義表格檔.
BEGIN_DEFINITION
### An unique id to distinguish this table among others.
### 執行 uuidgen 取得 UUID,並複製取代到下行.
UUID = 49e3b641-8ac6-46f4-8900-b458c2391a6f
### 序號可以不改.
### For example the last modified date of this file.
### This number must be less than 2^32.
SERIAL_NUMBER = 20060414.57
ICON = @SCIM_ICONDIR@/liu5.png
### 預設默認名稱
NAME = Liu5
### 輸入法名稱
NAME.zh_CN = 許氏倉頡
NAME.zh_TW = 許氏倉頡
NAME.zh_HK = 許氏倉頡
### 支援語言
LANGUAGES = zh_TW,zh_HK,zh_CN,zh_SG
### 輸入法狀態列顯示的字.
STATUS_PROMPT = 中
### If true then the first candidate phrase
### will be selected automatically during inputing.
AUTO_SELECT = TRUE
### 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 inputted 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
ALWAYS_SHOW_LOOKUP = TRUE
### 預設為全形標點符號
DEF_FULL_WIDTH_PUNCT = TRUE
### 預設為半形標點符號
DEF_FULL_WIDTH_LETTER = FALSE
### 最大輸入字根數.
MAX_KEY_LENGTH = 8
### 可用字根之鍵盤映對字.
VALID_INPUT_CHARS = abcdefghijklmnopqrstuvwxyz,.[]
### 單一字根查詢字元.
### SINGLE_WILDCARD_CHAR = ?
### 多字根查詢字元.
MULTI_WILDCARD_CHAR = *
### The key strokes to split inputted string.
SPLIT_KEYS = quoteright
### 入字鍵.
COMMIT_KEYS = space
### The key strokes to forward the inputted string to client.
FORWARD_KEYS = Return
### 選字鍵.
SELECT_KEYS = 1,2,3,4,5,6,7,8,9,0
### 翻上一頁鍵.
PAGE_UP_KEYS = Page_Up,comma,minus
### 翻下一頁鍵.
PAGE_DOWN_KEYS = Page_Down,period,equal
END_DEFINITION
### 輸入法編碼開始處.
BEGIN_TABLE
###這裡是字表
a 日
aa 昌
aaa 間
.
.
.
END_TABLE
--------------------------------------------------------------------
下指令:
sudo scim-make-table CangJie6.txt -b -o CangJie6.bin
sudo cp CangJie6.bin /usr/share/scim/tables
重新登入
沒有留言:
張貼留言