1:为了使用WinSail V2.0的中文输入法,在main主程序中,须注册ime管理器!
int main(int argc, char** argv)
{
::AfxRegisterIme(::GlobalImeManager); //可放在任何地方,须在使用输入法前!
....
return(0);
}
这样设计的目的是由于大多数“嵌入式应用”是不需要“中文输入”,这样可以节省大约4K字节的Exe文件尺寸。
2:输入法激活键 “Ctrl + Space(空格)” 组合键。
输入法切换键 “Ctrl + 右Shift” 组合键”。
目前只支持“单字”的输入,不支持“词组”和“联想”输入。
3:输入法描述在“Config.sys”文件的字段。语法为
Ime1 = 文件名1 ;注:可含目录
Ime2 = 文件名2 ;注:可含目录
...
比较特殊的是“区位输入法”,它不用描述,系统自动加载
4:在Sail3000目录中,已经支持三个输入法
(1)全拼 -- 输入法代码文件为“Ime\winqp.ime”
(2)五笔 -- 输入法代码文件为“Ime\winwb98.ime”
(3)区位 -- 不需要输入法代码文件,系统自动加载
5:码表文件结构分为四个部份
第一部份:文件头, IME_HEAD
第二部份:哈希表, IME_HALFTABLE,指示首字符在编码表中的位置索引。
第三部份:编码表, 从小到大排列,指示每一种编码在代码表中位置、重根的符号个数。
第四部份:代码表, 编码小的在前;相同的编码按顺序排列。
6:将“
http://www.firstsail.com.cn/download/WinSail%20V2.0.rar”拷贝到地址栏,可下载WinSail V2.0。
演示程序为Sail300目录,执行“a.bat”文件或“Sail2000.exe”文件。
Last edited by firstsail on 2006-10-29 at 11:52 PM ]
1: To use the Chinese input method of WinSail V2.0, in the main program, the IME manager must be registered!
int main(int argc, char** argv)
{
::AfxRegisterIme(::GlobalImeManager); // Can be placed anywhere, but must be before using the input method!
....
return(0);
}
The purpose of such design is that most "embedded applications" do not need "Chinese input", so this can save about 4K bytes of the Exe file size.
2: The input method activation key is the "Ctrl + Space" combination key.
The input method switching key is the "Ctrl + Right Shift" combination key.
Currently, only "single character" input is supported, and "phrase" and "association" input are not supported.
3: The input method description is in the field of the "Config.sys" file. The syntax is
Ime1 = File name 1 ; Note: Can contain directory
Ime2 = File name 2 ; Note: Can contain directory
...
The special thing is "location input method", which does not need to be described, and the system automatically loads it.
4: In the Sail3000 directory, three input methods are already supported
(1) Pinyin -- The input method code file is "Ime\winqp.ime"
(2) Wubi -- The input method code file is "Ime\winwb98.ime"
(3) Location -- No input method code file is needed, the system automatically loads it.
5: The code table file structure is divided into four parts
The first part: file header, IME_HEAD
The second part: hash table, IME_HALFTABLE, indicating the position index of the first character in the code table.
The third part: code table, arranged from small to large, indicating the position in the code table and the number of symbols with the same root for each code.
The fourth part: code table, codes with smaller values come first; codes with the same value are arranged in order.
6: Copy "
http://www.firstsail.com.cn/download/WinSail%20V2.0.rar" to the address bar, and you can download WinSail V2.0.
The demo program is in the Sail300 directory, execute the "a.bat" file or the "Sail2000.exe" file.
Last edited by firstsail on 2006-10-29 at 11:52 PM ]