前段时间装正版Vista和win7,但发现以前在XP下自制五笔用的工具imegen.exe不能在该系统下运行,又不想用其它人做的五笔,于是又换回XP了。后来得知在Vista和win7下生成自制输入法微软有一套新的称为Table Driven Text Service的方法. 具体做法如下:

在文件夹%programfiles%\Windows NT\TableTextService下以管理员方式运行命令:
Rundll32 TableTextService.dll RegisterProfile WB98.txt
就可以安装自己维护的五笔了。其中WB98.txt是码表文件,格式和XP中的码表文件稍有变化,样板如下:

[System]
LangId = LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
GuidProfile={325296ed-0e31-4a3a-a899-75fbd5029735}
Description=”五笔字形98版”
Display Description=”五笔字形98版”

[Configuration]
ShowExplicitCandidateImmediately=1
ShowIncrementalCandidateImmediately=1
MakePhraseFromText=0
Wildcard=1
DisableWildcardAtFirst=1
KeystrokeSort=1
CandidateWindow.Width=13
Composition.ConversionOnlyOneItem=1

[PreservedKey]
GuidImeMode={98213494-367A-4855-90A1-97D917E3EC3D}
KeyDefineImeMode=VK_SHIFT, TF_MOD_ON_KEYUP_SHIFT_ONLY
DescriptionImeMode=”@%programFiles%\Windows NT\TableTextService\TableTextService.dll,-20″
ImeMode=1
GuidDoubleSingleByte={F1101BB8-CD65-4ceb-B5BD-8ECDD574D1D0}
KeyDefineDoubleSingleByte=VK_SPACE, TF_MOD_SHIFT
DescriptionDoubleSingleByte=”@%programFiles%\Windows NT\TableTextService\TableTextService.dll,-23″
DoubleSingleByte=0
GuidPunctuation={172D66D5-5EDE-4fb7-8B00-209BE826758D}
KeyDefinePunctuation=VK_OEM_PERIOD, TF_MOD_CONTROL
DescriptionPunctuation=”@%programFiles%\Windows NT\TableTextService\TableTextService.dll,-26″
Punctuation=1

[LanguageBar]
GuidImeMode={0e730736-8c88-41be-8ed2-e1cd3a9d6f4f}
DescriptionImeMode=”Conversion mode”
TooltipImeMode=”@%programFiles%\Windows NT\TableTextService\TableTextService.dll,-20″
EnableImeMode=1
ImeModeOnIconIndex=ICON_IME_MODE_ON
ImeModeOffIconIndex=ICON_IME_MODE_OFF
GuidDoubleSingleByte={77b49080-fb16-4c26-8926-1f878cf8817c}
DescriptionDoubleSingleByte=”Character width”
TooltipDoubleSingleByte=”@%programFiles%\Windows NT\TableTextService\TableTextService.dll,-23″
EnableDoubleSingleByte=1
DoubleSingleByteOnIconIndex=ICON_DOUBLE_SINGLE_BYTE_ON
DoubleSingleByteOffIconIndex=ICON_DOUBLE_SINGLE_BYTE_OFF
GuidPunctuation={4e50f141-94f8-4c1b-bace-581abd6bf91d}
DescriptionPunctuation=”Punctuation”
TooltipPunctuation=”@%programFiles%\Windows NT\TableTextService\TableTextService.dll,-26″
EnablePunctuation=1
PunctuationOnIconIndex=ICON_PUNCTUATION_ON
PunctuationOffIconIndex=ICON_PUNCTUATION_OFF

[Profile]
KeystrokeFile =”%programFiles%\Windows NT\TableTextService\WB98.txt”
DictionaryFile=”%programFiles%\Windows NT\TableTextService\WB98.txt”

[Keystroke.Composition]
VK_A, 0 = INPUT // A
VK_B, 0 = INPUT // B
VK_C, 0 = INPUT // C
VK_D, 0 = INPUT // D
VK_E, 0 = INPUT // E
VK_F, 0 = INPUT // F
VK_G, 0 = INPUT // G
VK_H, 0 = INPUT // H
VK_I, 0 = INPUT // I
VK_J, 0 = INPUT // J
VK_K, 0 = INPUT // K
VK_L, 0 = INPUT // L
VK_M, 0 = INPUT // M
VK_N, 0 = INPUT // N
VK_O, 0 = INPUT // O
VK_P, 0 = INPUT // P
VK_Q, 0 = INPUT // Q
VK_R, 0 = INPUT // R
VK_S, 0 = INPUT // S
VK_T, 0 = INPUT // T
VK_U, 0 = INPUT // U
VK_V, 0 = INPUT // V
VK_W, 0 = INPUT // W
VK_X, 0 = INPUT // X
VK_Y, 0 = INPUT // Y
VK_Z, 0 = INPUT // Z

[Text]
“a”=”工”
“aa”=”式”

——————————————–
注册好后,发现与xp相比,有很多不便之处,比如没有设置窗口了,看来完美的解决方法只有重新用IME或者TSF编程实现,不过工作量又有点大,以后抽时间看一下文档再说。
——————————————–

IME
2008-06-20 2 comments

Comments

  1. torosentrada.com says:

    If youre ready to take the leap from Windows Vista to Windows 7 on your computer, the process is fairly simple.

  2. rpijkla says:

    Спасибо за информацию!!!!!

    Leave a Reply to torosentrada.com Cancel reply

    Your email address will not be published. Required fields are marked *