|
After several days of hard work, I finally installed a hand-written input method for wince 5.0. The process is actually relatively simple, but it can be because it is just getting started with Pb and it takes some time to solve any problems.
Overview
There are two ways to implement handwriting on WinCE. One is to use the ime input method, and the other is to develop an application separately to convert keys to characters. The two operating principles are as follows:
IME
Chart 1
Green Input Method
Chart 2
As for the advantages and disadvantages, I think it is best to select the latter if you provide the system to others. Try to implement it in the system.
Before adding a key pair, you must have a key pair that can generate NK. the bin project can be provided by the development board provider or created by yourself. In short, ensure that the project can be compiled normally and run properly. Integrated Input Method
The input method you want to integrate should work a lot now, but I tried several failed methods. The first thing I did wasJietong handwriting input method,If other tasks are successful, you can download them here:
Download it first: http://www.fs2you.com/files/735ef26b-1046-11dd-b2bd-0014221f3995/
The following two steps are required:
1. Set to copy the input method file to the image to be generated
2. Import the file to be modified in the registry.
Open the Pb project, parameterview-> there are two options below, one is common files, and the other is your project settings. Some of the two files are named differently. Specifically, the function scope is different. Common files applies to all Pb projects, and the scope below is a little smaller. I am using a 2440-inch board. The project name is "mini2440". There will be two more files, one is hardware specific files and the other is project specific files. The file name is not the same but the suffix is the same, similarly, the scope is different. The former applies to the setting of the same hardware project, and the latter is the setting of the project. So, I know, you just set up a separate project and try to modify it here. However, you need to understand that if you have modified the first two tasks in the Project Settings, you will be able to implement the same functions, it only takes effect when you create a new project. Select the file you want to modify based on your needs.
I only want to implement the handwriting input method in this version, so I chose to modify it in the project.
Copy the downloaded file to the * _ release corresponding release directory under the corresponding release directory.
There is no explicit rule on the location, but it should at least be in the directory to which an environment variable points. I use _ flatreleasedir, and the corresponding directory is
X:/wince500/pbworkspaces/mini2440/reldir/mini2440_armv4i_release
If you are not sure which directory you should be in, use the following steps to confirm:
Open the CMD window,
Chart 3
Input echo % _ flatreleasedir %
Chart 4
What you see is your path.
Copy the downloaded file (including the JT. reg file). Note that the copy is not directly generated in the image. You need to set
Chart 5
Open Porject. bib and enter something in the red circle on the right.
The record format in Porject. bib is
Table 1
|
Target file name |
Source file path + file name |
Storage location |
Storage Type |
For details, refer to the file setting format.
Chart 6
At this point, the four files will be copied to/windows of the target system during system compilation.
And then import the registry:
Similarly, open the project. reg file and add the following statement to the last line.
Chart 7
Okay, the settings are complete, and then-> sysgen.
Download the generated NK. bin to the target system. Enjoy the full-screen input method.
Chart 8
Chart 9
Problem
Finally, a problem occurs: when a system is generated, a warning is reported:
Regcomp: overwriting existing value [HKEY_CURRENT_USER/keyboard layout/preload/1] "default" in system registry
Regcomp: warning, syntax error on or near line 6515 of reginit. ini; line skipped.
I checked it. This is an error in the last generated reginit. ini file. The reginit. ini file is generated after the common. Reg, project. Reg, and platform. Reg files are merged. The error source is:
# Hot Key Alt + F1 for direct Switch
# Ime_hotkey_dswitch_first
[HKEY_CURRENT_USER/control panel/input method/hot keys/00000100]
"VK" = DWORD: 70
"Km" = DWORD: c001
"Ime" = DWORD: e0010804
I want to see if the format of "#" is incorrect. It should have been used for comments, but I still don't know where this is generated after searching for a long time. Finally, I guess it should be the content when selecting the wince component, but how to eliminate this warning? If you have any knowledge of this, please advise.
Statement: we have just started to get in touch with Wince and platform builder. In the summary, we have some improper points. You are welcome to correct them. In addition, we apologize for any misleading points.
Email skysailor@126.com
|