73
73
#include "minmax.h"
75
extern BYTE p2_active;
75
extern uchar p2_active;
76
76
// Discrim � by base lines *
77
static INT rec_ii(cell*c,cell*cap);
78
static INT rec_ii_halo(cell * c);
80
static BYTE iot_pen_lc[]={ 120,60,10,0,0 };
81
static BYTE iot_pen_uc[]={ 140,10,0 ,0,0 };
83
INT cut_by_pos_ii(s_glue * const gl,BYTE let)
77
static int16_t rec_ii(cell*c,cell*cap);
78
static int16_t rec_ii_halo(cell * c);
80
static uchar iot_pen_lc[]={ 120,60,10,0,0 };
81
static uchar iot_pen_uc[]={ 140,10,0 ,0,0 };
83
int16_t cut_by_pos_ii(s_glue * const gl,uchar let)
86
INT pen=0,upper=32000,dis,i;
86
int16_t pen=0,upper=32000,dis,i;
89
89
get_b_lines(gl->celist[0],&bl);
90
90
for(i=0;i < gl->ncell;i++)
91
91
upper = MIN(upper,gl->celist[i]->row);
94
94
!is_russian_turkish_conflict(let) // 21.05.2002 E.P.
96
96
if((dis=upper-bl.b2) <= 0 ){ // letter upper than bbs2
169
169
} // while by letters
172
INT rec_ii(cell* c,cell * cap)
172
int16_t rec_ii(cell* c,cell * cap)
176
176
let = c->vers[0].let;
177
177
if( cap->row > c->row ) return 0; // not a cap
178
178
if( cap->w*3 < c->w ) return 0; // not so wide as need
188
188
if( c->col+c->w < cap->col ||
189
189
c->col > cap->col+cap->w) return 0; // not centered dust
190
190
if(0&&!p2_active) // OLEG
191
if( let==r_cu_u || let==(Word8)'�' )
191
if( let==r_cu_u || let==(uchar)'�' )
194
194
get_b_lines(c,&bl);
201
201
if( !compose_cell(2,clist,c) )
202
202
return -1; //OLEG:new return style of composed
203
let = is_lower(let) ? (BYTE)'�' : (BYTE)'�';
203
let = is_lower(let) ? (uchar)'�' : (uchar)'�';
204
204
c->vers[0].let = let;
205
205
c->vers[0].prob=MIN(254,c->vers[0].prob+2);
206
206
c->recsource = 0; // artifact
212
INT rec_ii_halo(cell * c)
212
int16_t rec_ii_halo(cell * c)
214
214
#define n_pieces 48
215
215
cell *cap,*caplist[n_pieces];
217
INT i,cap_row,cap_col,cap_h,cap_w,cap_rt,cap_bt,ncaps;
217
int16_t i,cap_row,cap_col,cap_h,cap_w,cap_rt,cap_bt,ncaps;
220
220
while((cap=cap->next)!=NULL && cap != c->nextl && i < n_pieces-1)
266
266
memmove(&caplist[1],caplist,i*sizeof(cell*));
268
if( !compose_cell((INT)(i+1),caplist,c) )
268
if( !compose_cell((int16_t)(i+1),caplist,c) )
269
269
return 0; //OLEG:new return style of composed
270
let = is_lower(let) ? (BYTE)'�' : (BYTE)'�';
270
let = is_lower(let) ? (uchar)'�' : (uchar)'�';
271
271
c->vers[0].let = let;
272
272
c->vers[0].prob=MIN(254,c->vers[0].prob+2);
273
273
c->recsource = 0; // artifact