~ubuntu-branches/debian/experimental/cuneiform/experimental

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/hhh/tigerh/h/edfile.h

  • Committer: Bazaar Package Importer
  • Author(s): Jakub Wilk, libm.diff, swapbytes.diff
  • Date: 2010-09-14 15:53:54 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100914155354-hhxaa13xmhb82e3e
Tags: 1.0.0+dfsg-1
* New upstream release (closes: #575419).
* New maintainer (closes: #543893).
* Document in README.source how to repackage upstream tarball.
* Update debian/copyright.
  + Document that the package is auto-buildable.
  + Document which files were stripped from the upstream tarball.
  + Convert to the DEP-5 format.
* Drop README.Debian, no longer needed.
* Rewrite debian/rules from scratch using dh.
  + Bump debhelper minimum version to 7.4.4 (for cmake support).
  + Turn on MAKE_VERBOSE_MAKEFILE.
  + Disable call to dh_makeshlibs to avoid creation of spurious
    calls to ldconfig in postrm/postinst.
  + Add get-orig-source target.
* Remove unused overrides.
* Link to GraphicsMagick rather than ImageMagick:
  + Build-depend on graphicsmagick-libmagick-dev-compat.
  + Add patch to properly initialize the library. [graphicsmagick.diff]    
* Bump standards version to 3.9.1 (no changes needed).
* Force upgrade of ocrodjvu to at least 0.4.2; earlier versions of ocrodjvu
  don't support this version of Cuneiform.
* List all the supported languages in the package description.
* Update the manual page.
  + Document --dotmatrix, --fax and --singlecolumn options.
  + Document all output formats.
  + Don't use hyphen as minus sign.
  + Fix a few formatting issues.
* Drop Vcs-* fields.
* Add watch file.
* Add patch from Dmitrijs Ledkovs to link the lao library with libm.
  [libm.diff]
* Add patch for a for a more portable function to swap byte order.
  [swapbytes.diff]
* Set Architecture to any; there's no good reason to limit it.
* Run rudimentary tests at build time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Copyright (c) 1993-2008, Cognitive Technologies
3
3
All rights reserved.
4
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
 
�������� ��� ������ ���� ���� �������� � ����������� ����� ������� � ������.
 
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
32
 
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:
55
55
*/
56
56
 
57
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
 
  ������������������������������������������������������������������
 
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
65
*/
66
66
 
67
67
#define SS_BITMAP_REF 0x00
95
95
 
96
96
struct bit_map_ref
97
97
 {
98
 
 BYTE code;
99
 
 BYTE pos;
100
 
 INT row;
101
 
 INT col;
102
 
 INT width;
103
 
 INT height;
 
98
 uchar code;
 
99
 uchar pos;
 
100
 int16_t row;
 
101
 int16_t col;
 
102
 int16_t width;
 
103
 int16_t height;
104
104
 };
105
105
 
106
106
struct text_ref
107
107
 {                                     /* 0 - letter */
108
 
 BYTE code;                            /* 1 -        */
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 */
111
111
 };
112
112
 
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  */
120
120
 
121
121
struct kegl
122
122
 {
123
 
 BYTE code;
124
 
 BYTE new_kegl;
 
123
 uchar code;
 
124
 uchar new_kegl;
125
125
 };
126
126
 
127
127
struct EdTagLanguage //for russian-english recognize
128
128
 {
129
 
 BYTE code; // 0x0F
130
 
 BYTE language;
 
129
 uchar code; // 0x0F
 
130
 uchar language;
131
131
 };
132
132
 
133
133
struct shift
134
134
 {
135
 
 BYTE code;
136
 
 BYTE kegl;
137
 
 INT clearance;                         /* value of lift or descent */
 
135
 uchar code;
 
136
 uchar kegl;
 
137
 int16_t clearance;                         /* value of lift or descent */
138
138
 };                                     /* lift positive            */
139
139
                                        /* descent negative         */
140
140
struct retrieve_level
141
141
 {
142
 
 BYTE code;
143
 
 BYTE kegl;
 
142
 uchar code;
 
143
 uchar kegl;
144
144
 };
145
145
 
146
146
struct underline
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
156
156
 {
157
 
 BYTE code;
158
 
 BYTE dens_atr;                         /* attribute of print's    */
 
157
 uchar code;
 
158
 uchar dens_atr;                         /* attribute of print's    */
159
159
 };                                     /*                 density */
160
160
 
161
161
struct tabul
162
162
 {
163
 
 BYTE code;
164
 
 BYTE numb_in_tab_tabul;                /* number of position in        */
 
163
 uchar code;
 
164
 uchar numb_in_tab_tabul;                /* number of position in        */
165
165
 };                                     /*         table of tabulation  */
166
166
 
167
167
struct tabl_tabul
168
168
 {
169
 
 BYTE code;
170
 
 BYTE lth;                              /* scale of arow               */
171
 
 INT arow_pos[1] ;
 
169
 uchar code;
 
170
 uchar lth;                              /* scale of arow               */
 
171
 int16_t arow_pos[1] ;
172
172
 };
173
173
 
174
174
struct fragm_disk
175
175
 {
176
 
 BYTE code;
177
 
 BYTE fragm_numb;
178
 
 INT depth;
 
176
 uchar code;
 
177
 uchar fragm_numb;
 
178
 int16_t depth;
179
179
 };
180
180
 
181
181
struct step_back
182
182
 {
183
 
 BYTE code;
184
 
 BYTE Step_back;                        // value of backstep //AK 18.03.97 step -> Step
 
183
 uchar code;
 
184
 uchar Step_back;                        // value of backstep //AK 18.03.97 step -> Step
185
185
 };
186
186
 
187
187
struct line_beg
188
188
 {
189
 
 BYTE code;
190
 
 BYTE height;
191
 
 INT base_line;                         /* displacement for current         */
 
189
 uchar code;
 
190
 uchar height;
 
191
 int16_t base_line;                         /* displacement for current         */
192
192
 };                                     /*     line to upper frame of fragm */
193
193
 
194
194
struct position
195
195
 {
196
 
 BYTE code;
197
 
 BYTE store;
198
 
 INT pos;                               /* position in line for      */
 
196
 uchar code;
 
197
 uchar store;
 
198
 int16_t pos;                               /* position in line for      */
199
199
 };                                     /*     left frame of  fragm  */
200
200
 
201
201
struct table_conform_sizes
202
202
 {
203
 
 BYTE code;
204
 
 BYTE store;
205
 
 CHAR tab_val_A [9*2];                   /* table of sizes of letter A  */
 
203
 uchar code;
 
204
 uchar store;
 
205
 char tab_val_A [9*2];                   /* table of sizes of letter A  */
206
206
 };                                      /*     for kegles from 4 to 12 */
207
207
 
208
208
 
209
209
struct group_words
210
210
 {
211
 
 BYTE code;
212
 
 BYTE  gr_wd_type;                        /* 0 - beg of group             */
 
211
 uchar code;
 
212
 uchar  gr_wd_type;                               /* 0 - beg of group             */
213
213
 };                                       /* 1 - cur. word of group       */
214
214
                                          /* 2 - end                      */
215
215
                                          /* 3 - partition between groups */
216
216
 
217
217
struct group_symbols
218
218
 {
219
 
 BYTE code;
220
 
 BYTE gr_sb_type;
 
219
 uchar code;
 
220
 uchar gr_sb_type;
221
221
 };
222
222
 
223
223
struct border
224
224
    {
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                    */
229
229
                        /* 8 - bottom                 */
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  */
232
232
    };
233
233
 
234
234
struct table_header
235
235
    {
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   */
240
240
    };
241
241
 
242
242
struct list_of_fragments
243
243
    {
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   */
248
248
    };
249
249
 
250
250
struct aksant
251
251
 {
252
 
 BYTE code1;
253
 
 BYTE code;
 
252
 uchar code1;
 
253
 uchar code;
254
254
 };
255
255
 
256
256
struct neg_half_space
257
257
 {
258
 
 BYTE code;
259
 
 BYTE authenticity_degree;
 
258
 uchar code;
 
259
 uchar authenticity_degree;
260
260
 };
261
261
 
262
262
struct pos_half_space
263
263
 {
264
 
 BYTE code;
265
 
 BYTE authenticity_degree;
 
264
 uchar code;
 
265
 uchar authenticity_degree;
266
266
 };
267
267
 
268
268
struct sheet_disk_descr
269
269
 {
270
 
 BYTE code;
271
 
 CHAR quant_fragm;
272
 
 INT sheet_numb;
273
 
 INT descr_lth;
274
 
 BYTE byte_flag;
275
 
 WORD resolution;
276
 
 INT  incline;
277
 
 CHAR tabl[13];
 
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
278
 };
279
279
 
280
280
struct fragm_disk_descr
281
281
 {
282
 
 BYTE code;
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      */
287
 
 CHAR type;
 
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
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
292
292
 
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          */
299
299