Sorting it all Out Michael Kaplan's random stuff of dubious value Be sure to read the disclaimer here first!
Prior posts in the series:
After last time, I had it impressed on me that the majoritry of the people who read this series over time will not care so much about the order of blogs as the actual information, so that posts wih settings in them before every single window is fully defined is not necessarily a bad thing.
So today we're going to do some more settings! :-)
Configuration section for text candidate list window
This is group for text candidate list window however should be inside “[Configuration]” section.
Text candidate list item should sort by keystroke order.Form of keystroke sort is:KeystrokeSort = integer valueWhere: 0 - turn off keystroke sort (default) Not 0 – turn on keystroke sort
Text candidate list item should sort by text string order.Form of text sort is:TextSort = integer valueWhere: 0 - turn off text sort (default) Not 0 – turn on text sort
Form of hide text candidate list window is:CandidateList.Text.HideWindow = integer valueWhere: 0 - show text candidate window (default) Not 0 – hide text candidate window
When convert some keystroke and result of text candidate list item is only one item or if phrase file is available however doesn’t find match phrase list with converted key, then converted key should finalized.Form of conversion only one item is:Composition.ConversionOnlyOneItem = integer valueWhere: 0 - turn off conversion only one item (default) Not 0 – turn on conversion only one item
For example, Chinese Traditional Array, keystroke “AAES” has only one text string as "虣", and phrase file doesn’t have it character. In this keystroke, character "虣" is finalized when press Conversion key.
When convert some keystroke and result of text candidate list item is only one item or if phrase file is available however doesn’t find match phrase list with converted key, then converted key should finalized.Form of conversion only one item on convert is:Composition.ConversionOnlyOneItemOnConvert = integer valueWhere: 0 - turn off conversion only one item on convert (default) Not 0 – turn on conversion only one item on convert
For example, Chinese Traditional DaYi, keystroke “,,,” has only one text string as “劦”, and phrase file doesn’t have it character. In this keystroke, character “劦” is finalized when press Conversion key.
You might be wondering at this point: What is different with ConversionOnlyOneItem and ConversionOnlyOneItemOnConvert? Imagine you have two different profiles (one with each setting). Both profiles defined below strings which particular keystroke should be one candidate converted string. [Text]"KB" = "㎅""MB" = "㎆""GB" = "㎇""Hz" = "㎐""kHz" = "㎑""MHz" = "㎒""GHz" = "㎓""THz" = "㎔" In “ConversionOnlyOneItem” profile, when we type “kb”, then converted string “㎅” is finalized immediately. On the other hand, in “ConversionOnlyOneItemOnConvert” profile, when we type “kb”, then converted string “㎅” is not yet finalized until we press Convert key.
You might be wondering at this point: What is different with ConversionOnlyOneItem and ConversionOnlyOneItemOnConvert?
Imagine you have two different profiles (one with each setting). Both profiles defined below strings which particular keystroke should be one candidate converted string.
[Text]"KB" = "㎅""MB" = "㎆""GB" = "㎇""Hz" = "㎐""kHz" = "㎑""MHz" = "㎒""GHz" = "㎓""THz" = "㎔"
In “ConversionOnlyOneItem” profile, when we type “kb”, then converted string “㎅” is finalized immediately.
On the other hand, in “ConversionOnlyOneItemOnConvert” profile, when we type “kb”, then converted string “㎅” is not yet finalized until we press Convert key.
Configuration section for phrase candidate list window
This is group for phrase list window however should be inside “[Configuration]” section.
Phrase candidate list item should sort by phrase string order.Form of phrase sort is:PhraseSort = integer valueWhere: 0 - turn off phrase sort (default) Not 0 – turn on phrase sort
If profile doesn’t have phrase file, however would like to shows some phrase which browse from text dictionary, then turn this switch on.Form of make phrase from text is:MakePhraseFromText = integer value
For example, Chinese Simplified QuanPin, keystroke “ZHONG” shows some texts and select one item which “中”, then Table Driven TIP makes phrase list as start “中” character into text dictionary which phrase list corrected below:
"zhongbiao"="中标""zhongbu"="中部""zhongceng"="中层""zhongdang"="中档""zhongdeng"="中等""zhongdengche"="中等城市""zhongdengjia"="中等教育"
Form of hide phrase candidate list window is:CandidateList.Phrase.HideWindow = integer valueWhere: 0 - show phrase candidate window (default) Not 0 – hide phrase candidate window
Show title on phrase candidate window with specified string.Form of title of phrase candidate list window is:CandidateList.Phrase.Title = String value
For example, Chinese Traditional DaYi has “Shift + Numeric” string in title bar when keystroke “A”+”Space”+”Space”.
For select an item in phrase candidate list by keyboard, could be specified some modifier value.Form of modifier of phrase candidate list window is:CandidateList.Phrase.Modifier = Modifier valueWhere: Modifier value is TF_MOD_xxx value, as previously discussed here.
For example, Chinese Tradition DaYi has TF_MOD_SHIFT which phrase candidate item should finalized by Shift + Numeric key.
Preserved key section
Preserved key section should begin as “[PreservedKey]” section name. Table Driven TIP could specify below three preserved keys: IME mode Full / Half character width as called Double/Single byte Punctuation switch Each preserved key has similar item which is: GUID value (required if support preserved key)Each Table Driven TIP’s language profile and each preserved key need to specify unique GUID value if target language profile need to use proper preserved key. Preserved key (required if support preserved key)Define preserved key as Key code value. Description (optional)Define description of this preserved key. Initial state (optional)Define initial status of this preserved key. In [PreservedKey] section, Table Driven TIP could see the below definitions specified: Preserved key section for IME modeGuidImeMode = GUID valueKeyDefineImeMode = Key code valueDescriptionImeMode = String valueImeMode = integer value Preserved key section for Double/Single byteGuidDoubleSingleByte = GUID valueKeyDefineDoubleSingleByte = Key code valueDescriptionDoubleSingleByte = String valueDoubleSingleByte = integer value Preserved key section for PunctuationGuidPunctuation = GUID valueKeyDefinePunctuation = Key code valueDescriptionPunctuation = String valuePunctuation = integer value
Preserved key section should begin as “[PreservedKey]” section name.
Table Driven TIP could specify below three preserved keys:
Each preserved key has similar item which is:
In [PreservedKey] section, Table Driven TIP could see the below definitions specified:
Preserved key section for IME modeGuidImeMode = GUID valueKeyDefineImeMode = Key code valueDescriptionImeMode = String valueImeMode = integer value Preserved key section for Double/Single byteGuidDoubleSingleByte = GUID valueKeyDefineDoubleSingleByte = Key code valueDescriptionDoubleSingleByte = String valueDoubleSingleByte = integer value Preserved key section for PunctuationGuidPunctuation = GUID valueKeyDefinePunctuation = Key code valueDescriptionPunctuation = String valuePunctuation = integer value
Preserved key section for IME modeGuidImeMode = GUID valueKeyDefineImeMode = Key code valueDescriptionImeMode = String valueImeMode = integer value
Preserved key section for Double/Single byteGuidDoubleSingleByte = GUID valueKeyDefineDoubleSingleByte = Key code valueDescriptionDoubleSingleByte = String valueDoubleSingleByte = integer value
Preserved key section for PunctuationGuidPunctuation = GUID valueKeyDefinePunctuation = Key code valueDescriptionPunctuation = String valuePunctuation = integer value
Language bar section
Language bar section should begin as “[LanguageBar]” section name. Table Driven TIP can specify the below three language bars: IME mode Full / Half character width as called Double/Single byte Punctuation switch Each language bar has similar items, which are: Description (required if language bar item is supported) Tooltip description (required if language bar item is supported) Enable / Disable language bar item (optional) Button ON icon file (optional) Button ON icon index (optional) Button OFF icon file (optional) Button OFF icon index (optional) The icon file/index entries are the same as were prevuously discussed here. In [LanguageBar] section, Table Driven TIP could specifiy the following definitions: Language bar section for IME modeDescriptionImeMode = String valueTooltipImeMode = String valueEnableImeMode = integer valueImeModeOnIcon = Path and file name valueImeModeOnIconIndex = integer value or predefined valueImeModeOffIcon = Path and file name valueImeModeOffIconIndex = integer value or predefined value Language bar section for Double/Single byteDescriptionDoubleSingleByte = String valueTooltipDoubleSingleByte = String valueEnableDoubleSingleByte = integer valueDoubleSingleByteOnIcon = Path and file name valueDoubleSingleByteOnIconIndex = integer value or predefined valueDoubleSingleByteOffIcon = Path and file name valueDoubleSingleByteOffIconIndex = integer value or predefined value Language bar section for PunctuationDescriptionPunctuation = String valueTooltipPunctuation = String valueEnablePunctuation = integer valuePunctuationOnIcon = Path and file name valuePunctuationOnIconIndex = integer value or predefined valuePunctuationOffIcon = Path and file name valuePunctuationOffIconIndex = integer value or predefined value
Language bar section should begin as “[LanguageBar]” section name.
Table Driven TIP can specify the below three language bars:
Each language bar has similar items, which are:
The icon file/index entries are the same as were prevuously discussed here.
In [LanguageBar] section, Table Driven TIP could specifiy the following definitions:
Language bar section for IME modeDescriptionImeMode = String valueTooltipImeMode = String valueEnableImeMode = integer valueImeModeOnIcon = Path and file name valueImeModeOnIconIndex = integer value or predefined valueImeModeOffIcon = Path and file name valueImeModeOffIconIndex = integer value or predefined value
Language bar section for Double/Single byteDescriptionDoubleSingleByte = String valueTooltipDoubleSingleByte = String valueEnableDoubleSingleByte = integer valueDoubleSingleByteOnIcon = Path and file name valueDoubleSingleByteOnIconIndex = integer value or predefined valueDoubleSingleByteOffIcon = Path and file name valueDoubleSingleByteOffIconIndex = integer value or predefined value
Language bar section for PunctuationDescriptionPunctuation = String valueTooltipPunctuation = String valueEnablePunctuation = integer valuePunctuationOnIcon = Path and file name valuePunctuationOnIconIndex = integer value or predefined valuePunctuationOffIcon = Path and file name valuePunctuationOffIconIndex = integer value or predefined value
Shortcut section
Table Driven TIP could define shortcut keys for text candidate list. In [Candidate.Shortcut.Original] section, form is below and integer value is mentioned as item number in candidate list. “Key” = integer value
Table Driven TIP could define shortcut keys for text candidate list.
In [Candidate.Shortcut.Original] section, form is below and integer value is mentioned as item number in candidate list.
“Key” = integer value
Next part, I'll finish up the definitions by defining the actual content sections of the file, and jump into some more examples. Stay tuned!