~ubuntu-branches/ubuntu/precise/cuneiform/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jakub Wilk, c-assert.diff, slovenian-slv.diff
  • Date: 2011-01-26 21:53:07 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110126215307-62x61mcesr607qb7
Tags: 1.0.0+dfsg-2
* Upload to unstable.
* Explicitly build-depend on pkg-config. Thanks to Stefano Rivera for the
  bug report.
* Add Vcs-* fields.
* Use the standard C assert() macro, rather than custom Cuneiform one.
  [c-assert.diff]
* Pass CFLAGS, CXXFLAGS and LDFLAGS (get from dpkg-buildflags) to cmake
  (closes: #608345). Thanks to Sami Liedes for the bug report.
  + Build depend on dpkg-dev (>= 1.15.7).
* Pass --parallel to dh.
  + Bump debhelper minimum version to 7.4.10.
* Update debian/copyright to the latest DEP-5 version.
* Bump year in debian/copyright.
* Explicitly link to GraphicsMagick (rather than via the ImageMagick
  compatibility layer).
* Don't ship /usr/lib/cuneiform/*.so symlinks. These libraries are
  considered private, at least until #598616 is fixed.
* Rename some private variables in debian/rules to make them lowercase.
* Update patch headers.
* Provide proper ‘build-arch’ and ‘build-indep’ targets in debian/rules.
* Document input format in the manual page (closes: #572061). Thanks to
  Janusz S. Bień for the bug report.
* Use ‘slv’ (rather than ‘slo’) as language code for Slovenian.
  [slovenian-slv.diff]
* Fix package description: Slovenian is supported, Slovak is not.
* Improve documentation of the language (-l) option (closes: #602512).
  Thanks to Jari Aalto for the bug report.
* Install reasons file for vrms.

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:
71
71
// 26.08.1993   to FARA 7.4
72
72
// 15.11.1993   add .num to struct INC_BASE;
73
73
// 19.11.1993   VERS-085;
74
 
// 10.12.1993   OLD  BYTE inc_v16 => CHAR inc_num;
 
74
// 10.12.1993   OLD  uchar inc_v16 => char inc_num;
75
75
//              VERS-087;
76
76
// 15.12.1993   xxx_OxBA => xxx_0xBA (LETTER => DIGIT);
77
77
// 16.12.1993   VERS-088;
82
82
// 10.01.1993   VERS-089;
83
83
/*----------------------------------------------------------------------*/
84
84
/*
85
 
  ������������������������������������������������������������������
86
 
  ��                                                              ��
87
 
  ��     Copyright (C) 1990 Cognitive Technology Corporation.     ��
88
 
  ��     All rights reserved. This program is proprietary and     ��
89
 
  ��     a trade secret of Cognitive Technology Corporation.      ��
90
 
  ��                                                              ��
91
 
  ������������������������������������������������������������������
 
85
  шшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшш
 
86
  шш                                                              шш
 
87
  шш     Copyright (C) 1990 Cognitive Technology Corporation.     шш
 
88
  шш     All rights reserved. This program is proprietary and     шш
 
89
  шш     a trade secret of Cognitive Technology Corporation.      шш
 
90
  шш                                                              шш
 
91
  шшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшшш
92
92
*/
93
93
 
94
94
#ifndef D_STICK_TYPES
95
95
#define D_STICK_TYPES
96
96
/*----------------------------------------------------------------------*/
97
 
typedef struct { INT row,  /* row in c_comp */
 
97
typedef struct { int16_t row,  /* row in c_comp */
98
98
                     col,  /* column * 2  */
99
99
                     len;  /* length      */
100
100
                } center_interval;
101
101
/*----------------------------------------------------------------------*/
102
102
typedef struct                                          // l->xxx, r->xxx;
103
103
        {
104
 
        BYTE
 
104
        uchar
105
105
                mount[5],   /* max flag in any zone. 0 - no flag        */
106
106
                conc[5],    /* max concave in any zone. 0 - no concave  */
107
107
                m_pos[5],   /* position of max flag in zone. 0-if no flag */
125
125
/*----------------------------------------------------------------------*/
126
126
typedef struct                                                  // s->xxx;
127
127
        {
128
 
        INT     height,         // height of c_comp
 
128
        int16_t     height,             // height of c_comp
129
129
                width ,         // width  of c_comp
130
130
                base_2,         // second base line
131
131
                base_3,         // third  base line
132
132
                base_2mk,       // MK EDITION of SECOND,
133
133
                base_3mk,       // THIRD,
134
134
                base_4mk;       // and FOURTH base lines        03.01.1994
135
 
        BYTE
 
135
        uchar
136
136
                l_f_symptom,    // special signums for letter 'f'
137
137
                r_f_symptom,    // l:0,1,2,3 ; r : 0,1,2
138
138
                t_TOP,          // t^ or t~;
141
141
                lll_nose_1,     // MK: FLAT VERT part of NOSE >= 3
142
142
                dis_slash,      // diskrim letter '/'
143
143
                dis_left_brace, dis_right_brace,        // dis '(',')'
144
 
//////          dis_OxBA,       // diskrim � for his head
145
 
                dis_0xBA,       // diskrim � for his head
 
144
//////          dis_OxBA,       // diskrim ╨ for his head
 
145
                dis_0xBA,       // diskrim ╨ for his head
146
146
                neck,           // sign neck overlay base line 2
147
147
                T_config,       // similar 'T' (for Y-diskrim)
148
148
//////          Y_config,       // similar 'Y' (for T-diskrim)
164
164
                up_dot_H,       // Hight of DOT (0 - NO DOT !)
165
165
    down_nose_1, // special for 1 : nose belong central zone
166
166
    up_dot_W; // Width of DOT
167
 
        CHAR
 
167
        char
168
168
                inc_num,        // 10.12.1993 (from inc_num_EEM)
169
169
                up_dot_dCOL;    // Displacement of DOT (use col)
170
 
        BYTE    num_lines;      /* Number of with none single interval  */
171
 
        INT     incline;        /* Normal tg(stick)*2048 + line_incline */
 
170
        uchar    num_lines;      /* Number of with none single interval         */
 
171
        int16_t incline;        /* Normal tg(stick)*2048 + line_incline */
172
172
        } STICK_SIGNUMS;        // auxiliary information for
173
173
                                // stick diskrimination
174
174
/*----------------------------------------------------------------------*/
175
175
typedef struct
176
176
        {
177
 
        INT tg;             /* tg = tangens*2048  */
178
 
        INT num;            /* 15.11.1993 MK NEW  */
179
 
        INT inc[128];       /* table of inc       */
 
177
        int16_t tg;             /* tg = tangens*2048  */
 
178
        int16_t num;        /* 15.11.1993 MK NEW  */
 
179
        int16_t inc[128];       /* table of inc       */
180
180
        } INC_BASE;         /* base tables of inc */
181
181
/*----------------------------------------------------------------------*/
182
182
#define ADD_PROB(c) (c->nvers ? (c->vers[0].prob - 4) : 254 )