现在看到网络上说的手写输入法的移植方法都不怎么全,往往需要看过很多的资料才能模糊的有些头绪,现在,这边给个完整的移植方法,
为那些在WINCE战线上的研发人员做点贡献吧!!
下面的移植的输入法是蒙恬输入法,蒙恬输入法的文件可以去网站上搜寻,很容易找到。
在注册表platform.reg中,添加如下代码:
;=================== 手写输入法 ===============================================
;[HKEY_CLASSES_ROOT\CLSID\{35716243-ae04-11d0-a4f8-00aa00a749b9}]
;@="手写输入"
;"Setting_AI"=dword:00000001
;"Setting_WritingSpeed"=dword:00000003
;"Setting_PenWidth"=dword:00000002
;"Setting_PenColor"=dword:00000000
;"Setting_ShapeTypeMix"=dword:0000001f
;"Setting_ShapeTypeGB"=dword:00000009
;"Setting_ShapeTypeBig5"=dword:00000007
;"Setting_WhichShapeType"=dword:00000002
;"Setting_UseType"=dword:000005e6
;"Setting_RecogType"=dword:0000017f
;[HKEY_CLASSES_ROOT\CLSID\{35716243-ae04-11d0-a4f8-00aa00a749b9}\DefaultIcon]
;@="\\NandFlash\\InputMethod\\PPSipGB.dll,0"
;[HKEY_CLASSES_ROOT\CLSID\{35716243-ae04-11d0-a4f8-00aa00a749b9}\InProcServer32]
;@="\\NandFlash\\InputMethod\\PPSipGB.dll"
;[HKEY_CLASSES_ROOT\CLSID\{35716243-ae04-11d0-a4f8-00aa00a749b9}\IsSIPInputMethod]
;@="1"
;[HKEY_CURRENT_USER\ControlPanel\Sip]
;"AllowChange"=dword:1
;"DragStyle"=dword:1
;"DefaultIm"="{35716243-ae04-11d0-a4f8-00aa00a749b9}"
;==================================================================================
在platform.bib文件中加载蒙恬输入法的那些文件,因为比较简单,在这里就不贴代码了。。
最后编译一下BSP就可以了。。。