2
2
Copyright (c) 1993-2008, Cognitive Technologies
5
����������� ��������� ��������������� � ������������� ��� � ���� ��������� ����,
6
��� � � �������� �����, � ����������� ��� ���, ��� ���������� ��������� �������:
8
* ��� ��������� ��������������� ��������� ���� ������ ���������� ���������
9
���� ����������� �� ��������� �����, ���� ������ ������� � �����������
11
* ��� ��������� ��������������� ��������� ���� � ������������ �/��� �
12
������ ����������, ������������ ��� ���������������, ������ �����������
13
��������� ���� ���������� �� ��������� �����, ���� ������ ������� �
14
����������� ����� �� ��������.
15
* �� �������� Cognitive Technologies, �� ����� �� ����������� �� �����
16
���� ������������ � �������� �������� ��������� �/��� �����������
17
���������, ���������� �� ���� ��, ��� ���������������� �����������
20
��� ��������� ������������� ����������� ��������� ���� �/��� ������� ������ "���
21
��� ����" ��� ������-���� ���� ��������, ���������� ���� ��� ���������������,
22
������� �������� ������������ �������� � ����������� ��� ���������� ����, �� ��
23
������������� ���. �� �������� ��������� ���� � �� ���� ������ ����, �������
24
����� �������� �/��� �������� �������������� ���������, �� � ���� ������ ��
25
��Ѩ� ���������������, ������� ����� �����, ���������, ����������� ���
26
������������� ������, ��������� � �������������� ��� ���������� ����������
27
������������� ������������� ��������� (������� ������ ������, ��� ������,
28
������� ���������, ��� ������ �/��� ������ �������, ���������� ��-�� ��������
29
������� ��� �/��� ������ ��������� �������� ��������� � ������� �����������,
30
�� �� ������������� ����� ��������), �� �� ������������� ���, ���� ���� �����
31
�������� ��� ������ ���� ���� �������� � ����������� ����� ������� � ������.
5
пЮГПЕЬЮЕРЯЪ ОНБРНПМНЕ ПЮЯОПНЯРПЮМЕМХЕ Х ХЯОНКЭГНБЮМХЕ ЙЮЙ Б БХДЕ ХЯУНДМНЦН ЙНДЮ,
6
РЮЙ Х Б ДБНХВМНИ ТНПЛЕ, Я ХГЛЕМЕМХЪЛХ ХКХ АЕГ, ОПХ ЯНАКЧДЕМХХ ЯКЕДСЧЫХУ СЯКНБХИ:
8
* оПХ ОНБРНПМНЛ ПЮЯОПНЯРПЮМЕМХХ ХЯУНДМНЦН ЙНДЮ ДНКФМШ НЯРЮБЮРЭЯЪ СЙЮГЮММНЕ
9
БШЬЕ СБЕДНЛКЕМХЕ НА ЮБРНПЯЙНЛ ОПЮБЕ, ЩРНР ЯОХЯНЙ СЯКНБХИ Х ОНЯКЕДСЧЫХИ
11
* оПХ ОНБРНПМНЛ ПЮЯОПНЯРПЮМЕМХХ ДБНХВМНЦН ЙНДЮ Б ДНЙСЛЕМРЮЖХХ Х/ХКХ Б
12
ДПСЦХУ ЛЮРЕПХЮКЮУ, ОНЯРЮБКЪЕЛШУ ОПХ ПЮЯОПНЯРПЮМЕМХХ, ДНКФМШ ЯНУПЮМЪРЭЯЪ
13
СЙЮГЮММЮЪ БШЬЕ ХМТНПЛЮЖХЪ НА ЮБРНПЯЙНЛ ОПЮБЕ, ЩРНР ЯОХЯНЙ СЯКНБХИ Х
14
ОНЯКЕДСЧЫХИ НРЙЮГ НР ЦЮПЮМРХИ.
15
* мХ МЮГБЮМХЕ Cognitive Technologies, МХ ХЛЕМЮ ЕЕ ЯНРПСДМХЙНБ МЕ ЛНЦСР
16
АШРЭ ХЯОНКЭГНБЮМШ Б ЙЮВЕЯРБЕ ЯПЕДЯРБЮ ОНДДЕПФЙХ Х/ХКХ ОПНДБХФЕМХЪ
17
ОПНДСЙРНБ, НЯМНБЮММШУ МЮ ЩРНЛ он, АЕГ ОПЕДБЮПХРЕКЭМНЦН ОХЯЭЛЕММНЦН
20
щрю опнцпюллю опеднярюбкемю бкюдекэжюлх юбрнпяйху опюб х/хкх дпсцхлх кхжюлх "йюй
21
нмю еярэ" аег йюйнцн-кхан бхдю цюпюмрхи, бшпюфеммшу ъбмн хкх ондпюгслебюелшу,
22
бйкчвюъ цюпюмрхх йнллепвеяйни жеммнярх х опхцндмнярх дкъ йнмйпермни жекх, мн ме
23
нцпюмхвхбюъяэ хлх. мх бкюдекеж юбрнпяйху опюб х мх ндмн дпсцне кхжн, йнрнпне
24
лнфер хглемърэ х/хкх онбрнпмн пюяопнярпюмърэ опнцпюллс, мх б йнел яксвюе ме
25
мея╗р нрберярбеммнярх, бйкчвюъ кчаше наыхе, яксвюимше, яоежхюкэмше хкх
26
онякеднбюбьхе сашрйх, ябъгюммше я хяонкэгнбюмхел хкх онмеяеммше бякедярбхе
27
мебнглнфмнярх хяонкэгнбюмхъ опнцпюллш (бйкчвюъ онрепх дюммшу, хкх дюммше,
28
ярюбьхе мецндмшлх, хкх сашрйх х/хкх онрепх днунднб, онмеяеммше хг-гю деиярбхи
29
рперэху кхж х/хкх нрйюгю опнцпюллш пюанрюрэ янблеярмн я дпсцхлх опнцпюллюлх,
30
мн ме нцпюмхвхбюъяэ щрхлх яксвюълх), мн ме нцпюмхвхбюъяэ хлх, дюфе еякх рюйни
31
бкюдекеж хкх дпсцне кхжн ашкх хгбеыемш н бнглнфмнярх рюйху сашрйнб х онрепэ.
33
33
Redistribution and use in source and binary forms, with or without modification,
34
34
are permitted provided that the following conditions are met:
107
107
{ /* 0 - letter */
109
BYTE type; /* 2 - word */
110
INT object; /* 3 - string */
108
uchar code; /* 1 - */
109
uchar type; /* 2 - word */
110
int16_t object; /* 3 - string */
113
113
struct font_kegl /* 1 - serific */
114
114
{ /* 2 - gelvetic */
115
BYTE code; /* 4 - bold */
116
BYTE new_kegl; /* 8 - light */
117
BYTE new_font; /* 16 - italic */
118
BYTE reserv; /* 32 - straight */
115
uchar code; /* 4 - bold */
116
uchar new_kegl; /* 8 - light */
117
uchar new_font; /* 16 - italic */
118
uchar reserv; /* 32 - straight */
119
119
}; /* 64 - underlined */
127
127
struct EdTagLanguage //for russian-english recognize
137
INT clearance; /* value of lift or descent */
137
int16_t clearance; /* value of lift or descent */
138
138
}; /* lift positive */
139
139
/* descent negative */
140
140
struct retrieve_level
147
147
{ /* 0 - thin straight */
148
BYTE code; /* 1- half thick straight */
149
BYTE type; /* 2- thick straight */
148
uchar code; /* 1- half thick straight */
149
uchar type; /* 2- thick straight */
150
150
}; /* 3- thin cursive */
151
151
/* 4- half thick cursive */
152
152
/* 5- thick cursive */
154
154
/* 7- end of underline */
155
155
struct dens_print
158
BYTE dens_atr; /* attribute of print's */
158
uchar dens_atr; /* attribute of print's */
164
BYTE numb_in_tab_tabul; /* number of position in */
164
uchar numb_in_tab_tabul; /* number of position in */
165
165
}; /* table of tabulation */
167
167
struct tabl_tabul
170
BYTE lth; /* scale of arow */
170
uchar lth; /* scale of arow */
171
int16_t arow_pos[1] ;
174
174
struct fragm_disk
184
BYTE Step_back; // value of backstep //AK 18.03.97 step -> Step
184
uchar Step_back; // value of backstep //AK 18.03.97 step -> Step
191
INT base_line; /* displacement for current */
191
int16_t base_line; /* displacement for current */
192
192
}; /* line to upper frame of fragm */
198
INT pos; /* position in line for */
198
int16_t pos; /* position in line for */
199
199
}; /* left frame of fragm */
201
201
struct table_conform_sizes
205
CHAR tab_val_A [9*2]; /* table of sizes of letter A */
205
char tab_val_A [9*2]; /* table of sizes of letter A */
206
206
}; /* for kegles from 4 to 12 */
209
209
struct group_words
212
BYTE gr_wd_type; /* 0 - beg of group */
212
uchar gr_wd_type; /* 0 - beg of group */
213
213
}; /* 1 - cur. word of group */
215
215
/* 3 - partition between groups */
217
217
struct group_symbols
225
BYTE code; /* 0x16 SS_BORDER */
226
BYTE type; /* 1 - left */
225
uchar code; /* 0x16 SS_BORDER */
226
uchar type; /* 1 - left */
227
227
#define b_vert 1 /* 2 - right */
228
228
#define b_hor 4 /* 4 - top */
230
INT length; /* Length of border in pixels */
231
INT x,y; /* Coordinates of line begin */
230
int16_t length; /* Length of border in pixels */
231
int16_t x,y; /* Coordinates of line begin */
234
234
struct table_header
236
BYTE code; /* 0x17 SS_TABLE_HEADER */
237
BYTE cols; /* Number of columns */
238
INT lth; /* Total length of record */
239
INT nfrag[1]; /* List of fragments in header of table */
236
uchar code; /* 0x17 SS_TABLE_HEADER */
237
uchar cols; /* Number of columns */
238
int16_t lth; /* Total length of record */
239
int16_t nfrag[1]; /* List of fragments in header of table */
242
242
struct list_of_fragments
244
BYTE code; /* 0x18 SS_LIST_OF_FRAGMENTS */
245
BYTE cols; /* Number of columns */
246
INT lth; /* Total length of record */
247
INT nfrag[1]; /* List of fragments in table */
244
uchar code; /* 0x18 SS_LIST_OF_FRAGMENTS */
245
uchar cols; /* Number of columns */
246
int16_t lth; /* Total length of record */
247
int16_t nfrag[1]; /* List of fragments in table */
256
256
struct neg_half_space
259
BYTE authenticity_degree;
259
uchar authenticity_degree;
262
262
struct pos_half_space
265
BYTE authenticity_degree;
265
uchar authenticity_degree;
268
268
struct sheet_disk_descr
280
280
struct fragm_disk_descr
283
INT row; /* coordinates of left upper */
284
INT col; /* angle of fragment's frame */
285
INT height; /* height of fragment */
286
INT w_width; /* Q.w_width of fragment */
283
int16_t row; /* coordinates of left upper */
284
int16_t col; /* angle of fragment's frame */
285
int16_t height; /* height of fragment */
286
int16_t w_width; /* Q.w_width of fragment */
288
288
#define FD_TYPE_TEXT 0
289
289
#define FD_TYPE_PICT 1
290
290
#define FD_TYPE_TABLE 2
291
291
#define FD_TYPE_EMPTY 3
293
BYTE kegl; /* kegl for following fragm */
294
BYTE font; /* font ~~~~~~~~~~~~~~~~~~ */
295
BYTE language;//reserv; /* language for fragment 03-29-94 02:21pm,Pit*/
296
BYTE type_underl; /* type specifications of font */
293
uchar kegl; /* kegl for following fragm */
294
uchar font; /* font ~~~~~~~~~~~~~~~~~~ */
295
uchar language;//reserv; /* language for fragment 03-29-94 02:21pm,Pit*/
296
uchar type_underl; /* type specifications of font */
297
297
}; /* for additional information */
298
298
/* look at underline */