Debian Codegraph @

cuneiform_src/Kern/hhh/tigerh/h/edfile.h

raw
1 /*
2 Copyright (c) 1993-2008, Cognitive Technologies
3 All rights reserved.
4
5 пЮГПЕЬЮЕРЯЪ ОНБРНПМНЕ ПЮЯОПНЯРПЮМЕМХЕ Х ХЯОНКЭГНБЮМХЕ ЙЮЙ Б БХДЕ ХЯУНДМНЦН ЙНДЮ,
6 РЮЙ Х Б ДБНХВМНИ ТНПЛЕ, Я ХГЛЕМЕМХЪЛХ ХКХ АЕГ, ОПХ ЯНАКЧДЕМХХ ЯКЕДСЧЫХУ СЯКНБХИ:
7
8 * оПХ ОНБРНПМНЛ ПЮЯОПНЯРПЮМЕМХХ ХЯУНДМНЦН ЙНДЮ ДНКФМШ НЯРЮБЮРЭЯЪ СЙЮГЮММНЕ
9 БШЬЕ СБЕДНЛКЕМХЕ НА ЮБРНПЯЙНЛ ОПЮБЕ, ЩРНР ЯОХЯНЙ СЯКНБХИ Х ОНЯКЕДСЧЫХИ
10 НРЙЮГ НР ЦЮПЮМРХИ.
11 * оПХ ОНБРНПМНЛ ПЮЯОПНЯРПЮМЕМХХ ДБНХВМНЦН ЙНДЮ Б ДНЙСЛЕМРЮЖХХ Х/ХКХ Б
12 ДПСЦХУ ЛЮРЕПХЮКЮУ, ОНЯРЮБКЪЕЛШУ ОПХ ПЮЯОПНЯРПЮМЕМХХ, ДНКФМШ ЯНУПЮМЪРЭЯЪ
13 СЙЮГЮММЮЪ БШЬЕ ХМТНПЛЮЖХЪ НА ЮБРНПЯЙНЛ ОПЮБЕ, ЩРНР ЯОХЯНЙ СЯКНБХИ Х
14 ОНЯКЕДСЧЫХИ НРЙЮГ НР ЦЮПЮМРХИ.
15 * мХ МЮГБЮМХЕ Cognitive Technologies, МХ ХЛЕМЮ ЕЕ ЯНРПСДМХЙНБ МЕ ЛНЦСР
16 АШРЭ ХЯОНКЭГНБЮМШ Б ЙЮВЕЯРБЕ ЯПЕДЯРБЮ ОНДДЕПФЙХ Х/ХКХ ОПНДБХФЕМХЪ
17 ОПНДСЙРНБ, НЯМНБЮММШУ МЮ ЩРНЛ он, АЕГ ОПЕДБЮПХРЕКЭМНЦН ОХЯЭЛЕММНЦН
18 ПЮГПЕЬЕМХЪ.
19
20 щрю опнцпюллю опеднярюбкемю бкюдекэжюлх юбрнпяйху опюб х/хкх дпсцхлх кхжюлх "йюй
21 нмю еярэ" аег йюйнцн-кхан бхдю цюпюмрхи, бшпюфеммшу ъбмн хкх ондпюгслебюелшу,
22 бйкчвюъ цюпюмрхх йнллепвеяйни жеммнярх х опхцндмнярх дкъ йнмйпермни жекх, мн ме
23 нцпюмхвхбюъяэ хлх. мх бкюдекеж юбрнпяйху опюб х мх ндмн дпсцне кхжн, йнрнпне
24 лнфер хглемърэ х/хкх онбрнпмн пюяопнярпюмърэ опнцпюллс, мх б йнел яксвюе ме
25 мея╗р нрберярбеммнярх, бйкчвюъ кчаше наыхе, яксвюимше, яоежхюкэмше хкх
26 онякеднбюбьхе сашрйх, ябъгюммше я хяонкэгнбюмхел хкх онмеяеммше бякедярбхе
27 мебнглнфмнярх хяонкэгнбюмхъ опнцпюллш (бйкчвюъ онрепх дюммшу, хкх дюммше,
28 ярюбьхе мецндмшлх, хкх сашрйх х/хкх онрепх днунднб, онмеяеммше хг-гю деиярбхи
29 рперэху кхж х/хкх нрйюгю опнцпюллш пюанрюрэ янблеярмн я дпсцхлх опнцпюллюлх,
30 мн ме нцпюмхвхбюъяэ щрхлх яксвюълх), мн ме нцпюмхвхбюъяэ хлх, дюфе еякх рюйни
31 бкюдекеж хкх дпсцне кхжн ашкх хгбеыемш н бнглнфмнярх рюйху сашрйнб х онрепэ.
32
33 Redistribution and use in source and binary forms, with or without modification,
34 are permitted provided that the following conditions are met:
35
36 * Redistributions of source code must retain the above copyright notice,
37 this list of conditions and the following disclaimer.
38 * Redistributions in binary form must reproduce the above copyright notice,
39 this list of conditions and the following disclaimer in the documentation
40 and/or other materials provided with the distribution.
41 * Neither the name of the Cognitive Technologies nor the names of its
42 contributors may be used to endorse or promote products derived from this
43 software without specific prior written permission.
44
45 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
46 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
47 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
48 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
49 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
50 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
51 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
52 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
53 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
54 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 */
56
57 /*
58 шшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшш
59 шш шш
60 шш Copyright (C) 1990 Cognitive Technology Corporation. шш
61 шш All rights reserved. This program is proprietary and шш
62 шш a trade secret of Cognitive Technology Corporation. шш
63 шш шш
64 шшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшш
65 */
66
67 #define SS_BITMAP_REF 0x00
68 #define SS_TEXT_REF 0x01
69 #define SS_REMARK SS_TEXT_REF
70 #define SS_FONT_KEGL 0x02
71 #define SS_KEGL 0x03
72 #define SS_SHIFT 0x04
73 #define SS_RETR_LEVEL 0x05
74 #define SS_UNDERLINE 0x06
75 #define SS_DENS_PRINT 0x07
76 #define SS_TABUL 0x08
77 #define SS_TABL_TABUL 0x09
78 #define SS_SHEET_DESCR 0x0a
79 #define SS_FRAGMENT 0x0b
80 #define SS_STEP_BACK 0x0c
81 #define SS_LINE_BEG 0x0d
82 #define SS_POSITION 0x0e
83 #define SS_LANGUAGE 0x0f
84 #define SS_TABL_CONFORM_SIZES 0x10
85 #define SS_GROUP_WORDS 0x11
86 #define SS_GROUP_SYMBOLS 0x12
87 #define SS_PARAGRAPH 0x15
88 #define SS_BORDER 0x16
89 #define SS_TABLE_HEADER 0x17
90 #define SS_LIST_OF_FRAGMENTS 0x18
91 // SS_EXTENTION 0x1C Specian code for Extention ED format see EDEXT.H
92 #define SS_AKSANT 0x1d
93 #define SS_NEG_HALF_SPACE 0x1e
94 #define SS_POS_HALF_SPACE 0x1f
95
96 struct bit_map_ref
97 {
98 uchar code;
99 uchar pos;
100 int16_t row;
101 int16_t col;
102 int16_t width;
103 int16_t height;
104 };
105
106 struct text_ref
107 { /* 0 - letter */
108 uchar code; /* 1 - */
109 uchar type; /* 2 - word */
110 int16_t object; /* 3 - string */
111 };
112
113 struct font_kegl /* 1 - serific */
114 { /* 2 - gelvetic */
115 uchar code; /* 4 - bold */
116 uchar new_kegl; /* 8 - light */
117 uchar new_font; /* 16 - italic */
118 uchar reserv; /* 32 - straight */
119 }; /* 64 - underlined */
120
121 struct kegl
122 {
123 uchar code;
124 uchar new_kegl;
125 };
126
127 struct EdTagLanguage //for russian-english recognize
128 {
129 uchar code; // 0x0F
130 uchar language;
131 };
132
133 struct shift
134 {
135 uchar code;
136 uchar kegl;
137 int16_t clearance; /* value of lift or descent */
138 }; /* lift positive */
139 /* descent negative */
140 struct retrieve_level
141 {
142 uchar code;
143 uchar kegl;
144 };
145
146 struct underline
147 { /* 0 - thin straight */
148 uchar code; /* 1- half thick straight */
149 uchar type; /* 2- thick straight */
150 }; /* 3- thin cursive */
151 /* 4- half thick cursive */
152 /* 5- thick cursive */
153 /* 6- beg of underline */
154 /* 7- end of underline */
155 struct dens_print
156 {
157 uchar code;
158 uchar dens_atr; /* attribute of print's */
159 }; /* density */
160
161 struct tabul
162 {
163 uchar code;
164 uchar numb_in_tab_tabul; /* number of position in */
165 }; /* table of tabulation */
166
167 struct tabl_tabul
168 {
169 uchar code;
170 uchar lth; /* scale of arow */
171 int16_t arow_pos[1] ;
172 };
173
174 struct fragm_disk
175 {
176 uchar code;
177 uchar fragm_numb;
178 int16_t depth;
179 };
180
181 struct step_back
182 {
183 uchar code;
184 uchar Step_back; // value of backstep //AK 18.03.97 step -> Step
185 };
186
187 struct line_beg
188 {
189 uchar code;
190 uchar height;
191 int16_t base_line; /* displacement for current */
192 }; /* line to upper frame of fragm */
193
194 struct position
195 {
196 uchar code;
197 uchar store;
198 int16_t pos; /* position in line for */
199 }; /* left frame of fragm */
200
201 struct table_conform_sizes
202 {
203 uchar code;
204 uchar store;
205 char tab_val_A [9*2]; /* table of sizes of letter A */
206 }; /* for kegles from 4 to 12 */
207
208
209 struct group_words
210 {
211 uchar code;
212 uchar gr_wd_type; /* 0 - beg of group */
213 }; /* 1 - cur. word of group */
214 /* 2 - end */
215 /* 3 - partition between groups */
216
217 struct group_symbols
218 {
219 uchar code;
220 uchar gr_sb_type;
221 };
222
223 struct border
224 {
225 uchar code; /* 0x16 SS_BORDER */
226 uchar type; /* 1 - left */
227 #define b_vert 1 /* 2 - right */
228 #define b_hor 4 /* 4 - top */
229 /* 8 - bottom */
230 int16_t length; /* Length of border in pixels */
231 int16_t x,y; /* Coordinates of line begin */
232 };
233
234 struct table_header
235 {
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 */
240 };
241
242 struct list_of_fragments
243 {
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 */
248 };
249
250 struct aksant
251 {
252 uchar code1;
253 uchar code;
254 };
255
256 struct neg_half_space
257 {
258 uchar code;
259 uchar authenticity_degree;
260 };
261
262 struct pos_half_space
263 {
264 uchar code;
265 uchar authenticity_degree;
266 };
267
268 struct sheet_disk_descr
269 {
270 uchar code;
271 char quant_fragm;
272 int16_t sheet_numb;
273 int16_t descr_lth;
274 uchar byte_flag;
275 uint16_t resolution;
276 int16_t incline;
277 char tabl[13];
278 };
279
280 struct fragm_disk_descr
281 {
282 uchar code;
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 */
287 char type;
288 #define FD_TYPE_TEXT 0
289 #define FD_TYPE_PICT 1
290 #define FD_TYPE_TABLE 2
291 #define FD_TYPE_EMPTY 3
292
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 }; /* for additional information */
298 /* look at underline */
299
300
301 typedef struct text_ref EDREM;
302
303 #define SSR_HUGE 0 /* Internal remark about huge letter */
304
305 /* Seria within broken line: first - BROKEN_X, last - BROKEN_W */
306 #define SSR_BROKEN_BASELINE 1
307 #define SSR_BROKEN_HEIGHT 2
308 #define SSR_BROKEN_X 3
309 #define SSR_BROKEN_W 4
310
311 /* Seria about line: first - LINE_FN, other - optional */
312 #define SSR_LINE_FN 5
313 #define SSR_LINE_PARAGRAPH 6
314 #define SSR_LINE_TYPE 7
315 #define SSR_LINE_INDENT 8
316 #define SSR_LINE_NPIECES 9
317 #define SSR_LINE_FICT 16
318 #define SSR_LINE_BULIND 23
319 #define SSR_LINE_X 24
320 #define SSR_LINE_W 25
321 #define SSR_LINE_BASELINE 26
322 #define SSR_LINE_HEIGHT 27
323
324 /* Seria about fragment: first - FRAG_TYPE */
325 #define SSR_FRAG_TYPE 10
326 #define SSR_FRAG_BASE 11
327 #define SSR_FRAG_X 12
328 #define SSR_FRAG_W 13
329 #define SSR_FRAG_N 14
330 #define SSR_FRAG_SN 17
331 #define SSR_FRAG_REL 18
332 #define SSR_FRAG_Y 19
333 #define SSR_FRAG_H 20
334 #define SSR_FRAG_PNUM 21
335 #define SSR_FRAG_COLXW 28
336
337 #define SSR_FRAG_END 15 /* end of fragments list */
338
339 /* Misceleneaus */
340
341 #define SSR_LINE_NUMBER 22 /* Internal line number */
342 #define SSR_WORD_BOLD 32 /* density of word */
343 #define SSR_SHEET_TYPE 33 /* type of sheet */
344
345 #include "edext.h"