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 ]