Training manual
Application for training of hand-written input recognition system for UIQ-smartphones “Primetech Jot”. Version 1.4.
User manual
Installation and removal of the application
For usage of this application it is necessary to install
SUN Java Virtual Machine 1.3 or later (version 1.4 recommended), which can be freely downloaded from
http://java.sun.com For installation of upgraded version of binary database in your smartphone you may use any installed on the computer file manager which allows you to access phone C:\System\Data folder:
- Installation: Unpack PtHWRJotTrain.zip archive anywhere on hard disk (e.g., on C:\). The folder C:\PtHWRJotTrain will appear. The installation process is complete.
- Removal: For application removal, simply delete the C:\PtHWRJotTrain folder.
Folder Structure and Files Description
Folder “Samples”
Inside the application installation folder (
C:\PtHWRJotTrain in our case) there is a folder “
Samples” which contains character drawing patterns in the format UniPen. File names in this folder have the form of
layout_x.dat,

where
layout_ determines belonging of the pattern to one of the layouts:
- Main_ - main layout
- Advanced_ - advanced layout
- Extended_ - extended layout (for multistroke characters)
- Numeral_ - numeric layout

and
x is character identifier and version of the pattern in an arbitrary form. It is recommended to have 2-6 pattern versions for each character.
files
- PtHWREngine.dat is a file of binary pattern database. This file:
- o is created with the help of this training application with the use of data from the folder “Samples”;
- is used by the training program for displaying help information about existing patterns;
- must be copied to the smartphone for use in the hand-written input recognition system.
- hwr.jar, dbgen.bat and train.bat are files used by the training application.
WORKING WITH THE PROGRAM
Creation of a new pattern
Start program “train.bat”. A dialog window shown on Fig. 1 will appear:

Fig. 1. Main window. Red digits denote different areas.
- Area No. 1 is intended for pattern drawing. As you can see from the figure, you may draw complex patterns, consisting of several strokes (multistroke). You should draw a pattern only after entering desired information in the areas 2, 3, and 4. After drawing the pattern it will be automatically saved in the folder “Samples” with the name shown in the area No. 5.
- Area No. 2 is intended for selection of the layout of the pattern. If no parameter is selected in this area, you will not be able to save the drawn pattern.
- Area No. 3 is intended for defining the character for which you are going to draw the pattern. Attention must be paid that you have to define characters in two variants – upper and lower case. It is necessary to input lower case character in the field char and upper case character in the field CHAR. You also have the possibility to define the character with the use of its code in the UNICODE format. You can use fields unicode and UNICODE for lower and upper cases correspondingly. If no parameter is selected in this area, you will not be able to save the drawn pattern.
- Area No. 4 is intended for defining character identifier and pattern version for this character. For reliable working of recognition system it is necessary to have 2-6 pattern versions for each character. If no parameter is selected in this area, you will not be able to save the drawn pattern.
- Area No. 5 is an informative one. Here you may see the name of the file created in the folder “Samples” immediately after completing pattern drawing. If a file with this name already exists, you will get warning and will be prompted to overwrite the existing file or cancel creation of the new pattern file.
You may draw one character several times until you do not enjoy its representation. It is necessary to create 2-6 “beautiful/pleasant” pattern versions for each character. For some characters it is necessary to have only one pattern, if this pattern significantly differs from the others (e.g., the Cyrillic character “”).
At the bottom of the window there is a button “
Current samples”, which allows to view current character patterns (see Fig. 2), read from database file “PtHWREngine.dat”.
Attention must be paid that recently drawn patterns will not be shown in this window until you rebuild the patterns database “PtHWREngine.dat”.
Fig. 2. Current samples.ATTENTION!!!
There are two reserved characters, for which it is necessary to have a pattern:
- Character 500 (Decimal Unicode) – selecting extended layout;
- Character 501 (Decimal Unicode) – layout switching.
The absence of patterns for these characters leads to impossibility of full usage of the hand-written input recognition system “Primetech Jot”.Pattern removal
For removal of a pattern it is necessary to simply delete the corresponding file from the folder “
Samples”. For removing a complete character, it is necessary to delete all pattern versions for this symbol.
It is recommended to periodically backup the folder “Samples”.creation of binary pattern database for further usage in smartphone
Having prepared the pattern set, you may create binary pattern database
PtHWREngine.dat:
1.
Backup the existing file PtHWREngine.dat (rename it into *.bak) 2. Delete file
PtHWREngine.dat 3. Start program
dbgen.bat. You will see many points moving on the screen, which indicates that the program is running. That is all. The database is ready. All patterns from the folder “
Samples” got into the binary pattern database. You may start program
train.bat again, press the button “
Current samples” and you will see the result – updated patterns of the characters.
copying binary pattern database in smartphone
Having prepared the file
PtHWREngine.dat, you may copy it into the phone for use in hand-written input recognition system “Primetech Jot”. Just copy with the help of the file manager the file
PtHWREngine.dat in the folder
C:\System\Data of the phone.
Application Distribution
Training application is distributed without any fee.
The training application can be downloaded
here.