Blame tables/template.txt

Packit Service db4263
### File header must not be modified
Packit Service db4263
### This file must be encoded into UTF-8.
Packit Service db4263
### This table under LGPL
Packit Service db4263
### comments start with ### not single #
Packit Service db4263
### Derive from the format of SCIM Table, so you can modify the table from
Packit Service db4263
### scim-tables' table
Packit Service db4263
SCIM_Generic_Table_Phrase_Library_TEXT
Packit Service db4263
VERSION_1_0
Packit Service db4263
Packit Service db4263
### Begin Table definition.
Packit Service db4263
BEGIN_DEFINITION
Packit Service db4263
Packit Service db4263
### License
Packit Service db4263
LICENSE = LGPL
Packit Service db4263
Packit Service db4263
### An unique id to distinguish this table among others.
Packit Service db4263
### Use uuidgen to generate this kind of id.
Packit Service db4263
UUID = c9851827-0abe-12ed-8db5-010b9d51ffed
Packit Service db4263
Packit Service db4263
### A unique number indicates the version of this file.
Packit Service db4263
### For example the last modified date of this file.
Packit Service db4263
### This number must be less than 2^32.
Packit Service db4263
### Just make your table version-able
Packit Service db4263
SERIAL_NUMBER = 20090218
Packit Service db4263
Packit Service db4263
### ICON can be any format as long as your pygtk can recognized
Packit Service db4263
### the most widely ones are "png" and "svg", letter one is recommended
Packit Service db4263
ICON = ibus-table.svg
Packit Service db4263
Packit Service db4263
### The symbol to be displayed in IM switchers
Packit Service db4263
SYMBOL = 码
Packit Service db4263
Packit Service db4263
### The default name of this table, this is needed
Packit Service db4263
NAME = Table
Packit Service db4263
Packit Service db4263
### The local names of this table, this is optional
Packit Service db4263
NAME.zh_CN = 形码
Packit Service db4263
NAME.zh_HK = 形碼
Packit Service db4263
NAME.zh_TW = 形碼
Packit Service db4263
Packit Service db4263
### Description
Packit Service db4263
DESCRIPTION = This is a template engine table for IBus Table.
Packit Service db4263
Packit Service db4263
### Supported languages of this table
Packit Service db4263
### sigle "zh_CN" just be recognized as zh_CN,
Packit Service db4263
### but "zh_CN, zh_HK" or more zh_XX will be recognized as zh;
Packit Service db4263
### and "en_US, zh_CN" will be just ignored.
Packit Service db4263
LANGUAGES = zh_CN,zh_SG,zh_TW,zh_HK
Packit Service db4263
Packit Service db4263
### The author of this table
Packit Service db4263
AUTHOR = Yu Yuwei <acevery@gmail.com> 
Packit Service db4263
Packit Service db4263
### Prompt string to be displayed in the status area, CN will be replaced by
Packit Service db4263
### the gettext tools in runtime as 中.
Packit Service db4263
STATUS_PROMPT = CN
Packit Service db4263
Packit Service db4263
### Valid input chars.
Packit Service db4263
VALID_INPUT_CHARS = abcdefghijklmnopqrstuvwxyz
Packit Service db4263
Packit Service db4263
### Layout
Packit Service db4263
LAYOUT = us
Packit Service db4263
Packit Service db4263
### The max number of input keys for every phrase or character.
Packit Service db4263
MAX_KEY_LENGTH = 4
Packit Service db4263
Packit Service db4263
### Use auto_commit mode as default
Packit Service db4263
AUTO_COMMIT = FALSE
Packit Service db4263
Packit Service db4263
### Automatically selects the first phrase when typing
Packit Service db4263
AUTO_SELECT = FALSE
Packit Service db4263
Packit Service db4263
### Use full width punctuation by default
Packit Service db4263
DEF_FULL_WIDTH_PUNCT = TRUE
Packit Service db4263
### Not use full width letter by default
Packit Service db4263
DEF_FULL_WIDTH_LETTER = FALSE
Packit Service db4263
Packit Service db4263
### Whether user are allow to define phrase, default is true
Packit Service db4263
### You have to define the word construction rules below.
Packit Service db4263
### For input methods which do not input phrases, set this to False
Packit Service db4263
USER_CAN_DEFINE_PHRASE = TRUE
Packit Service db4263
Packit Service db4263
### Whether support PinYin Mode, default is true.
Packit Service db4263
### this feature is just for Chinese, set it to False if your IM is not
Packit Service db4263
### Chinese.
Packit Service db4263
PINYIN_MODE = TRUE
Packit Service db4263
Packit Service db4263
### If true then the phrases' frequencies will be adjusted dynamically
Packit Service db4263
### according your using frequency.
Packit Service db4263
DYNAMIC_ADJUST = TRUE 
Packit Service db4263
Packit Service db4263
### Some characters whose frequencies should be fix all the time, e.g. 
Packit Service db4263
### some punctuations
Packit Service db4263
### NO_CHECK_CHARS = 
Packit Service db4263
Packit Service db4263
### Rules for constructing user defined phrase
Packit Service db4263
### "ce" stands for "ci equal", a Chinese English :), means "phrase length
Packit Service db4263
### equal to", thus ce2 -> phrase length equal to 2; and "ca" means "phrase
Packit Service db4263
### length equal or above", so ca4 -> phrase length equal or above 4.
Packit Service db4263
### p21 -> the 1st key of 2nd character in the phrase, and so on.
Packit Service db4263
### Each rule separate via ";". 
Packit Service db4263
### Example below is a complete rule-set, 
Packit Service db4263
### becuase [2,2] ∩ [3,3] ∩ [4,+∞] = [2,+∞], which is the range of length
Packit Service db4263
### of phrase. This have to be satisfied if you need ibus-table to build up
Packit Service db4263
### your own inputed phrase via your daily using.
Packit Service db4263
RULES = ce2:p11+p12+p21+p22;ce3:p11+p21+p22+p31;ca4:p11+p21+p31+p41
Packit Service db4263
Packit Service db4263
### The key strokes to page up the lookup table.
Packit Service db4263
### PAGE_UP_KEYS = Page_Up,KP_Page_Up,minus,comma
Packit Service db4263
Packit Service db4263
### The key strokes to page down.
Packit Service db4263
### PAGE_DOWN_KEYS = Page_Down,KP_Page_Down,equal,period
Packit Service db4263
Packit Service db4263
### The key strokes to select candidiate phrases.
Packit Service db4263
### Usually "1,2,3,4,5,6,7,8,9" but if this conflicts with
Packit Service db4263
### characters one wants to use for input one can also
Packit Service db4263
### use something like “F1,F2,F3,F4,F5,F6,F7,F8,F9”
Packit Service db4263
SELECT_KEYS = 1,2,3,4,5,6,7,8,9
Packit Service db4263
Packit Service db4263
### The default orientation of the candidate list
Packit Service db4263
### TRUE means the candidate list is vertical, FALSE means it is vertical
Packit Service db4263
ORIENTATION=TRUE
Packit Service db4263
Packit Service db4263
END_DEFINITION
Packit Service db4263
Packit Service db4263
### Begin Table data.
Packit Service db4263
### Format of every line whose formated in "input_keys\tphrase\tfreq\n" is an
Packit Service db4263
### entry.
Packit Service db4263
### From left to right, the 1st column are the input key combination that you
Packit Service db4263
### entered via keyboard; the 2nd column are presented character or phrase of
Packit Service db4263
### the key combination you want; the 3rd column are frequency of the character
Packit Service db4263
### or phrase.
Packit Service db4263
BEGIN_TABLE
Packit Service db4263
input_keys	aim_chars	freq
Packit Service db4263
input_keys	aim_chars	freq
Packit Service db4263
input_keys	aim_chars	freq
Packit Service db4263
END_TABlE
Packit Service db4263
Packit Service db4263
### Since some input methods use different table for every character to make
Packit Service db4263
### phrase, such as ZhengMa, they need explict define the goucima (the
Packit Service db4263
### phrase-building code for the given character), the format of every entry is
Packit Service db4263
### "character\tgoucima\n". 
Packit Service db4263
### For the input method which just use the full code as word-building code
Packit Service db4263
### just skip this field. The ibus-table will build the codes needed from
Packit Service db4263
### above TABLE.
Packit Service db4263
### if you don't need different word-building code, please comment out the
Packit Service db4263
### next few lines with ###, just like these lines you are look at now.
Packit Service db4263
BEGIN_GOUCI
Packit Service db4263
character_1	goucima_1
Packit Service db4263
character_1	goucima_2
Packit Service db4263
END_GOUCI